diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-03-23 15:47:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 15:47:10 +0100 |
commit | fc5dd11b3da555a3617c1163dc3105973d101b97 (patch) | |
tree | e0322a3d5c5bcba7b58f2d314eabd99d4d637217 /tests | |
parent | e05fd1d00fb940aa89fdd7bd9f98e091abfd378b (diff) | |
download | Nim-fc5dd11b3da555a3617c1163dc3105973d101b97.tar.gz |
fixes #13722 (#13729)
* fixes #13722 * better fix
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/tbase64.nim | 9 |
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() |