diff options
| author | Cliff Click <cliffc@acm.org> | 2026-11-08 14:10:02 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-11-08 14:10:02 -0800 |
| commit | 06fb5aceeb65a75b1cd643debd667c52fdcafcb9 (patch) | |
| tree | c99813eaf27d98f840245302c4d6e923c964307e /chapter30/src/test/java/com/seaofnodes/simple/IncrementalBuildTest.java | |
| parent | 6560a92433a38825fd1d44d9c66ffba9f26990ff (diff) | |
| download | Simple-ch30.tar.gz Simple-ch30.zip | |
Better error messagesch30
Better error messages.
Buffs to the std lib; getch() to fetch a single character; streaming I/O handles retries, and large sizes, with better error reporting.
Formatted strings.
Default int moved to i32.
TicTacToe, the game.
Diffstat (limited to 'chapter30/src/test/java/com/seaofnodes/simple/IncrementalBuildTest.java')
| -rw-r--r-- | chapter30/src/test/java/com/seaofnodes/simple/IncrementalBuildTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter30/src/test/java/com/seaofnodes/simple/IncrementalBuildTest.java b/chapter30/src/test/java/com/seaofnodes/simple/IncrementalBuildTest.java index d8f7ef34..155ebac3 100644 --- a/chapter30/src/test/java/com/seaofnodes/simple/IncrementalBuildTest.java +++ b/chapter30/src/test/java/com/seaofnodes/simple/IncrementalBuildTest.java @@ -68,8 +68,8 @@ public class IncrementalBuildTest { @Test public void testSourceChangeAndCycle() throws Exception { Path root=fixture("bundle-"); Path src=root.resolve("src"), obj=root.resolve("obj"); - write(src,"App/A","val value={int n -> n ? B.value(n-1) : 1; };",1000); - write(src,"App/B","val value={int n -> n ? A.value(n-1) : 5; };",1000); + write(src,"App/A","val value={int n -> n ? B.value(--n) : 1; };",1000); + write(src,"App/B","val value={int n -> n ? A.value(--n) : 5; };",1000); write(src,"App/Main","return A.value(1);",1000); compile(src,obj,"App/A"); assertEquals("One build timestamp for the cycle",Files.getLastModifiedTime(obj.resolve("App/A.o")), @@ -82,7 +82,7 @@ public class IncrementalBuildTest { assertNull(code._compunits.get("App/A")._src); assertNull(code._compunits.get("App/B")._src); - write(src,"App/B","val value={int n -> n ? A.value(n-1) : 7; };",4000); + write(src,"App/B","val value={int n -> n ? A.value(--n) : 7; };",4000); code=client(src,obj); assertEquals("7",Eval2.eval(code,0)); assertNotNull(code._compunits.get("App/A")._src); |
