From 32b5ef50959cea580dfc536a338c2e5a2e0e12cc Mon Sep 17 00:00:00 2001 From: Rangi42 Date: Thu, 31 Jul 2025 07:07:49 -0400 Subject: [PATCH] Expand the test for `{interpolation}` after two double quotes --- test/asm/interpolation-after-string.asm | 4 ++-- test/asm/interpolation-after-string.err | 6 +++++- test/asm/interpolation-after-string.out | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 test/asm/interpolation-after-string.out diff --git a/test/asm/interpolation-after-string.asm b/test/asm/interpolation-after-string.asm index 75403f8f..7599627c 100644 --- a/test/asm/interpolation-after-string.asm +++ b/test/asm/interpolation-after-string.asm @@ -1,5 +1,5 @@ -def hello = $11 -def goodbye = $22 +def concat equs """++ "hi world" ++""" +println ""{concat}"" def greeting equs "hello" println ""{greeting} diff --git a/test/asm/interpolation-after-string.err b/test/asm/interpolation-after-string.err index f5623655..6e123fe9 100644 --- a/test/asm/interpolation-after-string.err +++ b/test/asm/interpolation-after-string.err @@ -1,3 +1,7 @@ +error: interpolation-after-string.asm(2): + Unknown character '{' +error: interpolation-after-string.asm(2): + Unknown character '}' error: interpolation-after-string.asm(5): Unknown character '{' error: interpolation-after-string.asm(5): @@ -11,4 +15,4 @@ error: interpolation-after-string.asm(8): syntax error, unexpected symbol error: interpolation-after-string.asm(8): Unknown character '}' -Assembly aborted with 6 errors! +Assembly aborted with 8 errors! diff --git a/test/asm/interpolation-after-string.out b/test/asm/interpolation-after-string.out new file mode 100644 index 00000000..2c0b7857 --- /dev/null +++ b/test/asm/interpolation-after-string.out @@ -0,0 +1 @@ +hi world