Skip to content

Commit 5c04477

Browse files
author
Alex Klymenko
committed
checkstyle: fix formatting
1 parent bdbee45 commit 5c04477

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

src/test/java/com/thealgorithms/strings/MyAtoiTest.java

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,8 @@
99
public class MyAtoiTest {
1010

1111
@ParameterizedTest
12-
@CsvSource({
13-
"'42', 42",
14-
"' -42', -42",
15-
"'4193 with words', 4193",
16-
"'words and 987', 0",
17-
"'-91283472332', -2147483648",
18-
"'21474836460', 2147483647",
19-
"' +123', 123",
20-
"'', 0",
21-
"' ', 0",
22-
"'-2147483648', -2147483648",
23-
"'+2147483647', 2147483647",
24-
"' -0012a42', -12",
25-
"'9223372036854775808', 2147483647",
26-
"'-9223372036854775809', -2147483648",
27-
"'3.14159', 3",
28-
"' -0012', -12",
29-
"' 0000000000012345678', 12345678",
30-
"' -0000000000012345678', -12345678",
31-
"' +0000000000012345678', 12345678",
32-
"'0', 0",
33-
"'+0', 0",
34-
"'-0', 0"
35-
})
12+
@CsvSource({"'42', 42", "' -42', -42", "'4193 with words', 4193", "'words and 987', 0", "'-91283472332', -2147483648", "'21474836460', 2147483647", "' +123', 123", "'', 0", "' ', 0", "'-2147483648', -2147483648", "'+2147483647', 2147483647", "' -0012a42', -12",
13+
"'9223372036854775808', 2147483647", "'-9223372036854775809', -2147483648", "'3.14159', 3", "' -0012', -12", "' 0000000000012345678', 12345678", "' -0000000000012345678', -12345678", "' +0000000000012345678', 12345678", "'0', 0", "'+0', 0", "'-0', 0"})
3614
void testMyAtoi(String input, int expected) {
3715
assertEquals(expected, MyAtoi.myAtoi(input));
3816
}

0 commit comments

Comments
 (0)