Commit Graph

45 Commits

Author SHA1 Message Date
Robbie Gleichman
ec0bf8adf7 Add pattern unit tests. 2016-12-14 01:10:18 -08:00
Robbie Gleichman
f2fd136ac9 Move enum and negate tests into UnitTests. Update .cabal. 2016-12-14 00:30:03 -08:00
Robbie Gleichman
5d5074cced Reduce warnings. 2016-12-13 23:21:34 -08:00
Robbie Gleichman
d24642dfe8 Add more let unit tests. 2016-12-13 23:13:43 -08:00
Robbie Gleichman
aeb877ced7 Enable more unit tests by renaming nodes in the syntax graphs. 2016-12-13 15:26:24 -08:00
Robbie Gleichman
aa5aa82801 Add infix and section unit tests. Fix left sections not being applied fully. 2016-12-13 01:53:04 -08:00
Robbie Gleichman
c5281d6280 Add apply and compose apply unit tests. 2016-12-12 23:02:48 -08:00
Robbie Gleichman
ebf27d4e53 Break up tests into several files. 2016-12-12 18:47:12 -08:00
Robbie Gleichman
dc09f976cc Replace (<$>) with fmap. 2016-12-12 01:06:21 -08:00
Robbie Gleichman
24cbfb6414 Add compose infix operator (.) translations. 2016-12-11 22:19:23 -08:00
Robbie Gleichman
c8649945c3 Cycle colors for nested apply. 2016-12-09 00:35:19 -08:00
Robbie Gleichman
63a5213ca4 Compose nested node. 2016-12-08 21:38:43 -08:00
Robbie Gleichman
1150fbb63a Add flat compose icon. 2016-12-08 19:19:47 -08:00
Robbie Gleichman
07b4f9bdb2 Add back pattern nesting in Translate.hs. 2016-12-06 21:09:04 -08:00
Robbie Gleichman
078a3305bf Add and embedding Map to SyntaxGraph. 2016-12-06 18:39:38 -08:00
Robbie Gleichman
5e1d724418 Change node identifier from string to Int. Now, data NameAndPort = NameAndPort NodeName (Maybe Port), where NodeName and Port are both Int newtypes. 2016-12-06 17:02:54 -08:00
Robbie Gleichman
d3c463d41f Pretty print graphs in tests. 2016-12-06 13:45:12 -08:00
Robbie Gleichman
9fd08c7432 Add test for improper pattern nesting. 2016-12-05 17:14:54 -08:00
Robbie Gleichman
0f9c4d5b80 Generalize the number type in SepcialQDiagram 2016-12-02 19:43:03 -08:00
Robbie Gleichman
59cd6757fe Rotate nodes with bezier curve edges. 2016-12-02 17:21:13 -08:00
Robbie Gleichman
e9abde2c8b Change the order of TransformableDia so Name is first. 2016-12-02 13:19:01 -08:00
Robbie Gleichman
a250b479a5 Use bezier curves for edges. 2016-12-01 20:46:24 -08:00
Robbie Gleichman
989a8f520e Refactor Rendering.hs to use IngSyntaxGraph instead of Drawing. Eliminate warnings in AllTests. 2016-11-30 20:45:50 -08:00
Robbie Gleichman
582528d74e Remove sub-Drawings from Drawing. 2016-11-28 13:55:26 -08:00
Robbie Gleichman
860e00a724 Fix edge transfer for embedded pattern apply. 2016-11-27 18:07:14 -08:00
Robbie Gleichman
02446b5b15 Reduce GHC warnings. 2016-11-27 17:25:30 -08:00
Robbie Gleichman
d617914139 Hlint suggestions. 2016-11-27 15:44:43 -08:00
Robbie Gleichman
4371f2d4c6 Fix factorial test. 2016-11-27 15:07:35 -08:00
Robbie Gleichman
0156f2af1d Refactor GraphAlgorithms. Child edge transfer for embedded pattern apply still needs to be fixed. 2016-11-27 14:41:07 -08:00
Robbie Gleichman
dd821cbb47 Fix bug in GraphAlgorithms where a node counted as its own parent. 2016-11-21 21:51:35 -08:00
Robbie Gleichman
4dafd8ea7e Use the new collapseNodes algorithm when rendering. Still need to do embedding for patterns. 2016-11-21 19:18:08 -08:00
Robbie Gleichman
99e2ad9493 Change the function name in NestedApply from a string to an Icon. 2016-11-20 15:34:18 -08:00
Robbie Gleichman
12d28b4b07 Add embedChildSyntaxNodes for ApplyNodes. 2016-11-19 14:45:16 -08:00
Robbie Gleichman
45b7bb3268 Add unit test for childCanBeEmbedded. Make NameNodes not embeddable. 2016-11-18 15:14:41 -08:00
Robbie Gleichman
b36ffd400a Add unit tests for findTreeRoots. Fix findTreeRoots. Improve renderFglGraph. 2016-11-17 15:56:10 -08:00
Robbie Gleichman
5ec0bc7902 Add test framework for collapseNodes using collapseTestStrings. 2016-11-03 15:30:04 -07:00
Robbie Gleichman
cab045da4b Extract the Graphviz parameters in Rendering.hs so they can be reused by renderFglGraph. 2016-11-03 14:52:22 -07:00
Robbie Gleichman
7ceb5977e4 Initial work for collapseNodes using graphs. 2016-11-02 14:49:29 -07:00
Robbie Gleichman
e19deaaa2d Convert SyntaxGraph to an FGL graph, and render it. 2016-07-02 14:43:18 -07:00
Robbie Gleichman
65fdc1006d Fix tests. Add test case for icons not nesting. 2016-05-29 12:00:57 -07:00
Robbie Gleichman
b71597b5ad Removed obsolete rendering tests. 2016-05-13 22:27:32 -07:00
Robbie Gleichman
242aa8225d Move render tests from app/Main.hs to test/AllTests.hs 2016-05-11 23:08:18 -07:00
Robbie Gleichman
84a9280ddd Fix tests. Add test_translate. Add an empty test-output directory so tests can be run with zero setup. 2016-05-10 22:33:07 -07:00
Robbie Gleichman
973674054e Remove (&) and (#), add tests. 2016-05-09 23:45:37 -07:00
Robbie Gleichman
95aebaccdc Initial commit 2016-01-04 17:18:42 -08:00