diff options
| author | XmiliaH <45106915+XmiliaH@users.noreply.github.com> | 2023-10-30 23:38:51 +0100 |
|---|---|---|
| committer | Dibyendu Majumdar <dibyendumajumdar@users.noreply.github.com> | 2023-11-01 18:56:50 +0000 |
| commit | a70bd6ae18754cbe1ee3da753a4801f5f5f7a9ce (patch) | |
| tree | 633172519bfc027c00a06af207b45ead341da755 /chapter05/src/test/java/com/seaofnodes | |
| parent | 92dc68ce159adb6fdbdb4cf1f964c57eac1f0c2d (diff) | |
| download | Simple-a70bd6ae18754cbe1ee3da753a4801f5f5f7a9ce.tar.gz Simple-a70bd6ae18754cbe1ee3da753a4801f5f5f7a9ce.zip | |
Add copy method to bool nodes (#23)
Diffstat (limited to 'chapter05/src/test/java/com/seaofnodes')
| -rw-r--r-- | chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java b/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java index 981af93c..95150f2e 100644 --- a/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java +++ b/chapter05/src/test/java/com/seaofnodes/simple/Chapter05Test.java @@ -78,6 +78,13 @@ return c; } @Test + public void testChapter5Merge5() { + Parser parser = new Parser("int a=arg==2;if(arg==1)a=arg==3;return a;"); + StopNode ret = parser.parse(true); + assertEquals("return (arg==Phi(Region16,3,2));", ret.toString()); + } + + @Test public void testChapter5True() { StopNode stop = new Parser("return true;").parse(); assertEquals("return 1;",stop.toString()); |
