@@ -18,7 +18,6 @@ class ValidFieldNameOfTest {
1818 Case (" mañana" , " mañana" , false ), // Latin letter with diacritic
1919 Case (" Δelta" , " Δelta" , false ), // Greek uppercase letter
2020 Case (" __name" , " __name" , false ),
21-
2221 // needs quoting due to rules
2322 Case (" _" , " _" , true ), // all underscores
2423 Case (" __" , " __" , true ), // all underscores
@@ -42,19 +41,17 @@ class ValidFieldNameOfTest {
4241 Case (" a*b" , " a*b" , true ),
4342 Case (" a(b)c" , " a(b)c" , true ), // parentheses are quoted, not replaced
4443 Case (" {x}" , " {x}" , true ), // braces are quoted, not replaced
45-
4644 // quoting due to non-letter symbol categories
4745 Case (" 😀" , " 😀" , true ), // emoji
4846 Case (" 你好" , " 你好" , true ), // CJK: category OTHER_LETTER -> quote
4947 Case (" क" , " क" , true ), // Devanagari OTHER_LETTER -> quote
5048 Case (" a\t b" , " a\t b" , true ), // tab (CONTROL) -> quote, not replaced
5149 Case (" a\u200B b" , " a\u200B b" , true ), // zero-width space (FORMAT) -> quote
52-
5350 // precise replacement tests when quoting is needed
5451 Case (" <name>" , " {name}" , true ), // < > -> { }
55- Case (" a::b" , " a - b" , true ), // :: -> -
56- Case (" a:b" , " a - b" , true ), // : -> -
57- Case (" a: b" , " a - b" , true ), // : -> -
52+ Case (" a::b" , " a - b" , true ), // :: -> -
53+ Case (" a:b" , " a - b" , true ), // : -> -
54+ Case (" a: b" , " a - b" , true ), // : -> -
5855 Case (" a.b" , " a b" , true ), // . -> space
5956 Case (" a/b" , " a-b" , true ), // / -> -
6057 Case (" a[b]" , " a{b}" , true ), // [ ] -> { }
@@ -76,7 +73,6 @@ class ValidFieldNameOfTest {
7673 Case (" x>y" , " x}y" , true ),
7774 Case (" a.b.c" , " a b c" , true ),
7875 Case (" a/b/c" , " a-b-c" , true ),
79-
8076 // extra heavy special-symbol cases
8177 Case (" ::" , " - " , true ),
8278 Case (" :::" , " - - " , true ),
@@ -86,7 +82,6 @@ class ValidFieldNameOfTest {
8682 Case (" x`;;`y" , " x' 'y" , true ),
8783 Case (" a:::b" , " a - - b" , true ),
8884 Case (" ..a.." , " a " , true ),
89-
9085 // already quoted stays as-is and does not need quoting
9186 Case (" `already quoted`" , " `already quoted`" , false ),
9287 )
0 commit comments