Revert "Removed theory parameter printing from sample & regression test"
& "Added regression tests on theories" This reverts commits4cc826eae3
and6110f43d87
. Regression tests cannot be done on the two theory samples, as they both illustrate the consequences of testing against undefined behaviour. A full-fledged internal test should be set up in ./samples/tests for this purpose.
This commit is contained in:
parent
5ffd883015
commit
974b7d0393
6 changed files with 6 additions and 36 deletions
|
@ -1,18 +0,0 @@
|
|||
[[0;34m----[0m] [0;1mtheories.c[0m:[0;31m27[0m: Assertion failed: The expression (a) == (bad_div(bad_mul(a, b), b)) is false.
|
||||
[[0;34m----[0m] Theory algebra::bad_divide_is_inverse_of_multiply failed with the following parameters: (2147483647, 2)
|
||||
[[0;34m----[0m] [0;1mtheories.c[0m:[0;31m27[0m: Assertion failed: The expression (a) == (bad_div(bad_mul(a, b), b)) is false.
|
||||
[[0;34m----[0m] Theory algebra::bad_divide_is_inverse_of_multiply failed with the following parameters: (-2147483648, 2)
|
||||
[[0;34m----[0m] [0;1mtheories.c[0m:[0;31m27[0m: Unexpected signal caught below this line!
|
||||
[[0;31mFAIL[0m] algebra::bad_divide_is_inverse_of_multiply: CRASH!
|
||||
[[0;34m----[0m] [0;1mtheories.c[0m:[0;31m117[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (1)
|
||||
[[0;34m----[0m] [0;1mtheories.c[0m:[0;31m117[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (2)
|
||||
[[0;34m----[0m] [0;1mtheories.c[0m:[0;31m117[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (3)
|
||||
[[0;34m----[0m] [0;1mtheories.c[0m:[0;31m117[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (4)
|
||||
[[0;34m----[0m] [0;1mtheories.c[0m:[0;31m117[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (5)
|
||||
[[0;31mFAIL[0m] theory::gen: (0.00s)
|
||||
[[0;34m====[0m] [0;1mSynthesis: Tested: [0;34m6[0;1m | Passing: [0;32m4[0;1m | Failing: [0;31m2[0;1m | Crashing: [0;31m1[0;1m [0m
|
|
@ -1,18 +0,0 @@
|
|||
[[0;34m----[0m] [0;1mtheories.cc[0m:[0;31m31[0m: Assertion failed: The expression (a) == (bad_div(bad_mul(a, b), b)) is false.
|
||||
[[0;34m----[0m] Theory algebra::bad_divide_is_inverse_of_multiply failed with the following parameters: (2147483647, 2)
|
||||
[[0;34m----[0m] [0;1mtheories.cc[0m:[0;31m31[0m: Assertion failed: The expression (a) == (bad_div(bad_mul(a, b), b)) is false.
|
||||
[[0;34m----[0m] Theory algebra::bad_divide_is_inverse_of_multiply failed with the following parameters: (-2147483648, 2)
|
||||
[[0;34m----[0m] [0;1mtheories.cc[0m:[0;31m31[0m: Unexpected signal caught below this line!
|
||||
[[0;31mFAIL[0m] algebra::bad_divide_is_inverse_of_multiply: CRASH!
|
||||
[[0;34m----[0m] [0;1mtheories.cc[0m:[0;31m125[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (1)
|
||||
[[0;34m----[0m] [0;1mtheories.cc[0m:[0;31m125[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (2)
|
||||
[[0;34m----[0m] [0;1mtheories.cc[0m:[0;31m125[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (3)
|
||||
[[0;34m----[0m] [0;1mtheories.cc[0m:[0;31m125[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (4)
|
||||
[[0;34m----[0m] [0;1mtheories.cc[0m:[0;31m125[0m: Assertion failed: The conditions for this assertion were not met.
|
||||
[[0;34m----[0m] Theory theory::gen failed with the following parameters: (5)
|
||||
[[0;31mFAIL[0m] theory::gen: (0.00s)
|
||||
[[0;34m====[0m] [0;1mSynthesis: Tested: [0;34m6[0;1m | Passing: [0;32m4[0;1m | Failing: [0;31m2[0;1m | Crashing: [0;31m1[0;1m [0m
|
|
@ -98,6 +98,9 @@ Theory((char c, bool b, short s, int i, long l, long long ll, float f, double d,
|
|||
cr_assert_str_eq(str, "test");
|
||||
cr_assert_str_eq(cstr, "other test");
|
||||
cr_assert_eq(obj->foo, 42);
|
||||
|
||||
// abort to see the formatted string of all parameters
|
||||
cr_assert_fail();
|
||||
}
|
||||
|
||||
// Manually generate datapoints
|
||||
|
|
|
@ -106,6 +106,9 @@ Theory((char c, bool b, short s, int i, long l, long long ll, float f, double d,
|
|||
cr_assert_str_eq(str, "test");
|
||||
cr_assert_str_eq(cstr, "other test");
|
||||
cr_assert_eq(obj->foo, 42);
|
||||
|
||||
// abort to see the formatted string of all parameters
|
||||
cr_assert_fail();
|
||||
}
|
||||
|
||||
// Manually generate datapoints
|
||||
|
|
Loading…
Add table
Reference in a new issue