Skip to content

Commit 138d2bb

Browse files
lint fix
1 parent f6879da commit 138d2bb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/ValidFieldNameOfTest.kt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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\tb", "a\tb", true), // tab (CONTROL) -> quote, not replaced
5149
Case("a\u200Bb", "a\u200Bb", 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

Comments
 (0)