Conformance.Builtin.Semantics.Blake2b224

Conformance tests generated from plutus-conformance/test-cases/uplc/evaluation/builtin/semantics/blake2b_224. See Conformance.Eval for how they are run.

module Conformance.Builtin.Semantics.Blake2b224 where

open import Conformance.Eval

blake2b_224-empty

-- builtin/semantics/blake2b_224/blake2b_224-empty
-- Test vector (0-bit input) for Blake2b_224.
-- Output obtained using the b2sum program from https://github.com/BLAKE2/BLAKE2
test-blake2b-224-empty : Untyped
test-blake2b-224-empty = (UApp (UApp (UBuiltin equalsByteString) (UApp (UBuiltin blake2b-224) (UCon (tagCon bytestring (mkByteString ""))))) (UCon (tagCon bytestring (mkByteString "\131l\198\137\&1\194\228\227\232\&8`.\202\EM\STXY\GS!h7\186\253\223\230\240\200\203\a"))))

expected-blake2b-224-empty : Result
expected-blake2b-224-empty = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `equalsByteString`; postulated builtin `blake2b-224`.
pending-blake2b-224-empty : Set
pending-blake2b-224-empty = Pending (evalRaw test-blake2b-224-empty ≡ expected-blake2b-224-empty)

blake2b_224-length-200

-- builtin/semantics/blake2b_224/blake2b_224-length-200
-- Test vector (200-bit input) for Blake2b_224.
-- Output obtained using the b2sum program from https://github.com/BLAKE2/BLAKE2
test-blake2b-224-length-200 : Untyped
test-blake2b-224-length-200 = (UApp (UApp (UBuiltin equalsByteString) (UApp (UBuiltin blake2b-224) (UCon (tagCon bytestring (mkByteString ".~\168M\164\188M|\251F>?,\134G\ENQz\255\243\251\236\236\161\210\NUL"))))) (UCon (tagCon bytestring (mkByteString "\147\212\184\fS\EM\152\151;\b)\DEL\197\EOT*\243Y\134Z\135\STX\242\v_\194\219\141\245"))))

expected-blake2b-224-length-200 : Result
expected-blake2b-224-length-200 = success (UCon (tagCon bool true))

-- Pending: bytestring constant; postulated builtin `equalsByteString`; postulated builtin `blake2b-224`.
pending-blake2b-224-length-200 : Set
pending-blake2b-224-length-200 = Pending (evalRaw test-blake2b-224-length-200 ≡ expected-blake2b-224-length-200)