File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed
Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -11,19 +11,7 @@ local hex = require("hex")
1111
1212s = hex :encode_to_string (" foo\01 bar" )
1313print (s )
14- Zm9vAWJhcg
15-
16- s = hex :encode_to_string (" foo\01 bar" )
17- print (s )
18- Zm9vAWJhcg ==
19-
20- s = hex :encode_to_string (" this is a <tag> and should be encoded" )
21- print (s )
22- dGhpcyBpcyBhIDx0YWc - IGFuZCBzaG91bGQgYmUgZW5jb2RlZA
23-
24- s = hex :encode_to_string (" this is a <tag> and should be encoded" )
25- print (s )
26- dGhpcyBpcyBhIDx0YWc - IGFuZCBzaG91bGQgYmUgZW5jb2RlZA ==
14+ 666 f6f01626172
2715
2816```
2917
@@ -32,12 +20,12 @@ dGhpcyBpcyBhIDx0YWc-IGFuZCBzaG91bGQgYmUgZW5jb2RlZA==
3220``` lua
3321local hex = require ' hex'
3422
35- decoded , err = hex .decode_string (" 666f6f62617262617a " )
23+ decoded , err = hex .decode_string (" 666f6f01626172 " )
3624assert (not err , err )
3725print (decoded )
3826foo bar
3927
4028encoded = hex .encode_to_string (decoded )
4129print (encoded )
42- 666 f6f62617262617a
30+ 666 f6f01626172
4331```
You can’t perform that action at this time.
0 commit comments