public procedure test_equal(sequence name, object expected, object outcome)
But many of the tests have outcome before expected.
That will lead to confusing test error messages. For example, in the raindrops exercise, if the number is not divisible by 3 or 5 or 7, I return the incorrect value "foo", and the test results say:
failed: 2 to the power 3 does not make a raindrop sound as 3 is the exponent not the base, expected: "foo" but got: "8"
This will be a large effort to fix. I can help if you want to divide the labour.
I see in std/unittest.e:
But many of the tests have
outcome
beforeexpected
.That will lead to confusing test error messages. For example, in the raindrops exercise, if the number is not divisible by 3 or 5 or 7, I return the incorrect value "foo", and the test results say:
This will be a large effort to fix. I can help if you want to divide the labour.