Skip to content

Commit aac91da

Browse files
committed
Fix trailing whitespace in Java tests
1 parent eaf8089 commit aac91da

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

app/src/test/java/io/github/yawnoc/utilities/MappyTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ public void invertMap_isCorrect()
2323
forwardMap.put(1, "one");
2424
forwardMap.put(2, "two");
2525
forwardMap.put(3, "three");
26-
26+
2727
final Map<String, Integer> inverseMap = new HashMap<>();
2828
inverseMap.put("one", 1);
2929
inverseMap.put("two", 2);
3030
inverseMap.put("three", 3);
31-
31+
3232
assertEquals(Mappy.invertMap(forwardMap), inverseMap);
3333
assertEquals(Mappy.invertMap(inverseMap), forwardMap);
3434
}

app/src/test/java/io/github/yawnoc/utilities/StringyTest.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ public void isAscii_isCorrect()
4040
assertTrue(Stringy.isAscii("abc 123 #@% +-*/ ,:;.?!"));
4141
assertTrue(Stringy.isAscii("\"\\"));
4242
assertTrue(Stringy.isAscii(ASCII_FULL_STRING));
43-
43+
4444
assertFalse(Stringy.isAscii(Stringy.toString(ASCII_CODE_POINT_END + 1)));
4545
assertFalse(Stringy.isAscii(ASCII_FULL_STRING + "文"));
4646
assertFalse(Stringy.isAscii("一"));
4747
assertFalse(Stringy.isAscii("U+FF0C FULLWIDTH COMMA ,"));
4848
}
49-
49+
5050
@Test
5151
public void removePrefixRegex_isCorrect()
5252
{
@@ -55,15 +55,15 @@ public void removePrefixRegex_isCorrect()
5555
assertEquals(Stringy.removePrefixRegex("[a-z]+", "abc xyz"), " xyz");
5656
assertEquals(Stringy.removePrefixRegex("[a-z]+", "123 456"), "123 456");
5757
}
58-
58+
5959
@Test
6060
public void removeSuffixRegex_isCorrect()
6161
{
6262
assertEquals(Stringy.removeSuffixRegex(".", "12345"), "1234");
6363
assertEquals(Stringy.removeSuffixRegex("[a-z]+", "abc xyz"), "abc ");
6464
assertEquals(Stringy.removeSuffixRegex("[a-z]+", "123 456"), "123 456");
6565
}
66-
66+
6767
@Test
6868
public void removePrefix_isCorrect()
6969
{
@@ -72,21 +72,21 @@ public void removePrefix_isCorrect()
7272
assertEquals(Stringy.removePrefix("2", "234"), "34");
7373
assertEquals(Stringy.removePrefix("WELL_", "WELL_SCREW_YOU"), "SCREW_YOU");
7474
}
75-
75+
7676
@Test
7777
public void getFirstCodePoint_isCorrect()
7878
{
7979
assertEquals(Stringy.getFirstCodePoint("ABC"), 0x0041);
8080
assertEquals(Stringy.getFirstCodePoint("天下為公"), 0x5929);
8181
}
82-
82+
8383
@Test
8484
public void toCodePointList_isCorrect()
8585
{
8686
assertEquals(Stringy.toCodePointList(ASCII_FULL_STRING), ASCII_CODE_POINT_RANGE);
8787
assertEquals(Stringy.toCodePointList("天下為公"), Arrays.asList(0x5929, 0x4E0B, 0x70BA, 0x516C));
8888
}
89-
89+
9090
@Test
9191
public void toCodePointSet_isCorrect()
9292
{
@@ -103,17 +103,17 @@ public void toCodePointSet_isCorrect()
103103
public void toString_isCorrect()
104104
{
105105
assertEquals(Stringy.toString(0x0000), "\0");
106-
106+
107107
assertEquals(Stringy.toString(0x0030), "0");
108108
assertEquals("!", Stringy.toString(0x0021));
109109
assertEquals("A", Stringy.toString(0x0041));
110-
110+
111111
assertEquals(Stringy.toString(0x3007), "〇");
112112
assertEquals(Stringy.toString(0x3400), "㐀");
113113
assertEquals(Stringy.toString(0x4DB5), "䶵");
114114
assertEquals(Stringy.toString(0x4E00), "一");
115115
assertEquals(Stringy.toString(0x9FD0), "鿐");
116-
116+
117117
assertEquals(Stringy.toString(0x2000B), "\uD840\uDC0B"); // 𠀋
118118
assertEquals(Stringy.toString(0x2A6B2), "\uD869\uDEB2"); // 𪚲
119119
assertEquals(Stringy.toString(0x2A7DD), "\uD869\uDFDD"); // 𪟝
@@ -123,21 +123,21 @@ public void toString_isCorrect()
123123
assertEquals(Stringy.toString(0x2B8B8), "\uD86E\uDCB8"); // 𫢸
124124
assertEquals(Stringy.toString(0x2CE93), "\uD873\uDE93"); // 𬺓
125125
}
126-
126+
127127
@Test
128128
public void toCharacterList_isCorrect()
129129
{
130130
assertEquals(Stringy.toCharacterList("ABC"), Arrays.asList("A", "B", "C"));
131131
assertEquals(Stringy.toCharacterList("天下為公"), Arrays.asList("天", "下", "為", "公"));
132132
}
133-
133+
134134
@Test
135135
public void sunder_isCorrect()
136136
{
137137
assertArrayEquals(Stringy.sunder("abc 123", " "), new String[]{"abc", "123"});
138138
assertArrayEquals(Stringy.sunder("abc\t123", "\t"), new String[]{"abc", "123"});
139139
assertArrayEquals(Stringy.sunder("abc:::123", ":::"), new String[]{"abc", "123"});
140-
140+
141141
assertArrayEquals(Stringy.sunder("abc123", " "), new String[]{"abc123", ""});
142142
assertArrayEquals(Stringy.sunder(" abc123", " "), new String[]{"", "abc123"});
143143
}

app/src/test/java/io/github/yawnoc/utilities/ValueyTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
public class ValueyTest
1818
{
1919
private static final float FLOAT_ASSERTION_DELTA = 0f;
20-
20+
2121
@Test
2222
public void clipValueToRange_isCorrect()
2323
{
2424
final List<Float> LESS_THAN_ZERO_VALUES = Arrays.asList(-Float.MAX_VALUE, -10f, -1f, -0.5f, -Float.MIN_VALUE, -0f);
2525
final List<Float> ZERO_TO_ONE_VALUES = Arrays.asList(0f, +0f, Float.MIN_VALUE, 0.7f, 1f - Float.MIN_VALUE, 1f);
2626
final List<Float> GREATER_THAN_ONE_VALUES = Arrays.asList(1 + Float.MIN_VALUE, 2f, 10000f, Float.MAX_VALUE);
27-
27+
2828
for (final float value : LESS_THAN_ZERO_VALUES)
2929
{
3030
assertEquals(Valuey.clipValueToRange(value, 0f, 1f), 0f, FLOAT_ASSERTION_DELTA);
@@ -37,7 +37,7 @@ public void clipValueToRange_isCorrect()
3737
{
3838
assertEquals(Valuey.clipValueToRange(value, 0f, 1f), 1f, FLOAT_ASSERTION_DELTA);
3939
}
40-
40+
4141
assertEquals(Valuey.clipValueToRange(3f, 4f, 6f), 4f, FLOAT_ASSERTION_DELTA);
4242
assertEquals(Valuey.clipValueToRange(5f, 4f, 6f), 5f, FLOAT_ASSERTION_DELTA);
4343
assertEquals(Valuey.clipValueToRange(7f, 4f, 6f), 6f, FLOAT_ASSERTION_DELTA);

0 commit comments

Comments
 (0)