Posted By: IKEGAMI Daisuke
Date: 2006-08-10 23:48
Summary: RushCheck new
Project: RushCheck
RushCheck is a random testing tool, which is one of implementations of QuickCheck in Haskell.
Imagine that if you have to test your function.
After writing an assertion for the function, it is nice to test the assertion automatically many times with random test instances.
Here is an example:
Assertion.new(Integer, Integer) do |x, y|
# for any random integers x and y
[x, y].sort == [x, y]
end.check
# ==> find a counter example automatically
# in many random instance x and y during 100 tests.
Even RushCheck is in alpha-stage, however,
it may help you to write tests quickly.
Happy hacking with tests
Ike |
|