1
1
mirror of https://github.com/anoma/juvix.git synced 2024-11-30 05:42:26 +03:00
juvix/tests/Core/positive
Paul Cadman 49c14be71e
Fix nock compilation and builtin evaluation of sha256 stdilb (#3175)
This PR:

1. Fixes the compilation of the sha256 builtin anoma lib call

A sha256 hash is 32 bytes long, not 64 bytes. This number is used when
constructing the ByteArray representation (i.e `[length payload]` cell)
of the output of Anoma stdlib sha256 call. The Anoma stdlib sha256 call
just returns the atom payload.

2. Fixes the evaluation of the sha256 stdlib call

Previously we were converting the sha256 hash bytestring to Base16
format. This is convenient when displaying the ByteString hash. However
the Anoma nock interpreter outputs the raw bytes so we must change the
builtin evaluator to match this behaviour.

After these fixes we can re-enable the test084 anoma compilation test.
2024-11-14 18:54:39 +01:00
..
out Fix nock compilation and builtin evaluation of sha256 stdilb (#3175) 2024-11-14 18:54:39 +01:00
reference LetRec in Core (#1507) 2022-09-06 12:28:09 +02:00
test001.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test002.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test003.jvc Allow nested block comments (#2075) 2023-05-15 09:57:23 +02:00
test004.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test005.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test006.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test007.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test008.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test009.jvc JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
test010.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test011.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test012.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test013.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test014.jvc 1569 rewrite the test for lambda lifting to use evaluation (#1572) 2022-10-12 10:19:02 +02:00
test015.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test016.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test017.jvc JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
test018.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test019.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test020.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test021.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test022.jvc New compilation pipeline (#1832) 2023-03-14 16:24:07 +01:00
test023.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test024.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test025.jvc LetRec in Core (#1507) 2022-09-06 12:28:09 +02:00
test026.jvc JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
test027.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test028.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test029.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test030.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test031.jvc JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
test032.jvc JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
test033.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test034.jvc Fold lets when the bound variable occurs at most once (#2231) 2023-06-29 13:02:10 +02:00
test035.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test036.jvc Translation from JuvixAsm to C (#1619) 2022-12-06 11:33:20 +01:00
test037.jvc Change syntax for ind. data types and forbid the empty data type (#1684) 2023-01-03 13:49:04 +01:00
test038.jvc Add the JuvixCore framework and its evaluator (#1421) 2022-08-30 11:24:15 +02:00
test039.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test040.jvc Preserve the target type in letrec lifting (#1945) 2023-03-30 18:02:37 +02:00
test041.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test042.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test043.jvc Update standard library coding style according to the guidelines (#3092) 2024-10-14 15:56:54 +02:00
test044.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test045.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test046.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test047.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test048.jvc String builtins (#1784) 2023-01-31 18:31:04 +01:00
test049.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test050.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test051.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test052.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test053.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test054.jvc Pattern matching compilation (#1874) 2023-03-27 10:42:27 +02:00
test055.jvc Fix removal of polymorphic type arguments (#1954) 2023-03-30 19:56:07 +02:00
test056.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test057.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test058.jvc Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
test059.jvc Fix removal of polymorphic type arguments (#1954) 2023-03-30 19:56:07 +02:00
test060.jvc Add Bottom node (#2112) 2023-05-23 18:31:28 +02:00
test061.jvc Add field element type (#2659) 2024-02-27 14:54:43 +01:00
test062.jvc Add frontend support for Anoma stdlib sha256 (#3109) 2024-10-17 19:11:26 +02:00
test063.jvc Add builtin ByteArray type (#2933) 2024-08-13 11:13:27 +01:00
test064.jvc Add builtin ByteArray type (#2933) 2024-08-13 11:13:27 +01:00
test065.jvc Fix inference of let and letrec in core (#2953) 2024-08-14 15:15:49 +01:00