From 25b76966d2801f9f87141f1b90df937caae0fb0e Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sat, 25 May 2024 13:39:12 -0400 Subject: [PATCH] improve(amber) better test (using `bc` companion for complex math) --- projects/amber-lang.com/package.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/projects/amber-lang.com/package.yml b/projects/amber-lang.com/package.yml index 0278027e..177a712a 100644 --- a/projects/amber-lang.com/package.yml +++ b/projects/amber-lang.com/package.yml @@ -26,13 +26,12 @@ test: dependencies: pkgx.sh: ^1 script: - - run: | - test "$(amber $FIXTURE)" = "Hello, world!" - test "$(pkgx $FIXTURE)" = "Hello, world!" - amber $FIXTURE hello.sh + - run: cat $FIXTURE >test.ab fixture: extname: ab content: | - let hello = "Hello, world!" - echo hello - - test "$(./hello.sh)" = "Hello, world!" + echo ((12 + 34) * 9) % 4 + - test "$(amber test.ab)" = 2 + - test "$(pkgx test.ab)" = 2 + - amber test.ab test.sh + - test "$(./test.sh)" = 2