Skip to content

Commit

Permalink
add test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
enricozb committed Aug 5, 2024
1 parent b802f0b commit 9c58be2
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/snapshots/run__io_file@demo_io__main.hvm.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ source: tests/run.rs
expression: c_output
input_file: examples/demo_io/main.hvm
---
What is your name?
io fr from
Result: 42
Higher-order Virtual Machine 2
Result: ((@IO/Done/tag (@IO/MAGIC (((0 (* x0)) x0) x1))) x1)
7 changes: 7 additions & 0 deletions tests/snapshots/run__io_file@io__basic.hvm.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/run.rs
expression: c_output
input_file: tests/programs/io/basic.hvm
---
Higher-order Virtual Machine 2
Result: ((@IO/Done/tag (@IO/MAGIC (((0 (* x0)) x0) x1))) x1)
6 changes: 6 additions & 0 deletions tests/snapshots/run__io_file@io__invalid-name.hvm.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
source: tests/run.rs
expression: c_output
input_file: tests/programs/io/invalid-name.hvm
---
Result: ((@IO/Done/tag (@IO/MAGIC (((1 (((1 x0) x0) x1)) x1) x2))) x2)
6 changes: 6 additions & 0 deletions tests/snapshots/run__io_file@io__open1.hvm.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
source: tests/run.rs
expression: c_output
input_file: tests/programs/io/open1.hvm
---
Result: ((@IO/Done/tag (@IO/MAGIC (((0 (3 x0)) x0) x1))) x1)
6 changes: 6 additions & 0 deletions tests/snapshots/run__io_file@io__open2.hvm.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
source: tests/run.rs
expression: c_output
input_file: tests/programs/io/open2.hvm
---
Result: ((@IO/Done/tag (@IO/MAGIC (((1 (((2 (+2 x0)) x0) x1)) x1) x2))) x2)
6 changes: 6 additions & 0 deletions tests/snapshots/run__io_file@io__open3.hvm.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
source: tests/run.rs
expression: c_output
input_file: tests/programs/io/open3.hvm
---
Result: ((@IO/Done/tag (@IO/MAGIC (((1 (((0 x0) x0) x1)) x1) x2))) x2)

0 comments on commit 9c58be2

Please sign in to comment.