Skip to content
Myr

uri.test

This file

Path

tests/uri.test

92 lines · 1.6 KiB

Last changed by

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

History of this file

Take it

The walk stopped after 200 commits: lines older than fa6a2ff point at it.

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 1–3why, one step back
1# Tests are groups of three lines: program, input, expected output
2# Blank lines and lines starting with # are ignored3

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 4–5why, one step back
4# @uri
5

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

line 6why, one step back
6@uri

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 7–8why, one step back
7""
8""

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

line 9why, one step back
9

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 10–12why, one step back
10@uri
11"\b\t\n\f\r\"\\"12"%08%09%0A%0C%0D%22%5C"

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 13–14why, one step back
13
14@uri

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 15–18why, one step back
15",-./09:;<=>?@AZ[\\]^_`az{|}~\u007f"
16"%2C-.%2F09%3A%3B%3C%3D%3E%3F%40AZ%5B%5C%5D%5E_%60az%7B%7C%7D~%7F"1718@uri

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 19–21why, one step back
19"a \u03bc \u2230 \ud83d\ude0e"
20"a%20%CE%BC%20%E2%88%B0%20%F0%9F%98%8E"21

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 22–27why, one step back
22@uri
23"a\u0000b\u0000c"24"a%00b%00c"2526# @urid27

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

line 28why, one step back
28@urid

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 29–40why, one step back
29""
30""3132@urid33"%08%09%0A%0C%0D%22%5C"34"\b\t\n\f\r\"\\"3536@urid37"%2C-.%2F09%3A%3B%3C%3D%3E%3F%40AZ%5B%5C%5D%5E_%60az%7B%7C%7D~%7F"38",-./09:;<=>?@AZ[\\]^_`az{|}~\u007f"3940@urid

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 41–43why, one step back
41"a%20%CE%BC%20%E2%88%B0%20%F0%9F%98%8E"
42"a \u03bc \u2230 \ud83d\ude0e"43

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 44–46why, one step back
44@urid
45"a%00b%00c"46"a\u0000b\u0000c"

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

line 47why, one step back
47

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 48–64why, one step back
48@urid
49"hello world"50"hello world"5152@urid53"Knäckebröd"54"Knäckebröd"5556@urid57"%c3%a4b%c3%a7d%c3%ab"58"äbçdë"5960@urid61"a\u0000b\u0000c"62"a\u0000b\u0000c"6364# '%' at end of string

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

line 65why, one step back
65. | try @urid catch .

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 66–67why, one step back
66"abc%"
67"string (\"abc%\") is not a valid uri encoding"

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

line 68why, one step back
68

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 69–78why, one step back
69# '%' followed by only one hex digit
70. | try @urid catch .71"abc%f"72"string (\"abc%f\") is not a valid uri encoding"7374# '%' followed by non-hex character75. | try @urid catch .76"abc%g"77"string (\"abc%g\") is not a valid uri encoding"78

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 79–83why, one step back
79# invalid hex value ('FX')
80. | try @urid catch .81"%FX%9F%98%8E"82"string (\"%FX%9F%98%8E\") is not a valid uri encoding"83

Refactor @uri and @urid and fix multi-byte UTF-8 corruption (#3495)itchynybefore adoptionbfcf82f

lines 84–89why, one step back
84# incomplete 4-byte UTF-8 sequence (only 3 bytes)
85. | try @urid catch .86"%F0%93%81"87"string (\"%F0%93%81\") is not a valid uri encoding"8889# invalid continuation byte (0xC0 is not 10xxxxxx)

website: remove unused root path on building website (#3248)itchynybefore adoptionfa6a2ff

lines 90–92why, one step back
90. | try @urid catch .
91"%F0%C0%81%8E"92"string (\"%F0%C0%81%8E\") is not a valid uri encoding"