Naming tests
Posted: Sat Aug 04, 2012 8:46 pm
I have added basic support for naming tests in the Cobra parser:
Eventually we'll get into options like running a specific test, excluding tests, parameterized tests, etc. For now I just wanted to stub out this syntax so we could start using it.
Enjoy.
class X
test fill
ml = MultiList<of int>(4, 3, 2).fill(5, [1, 2, 3, 4, 5, 6, 7, 8])
assert ml.toString == ...
ml1 = MultiList<of Pair<of int>>([2, 2]).fill([Pair<of int>(0, 2), Pair<of int>(1, 3)])
ml2 = MultiList<of Pair<of int>>([2, 2], [Pair<of int>(0, 2), Pair<of int>(1, 3)])
assert ml1.equals(ml2)
test cloneAndTranspose
ml = MultiList<of int>([3, 4, 2], for i in 24 get i+3)
assert ml.clone.transpose.equals(ml.permute([2, 1, 0]))
Eventually we'll get into options like running a specific test, excluding tests, parameterized tests, etc. For now I just wanted to stub out this syntax so we could start using it.
Enjoy.