Skip to content

Commit e602f37

Browse files
committed
TEST: adding a few more dehex/enhex tests
1 parent 8215deb commit e602f37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tests/units/series-test.r3

+4
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ Rebol [
253253

254254
--assert "%3x " = dehex "%3x%20"
255255
--assert "++" = dehex "%2b%2b"
256+
--assert 127 = to-integer first dehex "%7F"
256257

257258
--test-- "ENHEX"
258259
--assert "%C2%A3" = enhex "£"
@@ -261,7 +262,10 @@ Rebol [
261262
--assert "%22%25-.%3C%3E%5C%1F%60%7B%7C%7D~" = enhex {"%-.<>\^_`{|}~}
262263
; --assert %%C5%A1ik = enhex %šik ;<-- this does not work yet!
263264
--assert "šik" = to-string dehex enhex to-binary "šik"
265+
--assert "%7F" = enhex to-string #{7F}
264266
--assert "%C2%80" = enhex to-string #{80}
267+
--assert "%C2%81" = enhex to-string #{81}
268+
--assert "%E5%85%83" = enhex {元}
265269

266270

267271
===end-group===

0 commit comments

Comments
 (0)