|
1 | 1 | package de.joshuagleitze.stringnotation |
2 | 2 |
|
3 | | -class UpperCamelCaseTest: BaseNotationTest( |
4 | | - notation = UpperCamelCase, |
5 | | - unchangedWords = listOf("ImInUpperCamelCase" to Word("im", "in", "upper", "camel", "case")), |
6 | | - printOnlyWords = listOf( |
7 | | - Word("removes", "upperCase") to "RemovesUppercase" |
8 | | - ) |
| 3 | +class UpperCamelCaseTest : BaseNotationTest( |
| 4 | + notation = UpperCamelCase, |
| 5 | + unchangedWords = listOf("ImInUpperCamelCase" to Word("im", "in", "upper", "camel", "case")), |
| 6 | + printOnlyWords = listOf( |
| 7 | + Word("removes", "upperCase") to "RemovesUppercase" |
| 8 | + ) |
9 | 9 | ) |
10 | 10 |
|
11 | | -class LowerCamelCaseTest: BaseNotationTest( |
12 | | - notation = LowerCamelCase, |
13 | | - unchangedWords = listOf("imInLowerCamelCase" to Word("im", "in", "lower", "camel", "case")), |
14 | | - printOnlyWords = listOf( |
15 | | - Word("removes", "upperCase") to "removesUppercase" |
16 | | - ) |
| 11 | +class LowerCamelCaseTest : BaseNotationTest( |
| 12 | + notation = LowerCamelCase, |
| 13 | + unchangedWords = listOf("imInLowerCamelCase" to Word("im", "in", "lower", "camel", "case")), |
| 14 | + printOnlyWords = listOf( |
| 15 | + Word("removes", "upperCase") to "removesUppercase" |
| 16 | + ) |
17 | 17 | ) |
18 | 18 |
|
19 | | -class ScreamingSnakeCaseTest: BaseNotationTest( |
20 | | - notation = ScreamingSnakeCase, |
21 | | - unchangedWords = listOf("IM_IN_SCREAMING_SNAKE_CASE" to Word("im", "in", "screaming", "snake", "case")), |
22 | | - parseOnlyWords = listOf("im_iN_sNAKe_cASE_with_CAPItals" to Word("im", "in", "snake", "case", "with", "capitals")), |
23 | | - printOnlyWords = listOf(Word("im", "iN", "sNAKe", "cASE", "with", "CAPItals") to "IM_IN_SNAKE_CASE_WITH_CAPITALS") |
| 19 | +class ScreamingSnakeCaseTest : BaseNotationTest( |
| 20 | + notation = ScreamingSnakeCase, |
| 21 | + unchangedWords = listOf( |
| 22 | + "IM_IN_SCREAMING_SNAKE_CASE" to Word("im", "in", "screaming", "snake", "case"), |
| 23 | + "_I_HAVE_A_PREFIX" to Word("_i", "have", "a", "prefix") |
| 24 | + ), |
| 25 | + parseOnlyWords = listOf("im_iN_sNAKe_cASE_with_CAPItals" to Word("im", "in", "snake", "case", "with", "capitals")), |
| 26 | + printOnlyWords = listOf(Word("im", "iN", "sNAKe", "cASE", "with", "CAPItals") to "IM_IN_SNAKE_CASE_WITH_CAPITALS") |
24 | 27 | ) |
25 | 28 |
|
26 | | -class SnakeCaseTest: BaseNotationTest( |
27 | | - notation = SnakeCase, |
28 | | - unchangedWords = listOf( |
29 | | - "im_in_snake_case" to Word("im", "in", "snake", "case"), |
30 | | - "im_iN_sNAKe_cASE_with_CAPItals" to Word("im", "iN", "sNAKe", "cASE", "with", "CAPItals") |
31 | | - ) |
| 29 | +class SnakeCaseTest : BaseNotationTest( |
| 30 | + notation = SnakeCase, |
| 31 | + unchangedWords = listOf( |
| 32 | + "im_in_snake_case" to Word("im", "in", "snake", "case"), |
| 33 | + "im_iN_sNAKe_cASE_with_CAPItals" to Word("im", "iN", "sNAKe", "cASE", "with", "CAPItals"), |
| 34 | + "_i_have_a_prefix" to Word("_i", "have", "a", "prefix") |
| 35 | + ) |
32 | 36 | ) |
33 | 37 |
|
34 | | -class NormalWordsTest: BaseNotationTest( |
35 | | - notation = NormalWords, |
36 | | - unchangedWords = listOf("I’m using normal words noTation!" to Word("I’m", "using", "normal", "words", "noTation!")), |
37 | | - parseOnlyWords = listOf( |
38 | | - "I’m using tabs\nand\r other fancy whitespace!" to Word( |
39 | | - "I’m", "using", "tabs", "and", "other", "fancy", "whitespace!" |
40 | | - ) |
41 | | - ) |
| 38 | +class NormalWordsTest : BaseNotationTest( |
| 39 | + notation = NormalWords, |
| 40 | + unchangedWords = listOf("I’m using normal words noTation!" to Word("I’m", "using", "normal", "words", "noTation!")), |
| 41 | + parseOnlyWords = listOf( |
| 42 | + "I’m using tabs\nand\r other fancy whitespace!" to Word( |
| 43 | + "I’m", "using", "tabs", "and", "other", "fancy", "whitespace!" |
| 44 | + ) |
| 45 | + ) |
42 | 46 | ) |
0 commit comments