Skip to content

Commit

Permalink
Add broken black box pre-reduce test
Browse files Browse the repository at this point in the history
  • Loading branch information
developedby committed Feb 23, 2024
1 parent 53fea88 commit 751af02
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/golden_tests/compile_file_o_all/black_box.hvm
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
def_that_uses_black_box = (* (HVM.black_box 6) 7)
main = def_that_uses_black_box
def_that_uses_black_box = @a (* (HVM.black_box a) 7)
main = (def_that_uses_black_box 6)
2 changes: 2 additions & 0 deletions tests/golden_tests/compile_file_o_all/black_box_ref.hvm
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def_that_uses_black_box = (* (HVM.black_box 6) 7)
main = def_that_uses_black_box
6 changes: 6 additions & 0 deletions tests/snapshots/compile_file_o_all__black_box_ref.hvm.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
source: tests/golden_tests.rs
input_file: tests/golden_tests/compile_file_o_all/black_box_ref.hvm
---
@main = a
& @HVM.black_box ~ (#6 <* #7 a>)

0 comments on commit 751af02

Please sign in to comment.