From 2b9c99fff2b54ce67982641ad33d24579e5a437e Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 26 Feb 2024 23:59:47 -0500 Subject: [PATCH] Added a test case for depending on compiled units --- compiler/compiler_test.go | 2 +- compiler/test-data/data/systemsrc/main.fspl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/compiler_test.go b/compiler/compiler_test.go index 29da53b..7482f50 100644 --- a/compiler/compiler_test.go +++ b/compiler/compiler_test.go @@ -29,6 +29,6 @@ dependencies := []string { } testUnit (test, "/test-data/data/systemsrc", dependencies, -"", "Hello, /usr/src!", +"", "Hello, /usr/src!\n", 0, )} diff --git a/compiler/test-data/data/systemsrc/main.fspl b/compiler/test-data/data/systemsrc/main.fspl index 336de10..9da5f91 100644 --- a/compiler/test-data/data/systemsrc/main.fspl +++ b/compiler/test-data/data/systemsrc/main.fspl @@ -1,4 +1,4 @@ [main]: I32 'main' = { - io::[println 'Hello, /system/src!'] + io::[println 'Hello, /usr/src!'] 0 }