summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tbase64.nim9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/stdlib/tbase64.nim b/tests/stdlib/tbase64.nim
index e5b13642c..19b126437 100644
--- a/tests/stdlib/tbase64.nim
+++ b/tests/stdlib/tbase64.nim
@@ -1,8 +1,13 @@
 discard """
-  output: "OK"
+  output: '''YQ=='''
+  nimout: '''YQ=='''
 """
 import base64
 
+import base64
+static: echo encode("a")
+echo encode("a")
+
 proc main() =
   doAssert encode("Hello World") == "SGVsbG8gV29ybGQ="
   doAssert encode("leasure.") == "bGVhc3VyZS4="
@@ -54,6 +59,4 @@ proc main() =
     doAssert encode("", safe = true) == ""
     doAssert encode("the quick brown dog jumps over the lazy fox", safe = true) == "dGhlIHF1aWNrIGJyb3duIGRvZyBqdW1wcyBvdmVyIHRoZSBsYXp5IGZveA=="
 
-  echo "OK"
-
 main()