|
5 | 5 |
|
6 | 6 | (define (test-herk-0x)
|
7 | 7 | (check (herk->utf8 (string #\x00)) => "`") ; U+0060
|
| 8 | + (check (utf8->herk "`") => (string #\x00)) |
| 9 | + |
8 | 10 | (check (herk->utf8 (string #\x01)) => "´") ; U+00B4
|
9 | 11 | (check (herk->utf8 (string #\x02)) => "ˆ") ; U+02C6
|
10 | 12 | (check (herk->utf8 (string #\x03)) => "˜") ; U+02DC
|
|
21 | 23 | (check (herk->utf8 (string #\x0E)) => "‹") ; U+2039
|
22 | 24 | (check (herk->utf8 (string #\x0F)) => "›") ; U+203A
|
23 | 25 |
|
24 |
| - (check (herk->utf8 "<#0>") => (string #\x00)) |
25 |
| - (check (herk->utf8 "<#F>") => (string #\x0F)) |
26 |
| - (check (utf8->herk (string #\x00)) => "<#0>") |
27 |
| - (check (utf8->herk (string #\x01)) => "<#1>") |
28 |
| - (check (utf8->herk (string #\x02)) => "<#2>") |
29 |
| - (check (utf8->herk (string #\x03)) => "<#3>") |
30 |
| - (check (utf8->herk (string #\x04)) => "<#4>") |
31 |
| - (check (utf8->herk (string #\x05)) => "<#5>") |
32 |
| - (check (utf8->herk (string #\x06)) => "<#6>") |
33 |
| - (check (utf8->herk (string #\x07)) => "<#7>") |
34 |
| - (check (utf8->herk (string #\x08)) => "<#8>") |
35 |
| - (check (utf8->herk (string #\x09)) => "<#9>") |
36 |
| - (check (utf8->herk (string #\x0A)) => "<#A>") |
37 |
| - (check (utf8->herk (string #\x0B)) => "<#B>") |
38 |
| - (check (utf8->herk (string #\x0C)) => "<#C>") |
39 |
| - (check (utf8->herk (string #\x0D)) => "<#D>") |
40 |
| - (check (utf8->herk (string #\x0E)) => "<#E>") |
41 |
| - (check (utf8->herk (string #\x0F)) => "<#F>") |
| 26 | + (check (herk->utf8 "<#00>") => (string #\x00)) |
| 27 | + (check (herk->utf8 "<#0F>") => (string #\x0F)) |
| 28 | + (check (utf8->herk "<#00>") => "<#00>") |
| 29 | + (check (utf8->herk (string #\x00)) => "<#00>") |
| 30 | + (check (utf8->herk (string #\x01)) => "<#01>") |
| 31 | + (check (utf8->herk (string #\x02)) => "<#02>") |
| 32 | + (check (utf8->herk (string #\x03)) => "<#03>") |
| 33 | + (check (utf8->herk (string #\x04)) => "<#04>") |
| 34 | + (check (utf8->herk (string #\x05)) => "<#05>") |
| 35 | + (check (utf8->herk (string #\x06)) => "<#06>") |
| 36 | + (check (utf8->herk (string #\x07)) => "<#07>") |
| 37 | + (check (utf8->herk (string #\x08)) => "<#08>") |
| 38 | + (check (utf8->herk (string #\x09)) => "<#09>") |
| 39 | + (check (utf8->herk (string #\x0A)) => "<#0A>") |
| 40 | + (check (utf8->herk (string #\x0B)) => "<#0B>") |
| 41 | + (check (utf8->herk (string #\x0C)) => "<#0C>") |
| 42 | + (check (utf8->herk (string #\x0D)) => "<#0D>") |
| 43 | + (check (utf8->herk (string #\x0E)) => "<#0E>") |
| 44 | + (check (utf8->herk (string #\x0F)) => "<#0F>") |
42 | 45 | )
|
43 | 46 |
|
44 | 47 | (define (test-herk-1x)
|
|
0 commit comments