diff options
| author | J08nY | 2017-10-26 00:17:07 +0200 |
|---|---|---|
| committer | J08nY | 2017-10-26 00:17:07 +0200 |
| commit | ed0c5467c3fc16ca93aeab0cf06a5046915afdd6 (patch) | |
| tree | 2432cb9d01299a097c9da5f718881f074df220ad /src/cz/crcs/ectester/reader/test/Test.java | |
| parent | ca283e0c28ad2050c25f12817db8f8103f1cedc1 (diff) | |
| download | ECTester-ed0c5467c3fc16ca93aeab0cf06a5046915afdd6.tar.gz ECTester-ed0c5467c3fc16ca93aeab0cf06a5046915afdd6.tar.zst ECTester-ed0c5467c3fc16ca93aeab0cf06a5046915afdd6.zip | |
Add some more compound tests and suite descriptions.
Diffstat (limited to '')
| -rw-r--r-- | src/cz/crcs/ectester/reader/test/Test.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cz/crcs/ectester/reader/test/Test.java b/src/cz/crcs/ectester/reader/test/Test.java index 58da891..3848df2 100644 --- a/src/cz/crcs/ectester/reader/test/Test.java +++ b/src/cz/crcs/ectester/reader/test/Test.java @@ -138,10 +138,10 @@ public abstract class Test { return new Compound((tests) -> { for (Test test : tests) { if (test.getResultValue() != what) { - return new Result(Value.FAILURE); + return new Result(Value.FAILURE, "At least one of the sub-tests did not have the expected result."); } } - return new Result(Value.SUCCESS); + return new Result(Value.SUCCESS, "All sub-tests had the expected result."); }, all); } @@ -155,10 +155,10 @@ public abstract class Test { return new Compound((tests) -> { for (Test test : tests) { if (test.getResultValue() == what) { - return new Result(Value.SUCCESS); + return new Result(Value.SUCCESS, "At least one of the sub-tests did have the expected result."); } } - return new Result(Value.FAILURE); + return new Result(Value.FAILURE, "None of the sub-tests had the expected result."); }, any); } @@ -172,10 +172,10 @@ public abstract class Test { return new Compound((tests) -> { for (int i = 0; i < results.length; ++i) { if (results[i] != Value.ANY && results[i] != tests[i].getResultValue()) { - return new Result(Value.FAILURE); + return new Result(Value.FAILURE, "At least one of the sub-tests did not match the result mask."); } } - return new Result(Value.SUCCESS); + return new Result(Value.SUCCESS, "All sub-tests matched the expected mask."); }, masked); } |
