added some more tests

master
Charles Iliya Krempeaux 2020-08-05 21:31:31 -07:00
parent f836e90345
commit 51a234fe0b
1 changed files with 18 additions and 0 deletions

View File

@ -291,6 +291,24 @@ func TestReadRune(t *testing.T) {
ExpectedRune: 0x10ffff, ExpectedRune: 0x10ffff,
ExpectedInt: 4, ExpectedInt: 4,
}, },
{
Reader: strings.NewReader("\u0085"), // next line
ExpectedRune: 0x0085,
ExpectedInt: 2,
},
{
Reader: strings.NewReader("\u2028"), // line separator
ExpectedRune: 0x2028,
ExpectedInt: 3,
},
{
Reader: strings.NewReader("\u2029"), // paragraph separator
ExpectedRune: 0x2029,
ExpectedInt: 3,
},
} }