* fixes #13722

* better fix
This commit is contained in:
Andreas Rumpf
2020-03-23 15:47:10 +01:00
committed by GitHub
parent e05fd1d00f
commit fc5dd11b3d
3 changed files with 27 additions and 12 deletions

View File

@@ -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()