Neil Brown
fca070e1bc
Changed the way replicated variables are handled and altered one of the tests accordingly
2008-01-20 17:02:05 +00:00
Neil Brown
bc820e87ce
Fixed the bounds for replicated variables; two of the three tests now pass
2008-01-20 15:01:45 +00:00
Neil Brown
fb0d2fe6a2
Changed test 200 in ArrayUsageCheckTest to match the new arrangement I have in mind
2008-01-19 15:38:13 +00:00
Neil Brown
ed8033833b
Added the code and tests for forming problems involving replication, but currently one of the two (or both) is buggy
2008-01-16 19:31:56 +00:00
Neil Brown
fde2d8dc17
Changed the assertEquivalentProblems so that the sizes are displayed alongside the zipped lists
2008-01-16 16:25:57 +00:00
Neil Brown
143c3b1994
Split out the ArrayUsageCheck module into ArrayUsageCheck (for formulating problems from code) and Omega (just the Omega Test)
2008-01-16 12:53:17 +00:00
Neil Brown
6d45352819
Added support for distinct versions of the same variable, ready to support replication
2008-01-16 12:43:39 +00:00
Neil Brown
af130291fc
Added some tests for replicated indexes in parallel
2008-01-16 12:14:09 +00:00
Neil Brown
bc2ffc59be
Corrected the bounds checking so that (size - 1) is used as the maximum index (not size, as before)
2008-01-16 11:52:32 +00:00
Neil Brown
a14a866502
Changed the test harness to get some tests inside the IO monad. This allows all the tests to be run, not just until the first failure
2008-01-16 11:15:05 +00:00
Neil Brown
b3216c4870
Added a test-source-file for testing the array usage checker, and added it to the appropriate test list
2008-01-16 03:28:26 +00:00
Neil Brown
bd998a5b95
Added a test for REM with a variable divisor
2008-01-16 01:48:39 +00:00
Neil Brown
612893bd0c
Corrected a bug from using zip where an "actual" list of size N would only match the first N elements of the expected, even if expected had more than N items
2008-01-16 00:39:05 +00:00
Neil Brown
f7503ac58c
Added a further test involving two REM operations (both still with constant divisors)
2008-01-15 21:22:46 +00:00
Neil Brown
43d0098f99
Added another test for formulating a problem involving the REM operator
2008-01-15 19:14:34 +00:00
Neil Brown
a00b1ea602
Fixed the existing test for modulo items (it now also passes)
2008-01-15 18:50:22 +00:00
Neil Brown
bc7c5072b8
Fixed the display of equations such as 0 = 0 after test failure
2008-01-15 18:47:28 +00:00
Neil Brown
2cb0610d83
Added custom, much more readable display of problems when the assertEquivalentProblems function fails
2008-01-15 18:12:04 +00:00
Neil Brown
d3fca1d610
Moved showMaybe to the Utils module and added a similar showListCustom function
2008-01-15 18:08:56 +00:00
Neil Brown
f6ba7be173
Changed various uses of the maximum function to make sure they always succeed
2008-01-15 17:33:19 +00:00
Neil Brown
918b9e7af7
Changed the array usage checking and all the tests to support modulo and division
...
This patch is unavoidably large (no easy way to split it down). The code compiles, but the modulo test (which is currently wrong anyway) fails at the moment
2008-01-15 17:08:15 +00:00
Neil Brown
524275cd9f
Added the ability to print out the variable mapping and inequalities in a more readable format when tests fail
2008-01-09 17:14:02 +00:00
Neil Brown
4ef97ed8b4
Changed the solveAndPrune test function to always have a valid mapping, even if there are no equalities
2008-01-09 14:55:59 +00:00
Neil Brown
57f18e5b18
Finished implementing the Omega Test - but a few tests are failing and I cannot yet see why
2008-01-09 12:05:09 +00:00
Neil Brown
218a1bd22c
Rearranged the tests for makeEquations to use a helper function, and added a couple of cases (one of which doesn't yet pass)
2007-12-17 02:38:05 +00:00
Neil Brown
8f1d1368af
Stopped makeEquations unnecessarily producing duplicate equations
2007-12-17 02:22:09 +00:00
Neil Brown
dc76d00085
Added better helper functions for testing the processing of expressions into equations
2007-12-17 02:13:17 +00:00
Neil Brown
1733869afd
Tidied up the tests and amended SolveEq to allow you to provide the answers, which are then checked
2007-12-16 19:20:53 +00:00
Neil Brown
02aa63ffda
Fixed the QuickCheck equality-equation generater so that it can no longer produce unsolveable equations
2007-12-16 19:05:32 +00:00
Neil Brown
70ce98021a
Added a few more HUnit tests for the equality solver
2007-12-16 19:05:01 +00:00
Neil Brown
3965babaff
Tidied up the testing framework for the HUnit Omega Test tests
2007-12-16 15:27:07 +00:00
Neil Brown
7403588aea
Fixed a situation where QuickCheck could occasionally generate duplicate equalities (where one was the negation of the other)
2007-12-16 14:12:29 +00:00
Neil Brown
423d22fa13
Moved the ArrayUsageCheck tests to their own new file (ArrayUsageCheckTest)
2007-12-16 14:02:45 +00:00