diff options
Diffstat (limited to 'chapter22/src/test/java')
| -rw-r--r-- | chapter22/src/test/java/com/seaofnodes/simple/Chapter20Test.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chapter22/src/test/java/com/seaofnodes/simple/Chapter20Test.java b/chapter22/src/test/java/com/seaofnodes/simple/Chapter20Test.java index baee39fe..e14c323f 100644 --- a/chapter22/src/test/java/com/seaofnodes/simple/Chapter20Test.java +++ b/chapter22/src/test/java/com/seaofnodes/simple/Chapter20Test.java @@ -63,9 +63,8 @@ val sqrt = { int x -> guess = next; } }; -int truncate_me = (arg+2); -int truncate = arg; -return sqrt(truncate) + sqrt(truncate_me); +int cast_int = arg+2; +return sqrt(arg) + sqrt(cast_int); """; testCPU(src,"x86_64_v2", "Win64" ,23,null); testCPU(src,"riscv" , "SystemV",19,null); |
