mirror of https://github.com/tc39/test262.git
Add a test case for each WhiteSpace/LineTerminator character
This commit is contained in:
parent
5b1cfdd2b0
commit
3a69fc75d9
|
@ -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>
|
||||
<CR>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
LineTerminator ::
|
||||
<LF>
|
||||
<CR>
|
||||
<LS>
|
||||
<PS>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
000D
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2001
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2003
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2000
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2002
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2007
|
|
@ -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>
|
||||
<FF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
000C
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2005
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
200A
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
3000
|
|
@ -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>
|
||||
<LF>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
LineTerminator ::
|
||||
<LF>
|
||||
<CR>
|
||||
<LS>
|
||||
<PS>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
000A
|
|
@ -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>
|
||||
<LS>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
LineTerminator ::
|
||||
<LF>
|
||||
<CR>
|
||||
<LS>
|
||||
<PS>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2028
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
205F
|
|
@ -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>
|
||||
<NBSP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
00A0
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
202F
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
1680
|
|
@ -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>
|
||||
<PS>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
LineTerminator ::
|
||||
<LF>
|
||||
<CR>
|
||||
<LS>
|
||||
<PS>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2029
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2008
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2006
|
|
@ -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>
|
||||
<SP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
0020
|
|
@ -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>
|
||||
<TAB>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
0009
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2009
|
|
@ -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 “Zs”
|
||||
</td>
|
||||
<td>
|
||||
Any other Unicode “Space_Separator” code point
|
||||
</td>
|
||||
<td>
|
||||
<USP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
2004
|
|
@ -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>
|
||||
<VT>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
000B
|
|
@ -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>
|
||||
<ZWNBSP>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
WhiteSpace ::
|
||||
<TAB>
|
||||
<VT>
|
||||
<FF>
|
||||
<SP>
|
||||
<NBSP>
|
||||
<ZWNBSP>
|
||||
<USP>
|
||||
---*/
|
||||
|
||||
//- character codepoints
|
||||
FEFF
|
Loading…
Reference in New Issue