Add a test case for each WhiteSpace/LineTerminator character

This commit is contained in:
Richard Gibson 2021-07-14 22:55:36 -04:00 committed by Rick Waldron
parent 5b1cfdd2b0
commit 3a69fc75d9
25 changed files with 788 additions and 0 deletions

View File

@ -0,0 +1,29 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+000D CARRIAGE RETURN <CR>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+000D`
</td>
<td>
CARRIAGE RETURN (CR)
</td>
<td>
&lt;CR&gt;
</td>
</tr>
LineTerminator ::
&lt;LF&gt;
&lt;CR&gt;
&lt;LS&gt;
&lt;PS&gt;
---*/
//- character codepoints
000D

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2001 EM QUAD
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2001

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2003 EM SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2003

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2000 EN QUAD
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2000

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2002 EN SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2002

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2007 FIGURE SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2007

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+000C FORM FEED <FF>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+000C`
</td>
<td>
FORM FEED (FF)
</td>
<td>
&lt;FF&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
000C

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2005 FOUR-PER-EM SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2005

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+200A HAIR SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
200A

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+3000 IDEOGRAPHIC SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
3000

View File

@ -0,0 +1,29 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+000A LINE FEED <LF>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+000A`
</td>
<td>
LINE FEED (LF)
</td>
<td>
&lt;LF&gt;
</td>
</tr>
LineTerminator ::
&lt;LF&gt;
&lt;CR&gt;
&lt;LS&gt;
&lt;PS&gt;
---*/
//- character codepoints
000A

View File

@ -0,0 +1,29 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2028 LINE SEPARATOR <LS>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+2028`
</td>
<td>
LINE SEPARATOR
</td>
<td>
&lt;LS&gt;
</td>
</tr>
LineTerminator ::
&lt;LF&gt;
&lt;CR&gt;
&lt;LS&gt;
&lt;PS&gt;
---*/
//- character codepoints
2028

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+205F MEDIUM MATHEMATICAL SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
205F

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+00A0 NO-BREAK SPACE <NBSP>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+00A0`
</td>
<td>
NO-BREAK SPACE
</td>
<td>
&lt;NBSP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
00A0

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+202F NARROW NO-BREAK SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
202F

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+1680 OGHAM SPACE MARK
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
1680

View File

@ -0,0 +1,29 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2029 PARAGRAPH SEPARATOR <PS>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+2029`
</td>
<td>
PARAGRAPH SEPARATOR
</td>
<td>
&lt;PS&gt;
</td>
</tr>
LineTerminator ::
&lt;LF&gt;
&lt;CR&gt;
&lt;LS&gt;
&lt;PS&gt;
---*/
//- character codepoints
2029

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2008 PUNCTUATION SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2008

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2006 SIX-PER-EM SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2006

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+0020 SPACE <SP>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+0020`
</td>
<td>
SPACE
</td>
<td>
&lt;SP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
0020

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+0009 CHARACTER TABULATION <TAB>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+0009`
</td>
<td>
CHARACTER TABULATION
</td>
<td>
&lt;TAB&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
0009

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2009 THIN SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2009

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+2004 THREE-PER-EM SPACE
template: expression
esid: sec-white-space
info: |
<tr>
<td>
Other category &ldquo;Zs&rdquo;
</td>
<td>
Any other Unicode &ldquo;Space_Separator&rdquo; code point
</td>
<td>
&lt;USP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
2004

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+000B LINE TABULATION <VT>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+000B`
</td>
<td>
LINE TABULATION
</td>
<td>
&lt;VT&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
000B

View File

@ -0,0 +1,32 @@
// Copyright (C) 2021 Richard Gibson. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: U+FEFF ZERO WIDTH NO-BREAK SPACE <ZWNBSP>
template: expression
esid: sec-white-space
info: |
<tr>
<td>
`U+FEFF`
</td>
<td>
ZERO WIDTH NO-BREAK SPACE
</td>
<td>
&lt;ZWNBSP&gt;
</td>
</tr>
WhiteSpace ::
&lt;TAB&gt;
&lt;VT&gt;
&lt;FF&gt;
&lt;SP&gt;
&lt;NBSP&gt;
&lt;ZWNBSP&gt;
&lt;USP&gt;
---*/
//- character codepoints
FEFF