diff options
Diffstat (limited to 'tests/ic/thallo.nim')
-rw-r--r-- | tests/ic/thallo.nim | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/ic/thallo.nim b/tests/ic/thallo.nim new file mode 100644 index 000000000..7ead7c8ba --- /dev/null +++ b/tests/ic/thallo.nim @@ -0,0 +1,28 @@ +discard """ + output: "Hello World" +""" + +const str = "Hello World" +echo str + +# Splitters are done with this special comment: + +#!EDIT!# + +discard """ + output: "Hello World B" +""" + +const str = "Hello World" +echo str, " B" + +#!EDIT!# + +discard """ + output: "Hello World C" +""" + +const str = "Hello World" +var x = 7 +if 3+4 == x: + echo str, " C" |