Skip to content

Commit 5ecb9ae

Browse files
committed
Merge pull request matyb#44 from darsen/master
Minor fixes
2 parents 9e322c2 + 2d46dbc commit 5ecb9ae

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎koans/src/java8/AboutLambdas.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public String toString() {
3131
@Koan
3232
public void verySimpleLambda() throws InterruptedException {
3333
Runnable r8 = () -> str = "from other thread";
34-
r8.run();
34+
Thread tLambda = new Thread(r8, "Lambda Thread");
35+
tLambda.start();
3536
Thread.sleep(8);
3637
assertEquals(str, __);
3738
}

‎koans/src/java8/AboutLocalTime.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ public class AboutLocalTime {
1313
@Koan
1414
public void localTime () {
1515
LocalTime t1 = LocalTime.of(7,30);
16-
LocalTime t2 = LocalTime.parse(__);
17-
assertEquals(t1, t2);
16+
assertEquals(t1, LocalTime.parse(__));
1817
}
1918

2019
@Koan
2120
public void localTimeMinus () {
2221
LocalTime t1 = LocalTime.parse("10:30");
2322
LocalTime t2 = t1.minus(2, ChronoUnit.HOURS);
24-
assertEquals(t1, t2);
23+
assertEquals(t2, LocalTime.parse(__));
2524
}
2625

2726
}

0 commit comments

Comments
 (0)