Skip to content

Commit 2761cae

Browse files
authored
Merge pull request matyb#63 from DavidWhitlock/augment-basicFileWritingAndReading
Give the student a clue about the String in basicFileWritingAndReading
2 parents 12f7a35 + a4718be commit 2761cae

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎koans/src/intermediate/AboutFileIO.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ public void basicFileWritingAndReading() throws IOException {
4040
// No flush necessary!
4141
fr.close();
4242
assertEquals(size, __);
43-
assertEquals(new String(in), __);
43+
String expected = new String(in);
44+
assertEquals(expected.length(), __);
45+
assertEquals(expected, __);
4446
file.delete();
4547
}
4648

0 commit comments

Comments
 (0)