Skip to content

Commit

Permalink
feat(tests): test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmarkoTrilitech committed Aug 28, 2024
1 parent 07325aa commit 5052ce5
Show file tree
Hide file tree
Showing 4 changed files with 1,327 additions and 1 deletion.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
);
in {
packages.default = opamPackages.lltz;
packages.zarith = opamPackages.zarith;

devShells.default = pkgs.mkShell {
name = "lltz-shell";
Expand Down
2 changes: 1 addition & 1 deletion lib/lltz_ir/dsl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ let pairing_check ?(range = dummy) pairings = create ~range (LLTZ.E.Prim (LLTZ.P
let voting_power ?(range = dummy) key_hash = create ~range (LLTZ.E.Prim (LLTZ.P.Voting_power, [key_hash]))
let getn ?(range = dummy) n value = create ~range (LLTZ.E.Prim (LLTZ.P.Get_n n, [value]))
let cast ?(range = dummy) ty value = create ~range (LLTZ.E.Prim (LLTZ.P.Cast ty, [value]))
let rename = assert false
(*let rename = assert false*)
let emit ?(range = dummy) (opt, ty) value = create ~range (LLTZ.E.Prim (LLTZ.P.Emit (opt, ty), [value]))
let failwith ?(range = dummy) value = create ~range (LLTZ.E.Prim (LLTZ.P.Failwith, [value]))
let never ?(range = dummy) value = create ~range (LLTZ.E.Prim (LLTZ.P.Never, [value]))
Expand Down
8 changes: 8 additions & 0 deletions test/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
(library
(name test_dsl)
(libraries core lltz_michelson fmt)
(modules test_dsl)
(inline_tests)
(preprocess (pps ppx_jane))
(flags (:standard -verbose -ccopt --verbose))
)
Loading

0 comments on commit 5052ce5

Please sign in to comment.