Skip to content

Commit

Permalink
test: improve import tests
Browse files Browse the repository at this point in the history
  • Loading branch information
viddrobnic committed Jul 2, 2024
1 parent 9a4b395 commit c446cfc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions runtime/src/vm/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,14 @@ fn use_statement() {
"#,
Object::Integer(138),
),
(
r#"
constant = 10
use "src/test_import/constant.aoc"
constant
"#,
Object::Integer(10),
),
];

for (input, expected) in tests {
Expand Down

0 comments on commit c446cfc

Please sign in to comment.