parent
e05fd1d00f
commit
fc5dd11b3d
3 changed files with 27 additions and 12 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue