diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-10 20:52:57 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-10 20:52:57 -0800 |
commit | 337508c82cbe598b8796fc532cd92e8230b099cb (patch) | |
tree | 8e1732b4978a7d9e40dc545bb1dd1fdc8acdf2e9 /core/src/test/scala/forge/TestGraphs.scala | |
parent | 79bfb324a231bb3f46a180039b6d68ca042f181b (diff) | |
download | mill-337508c82cbe598b8796fc532cd92e8230b099cb.tar.gz mill-337508c82cbe598b8796fc532cd92e8230b099cb.tar.bz2 mill-337508c82cbe598b8796fc532cd92e8230b099cb.zip |
rename forge -> mill
Diffstat (limited to 'core/src/test/scala/forge/TestGraphs.scala')
-rw-r--r-- | core/src/test/scala/forge/TestGraphs.scala | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/core/src/test/scala/forge/TestGraphs.scala b/core/src/test/scala/forge/TestGraphs.scala deleted file mode 100644 index 9709979d..00000000 --- a/core/src/test/scala/forge/TestGraphs.scala +++ /dev/null @@ -1,97 +0,0 @@ -package forge - -import forge.define.Task.Cacher -import forge.TestUtil.test - -class TestGraphs(){ - // single - object singleton { - val single = test() - } - - // up---down - object pair { - val up = test() - val down = test(up) - } - - // up---o---down - object anonTriple{ - val up = test() - val down = test(test(up)) - } - - // left - // / \ - // up down - // \ / - // right - object diamond{ - val up = test() - val left = test(up) - val right = test(up) - val down = test(left, right) - } - - // o - // / \ - // up down - // \ / - // o - object anonDiamond{ - val up = test() - val down = test(test(up), test(up)) - } - - object defCachedDiamond extends Cacher{ - def up = T{ test() } - def left = T{ test(up) } - def right = T{ test(up) } - def down = T{ test(left, right) } - } - - - object borkedCachedDiamond2 extends Cacher { - def up = test() - def left = test(up) - def right = test(up) - def down = test(left, right) - } - - object borkedCachedDiamond3 { - def up = test() - def left = test(up) - def right = test(up) - def down = test(left, right) - } - - // o g-----o - // \ \ \ - // o o h-----I---o - // \ / \ / \ / \ \ - // A---c--o E o-o \ \ - // / \ / \ / \ o---J - // o d o--o o / / - // \ / \ / / - // o o---F---o - // / / - // o--B o - object bigSingleTerminal{ - val a = test(test(), test()) - val b = test(test()) - val e = { - val c = test(a) - val d = test(a) - test(test(test(), test(c)), test(test(c, test(d, b)))) - } - val f = test(test(test(), test(e))) - - val i = { - val g = test() - val h = test(g, e) - test(test(g), test(test(h))) - } - val j = test(test(i), test(i, f), test(f)) - } -} - |