Skip to content

Commit 46563b6

Browse files
committed
fixed problems
1 parent ce8e1c3 commit 46563b6

File tree

7 files changed

+3
-3
lines changed

7 files changed

+3
-3
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
68 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

app/src/test/java/hexlet/code/DifferTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void testGenerateDiffForJsonStylish() throws IOException {
134134
var data2 = Parser.parseFromResources("file2.json");
135135
var diff = Differ.calculateDiff(data1, data2);
136136
var actual = Formatter.format(diff, "stylish");
137-
assertEquals(EXPECTED_JSON_STYLISH.trim(), actual.trim());
137+
assertEquals(EXPECTED_JSON_STYLISH.trim(), actual.strip());
138138
System.out.println("ВСЕ РАБОТАЕТ!!!");
139139
}
140140

@@ -144,7 +144,7 @@ void testGenerateDiffForJsonPlain() throws IOException {
144144
var data2 = Parser.parseFromResources("file2.yml");
145145
var diff = Differ.calculateDiff(data1, data2);
146146
var actual = Formatter.format(diff, "plain");
147-
assertEquals(EXPECTED_DIFF_PLAIN.trim(), actual.trim());
147+
assertEquals(EXPECTED_DIFF_PLAIN.trim(), actual.strip());
148148
System.out.println("ВСЕ РАБОТАЕТ! лала!!!");
149149
}
150150

@@ -155,7 +155,7 @@ void testGenerateDiffForJsonJson() throws IOException {
155155
var data2 = Parser.parseFromResources("file2.json");
156156
var diff = Differ.calculateDiff(data1, data2);
157157
var actual = Formatter.format(diff, "json");
158-
assertEquals(EXPECTED_JSON.trim(), actual.trim());
158+
assertEquals(EXPECTED_JSON.trim(), actual.strip());
159159
System.out.println("ВСЕ РАБОТАЕТ! дада!!!");
160160
}
161161
}

0 commit comments

Comments
 (0)