Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 11, 2019 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/20f754f0ea5bbf727281ba89da44232a to your computer and use it in GitHub Desktop.
Save Whateverable/20f754f0ea5bbf727281ba89da44232a to your computer and use it in GitHub Desktop.
committable6
2018.12,eb3917c260bc^,eb3917c260bc,541a4f1628^,541a4f1628,HEAD https://gist.github.com/AlexDaniel/158721b3ee4e4c2bbed8b8273fca02ae
¦«2018.12,eb3917c260bc^,eb3917c,541a4f1628^»:
1..23
ok 1 - Encode " "
ok 2 - Encode "|abcå"
ok 3 - Encode -.~_
ok 4 - Encode :/? \#\[\]@!$&'()*+,;=
ok 5 - Encode "abc"
ok 6 - Encode "<\"
ok 7 - Encode "Hello World!"
ok 8 - Encode "http://perltricks.com/"
ok 9 - Encode "https://perltricks.com/"
ok 10 - Encode "https://www.example.com/🇩🇪"
ok 11 - Encode components "Hello World!"
ok 12 - Encode components ' \#$&+,/:;=?@'
ok 13 - Encode components "🇩🇪"
ok 14 - Decode to " "
ok 15 - Decode to "|abcå"
ok 16 - Decode to "abc"
ok 17 - Decode to "~*'()"
ok 18 - Decode to "<\"
ok 19 - Decode to "http://perltricks.com/"
ok 20 - Decode tp "https://perltricks.com/"
ok 21 - Decode "https://www.example.com/%F0%9F%87%A9%F0%9F%87%AA"
ok 22 - Decode components to ' \#$&+,/:;=?@'
ok 23 - Decode components "🇩🇪"
¦«541a4f1,HEAD(d6b1bd2)»:
1..23
ok 1 - Encode " "
not ok 2 - Encode "|abcå"
# Failed test 'Encode "|abcå"'
# at sandbox/foo.p6 line 46
# expected: '%7Cabc%C3%A5'
# got: '%7C%61%62%63%C3%A5'
not ok 3 - Encode -.~_
# Failed test 'Encode -.~_'
# at sandbox/foo.p6 line 47
# expected: '-.~_'
# got: '%2D%2E%7E%5F'
not ok 4 - Encode :/? \#\[\]@!$&'()*+,;=
# Failed test 'Encode :/? \#\[\]@!$&'()*+,;='
# at sandbox/foo.p6 line 48
# expected: ':/?#[]@!$&'()*+,;='
# got: '%3A%2F%3F%23%5B%5D%40%21%24%26%27%28%29%2A%2B%2C%3B%3D'
not ok 5 - Encode "abc"
# Failed test 'Encode "abc"'
# at sandbox/foo.p6 line 49
# expected: 'abc'
# got: '%61%62%63'
ok 6 - Encode "<\"
not ok 7 - Encode "Hello World!"
# Failed test 'Encode "Hello World!"'
# at sandbox/foo.p6 line 51
# expected: 'Hello%20World!'
# got: '%48%65%6C%6C%6F%20%57%6F%72%6C%64%21'
not ok 8 - Encode "http://perltricks.com/"
# Failed test 'Encode "http://perltricks.com/"'
# at sandbox/foo.p6 line 52
# expected: 'http://perltricks.com/'
# got: '%68%74%74%70%3A%2F%2F%70%65%72%6C%74%72%69%63%6B%73%2E%63%6F%6D%2F'
not ok 9 - Encode "https://perltricks.com/"
# Failed test 'Encode "https://perltricks.com/"'
# at sandbox/foo.p6 line 54
# expected: 'https://perltricks.com/'
# got: '%68%74%74%70%73%3A%2F%2F%70%65%72%6C%74%72%69%63%6B%73%2E%63%6F%6D%2F'
not ok 10 - Encode "https://www.example.com/🇩🇪"
# Failed test 'Encode "https://www.example.com/🇩🇪"'
# at sandbox/foo.p6 line 56
# expected: 'https://www.example.com/%F0%9F%87%A9%F0%9F%87%AA'
# got: '%68%74%74%70%73%3A%2F%2F%77%77%77%2E%65%78%61%6D%70%6C%65%2E%63%6F%6D%2F%F0%9F%87%A9%F0%9F%87%AA'
not ok 11 - Encode components "Hello World!"
# Failed test 'Encode components "Hello World!"'
# at sandbox/foo.p6 line 59
# expected: 'Hello%20World%21'
# got: '%48%65%6C%6C%6F%20%57%6F%72%6C%64%21'
ok 12 - Encode components ' \#$&+,/:;=?@'
ok 13 - Encode components "🇩🇪"
ok 14 - Decode to " "
ok 15 - Decode to "|abcå"
ok 16 - Decode to "abc"
ok 17 - Decode to "~*'()"
ok 18 - Decode to "<\"
ok 19 - Decode to "http://perltricks.com/"
ok 20 - Decode tp "https://perltricks.com/"
ok 21 - Decode "https://www.example.com/%F0%9F%87%A9%F0%9F%87%AA"
ok 22 - Decode components to ' \#$&+,/:;=?@'
ok 23 - Decode components "🇩🇪"
# Looks like you failed 9 tests of 23
«exit code = 9»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment