diff options
| author | Arnaud Bailly <arnaud.bailly@iohk.io> | 2024-09-24 16:37:18 +0200 |
|---|---|---|
| committer | Arnaud Bailly <arnaud.bailly@iohk.io> | 2024-09-24 16:37:18 +0200 |
| commit | 530fc2be095873b2cdc112216459c462e3e4b462 (patch) | |
| tree | b9c2cc899f117febea7718c576c1640fc2510ea9 | |
| parent | c06a076741ae0ad77b21fe58cf0f31e64d1d30d2 (diff) | |
| download | lambda-nantes-530fc2be095873b2cdc112216459c462e3e4b462.tar.gz | |
Add integration test for application
| -rw-r--r-- | rust/sample/test_full.txt | 4 | ||||
| -rw-r--r-- | rust/tests/interpret_test.rs | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/rust/sample/test_full.txt b/rust/sample/test_full.txt index b5fe1c2..253c752 100644 --- a/rust/sample/test_full.txt +++ b/rust/sample/test_full.txt @@ -1,3 +1 @@ -(foo (bar - ((quux true) 12)) - ) +((lam x x) true) diff --git a/rust/tests/interpret_test.rs b/rust/tests/interpret_test.rs index 5c3108a..09c74fe 100644 --- a/rust/tests/interpret_test.rs +++ b/rust/tests/interpret_test.rs @@ -2,6 +2,6 @@ use lambda::run; #[test] fn interpreter_can_read_and_interpret_file() { - let result = run("sample/test.txt"); - assert_eq!("12", result); + assert_eq!("12", run("sample/test.txt")); + assert_eq!("true", run("sample/test_full.txt")); } |
