2020-02-02 15:04:19 +01:00
# # A test name that starts with a #
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'yay'
2020-02-02 15:04:19 +01:00
# #1005: Comparing pointer to int and long (NULL can be either on various systems)
2020-02-03 20:29:36 +01:00
ok {test-number} - fptr == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# #1005: Comparing pointer to int and long (NULL can be either on various systems)
2020-02-03 20:29:36 +01:00
ok {test-number} - fptr == 0l for: 0 == 0
2020-02-02 15:04:19 +01:00
# #1027: Bitfields can be captured
2020-02-03 20:29:36 +01:00
ok {test-number} - y.v == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# #1027: Bitfields can be captured
2020-02-03 20:29:36 +01:00
ok {test-number} - 0 == y.v for: 0 == 0
2020-02-02 15:04:19 +01:00
# #1147
2020-02-03 20:29:36 +01:00
ok {test-number} - t1 == t2 for: {?} == {?}
2020-02-02 15:04:19 +01:00
# #1147
2020-02-03 20:29:36 +01:00
ok {test-number} - t1 != t2 for: {?} != {?}
2020-02-02 15:04:19 +01:00
# #1147
2020-02-03 20:29:36 +01:00
ok {test-number} - t1 < t2 for: {?} < {?}
2020-02-02 15:04:19 +01:00
# #1147
2020-02-03 20:29:36 +01:00
ok {test-number} - t1 > t2 for: {?} > {?}
2020-02-02 15:04:19 +01:00
# #1147
2020-02-03 20:29:36 +01:00
ok {test-number} - t1 <= t2 for: {?} <= {?}
2020-02-02 15:04:19 +01:00
# #1147
2020-02-03 20:29:36 +01:00
ok {test-number} - t1 >= t2 for: {?} >= {?}
2020-02-02 15:04:19 +01:00
# #1175 - Hidden Test
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# #1238
2020-02-03 20:29:36 +01:00
ok {test-number} - std::memcmp(uarr, "123", sizeof(uarr)) == 0 for: 0 == 0 with 2 messages: 'uarr := "123"' and 'sarr := "456"'
2020-02-02 15:04:19 +01:00
# #1238
2020-02-03 20:29:36 +01:00
ok {test-number} - std::memcmp(sarr, "456", sizeof(sarr)) == 0 for: 0 == 0 with 2 messages: 'uarr := "123"' and 'sarr := "456"'
2020-02-02 15:04:19 +01:00
# #1245
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# #1319: Sections can have description (even if it is not saved
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# #1403
2020-02-03 20:29:36 +01:00
ok {test-number} - h1 == h2 for: [1403 helper] == [1403 helper]
2020-02-02 15:04:19 +01:00
# #1455 - INFO and WARN can start with a linebreak
2020-02-13 14:22:18 +01:00
warning {test-number} - '
2020-02-02 15:04:19 +01:00
This info message starts with a linebreak' with 1 message: '
This warning message starts with a linebreak'
This would not be caught previously
Nor would this
# #1514: stderr/stdout is not captured in tests aborted by an exception
2020-02-03 20:29:36 +01:00
not ok {test-number} - explicitly with 1 message: '1514'
2020-02-02 15:04:19 +01:00
# #1548
2020-02-03 20:29:36 +01:00
ok {test-number} - std::is_same<TypeList<int>, TypeList<int>>::value for: true
2020-04-12 18:44:42 +02:00
# #1905 -- test spec parser properly clears internal state between compound tests
ok {test-number} - spec.matches(*fakeTestCase("spec . char")) for: true
# #1905 -- test spec parser properly clears internal state between compound tests
ok {test-number} - spec.matches(*fakeTestCase("spec , char")) for: true
# #1905 -- test spec parser properly clears internal state between compound tests
ok {test-number} - !(spec.matches(*fakeTestCase(R"(spec \, char)"))) for: !false
2020-04-17 21:16:18 +02:00
# #1912 -- test spec parser handles escaping
ok {test-number} - spec.matches(*fakeTestCase(R"(spec {a} char)")) for: true
# #1912 -- test spec parser handles escaping
ok {test-number} - spec.matches(*fakeTestCase(R"(spec [a] char)")) for: true
# #1912 -- test spec parser handles escaping
ok {test-number} - !(spec.matches(*fakeTestCase("differs but has similar tag", "[a]"))) for: !false
# #1912 -- test spec parser handles escaping
ok {test-number} - spec.matches(*fakeTestCase(R"(spec \ char)")) for: true
2020-06-01 19:04:23 +02:00
# #1913 - GENERATE inside a for loop should not keep recreating the generator
ok {test-number} - counter < 7 for: 3 < 7
# #1913 - GENERATE inside a for loop should not keep recreating the generator
ok {test-number} - counter < 7 for: 6 < 7
# #1913 - GENERATEs can share a line
ok {test-number} - i != j for: 1 != 3
# #1913 - GENERATEs can share a line
ok {test-number} - i != j for: 1 != 4
# #1913 - GENERATEs can share a line
ok {test-number} - i != j for: 2 != 3
# #1913 - GENERATEs can share a line
ok {test-number} - i != j for: 2 != 4
2020-06-13 15:41:25 +02:00
# #1954 - 7 arg template test case sig compiles - 1, 1, 1, 1, 1, 0, 0
ok {test-number} -
# #1954 - 7 arg template test case sig compiles - 5, 1, 1, 1, 1, 0, 0
ok {test-number} -
# #1954 - 7 arg template test case sig compiles - 5, 3, 1, 1, 1, 0, 0
ok {test-number} -
2020-02-02 15:04:19 +01:00
# #748 - captures with unexpected exceptions
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'answer := 42' with 1 message: 'expected exception'
2020-02-02 15:04:19 +01:00
# #748 - captures with unexpected exceptions
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'answer := 42'; expression was: thisThrows() with 1 message: 'expected exception'
2020-02-02 15:04:19 +01:00
# #748 - captures with unexpected exceptions
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows() with 1 message: 'answer := 42'
2020-02-02 15:04:19 +01:00
# #809
2020-02-03 20:29:36 +01:00
ok {test-number} - 42 == f for: 42 == {?}
2020-02-02 15:04:19 +01:00
# #833
2020-02-03 20:29:36 +01:00
ok {test-number} - a == t for: 3 == 3
2020-02-02 15:04:19 +01:00
# #833
2020-02-03 20:29:36 +01:00
ok {test-number} - a == t for: 3 == 3
2020-02-02 15:04:19 +01:00
# #833
2020-02-03 20:29:36 +01:00
ok {test-number} - throws_int(true)
2020-02-02 15:04:19 +01:00
# #833
2020-02-03 20:29:36 +01:00
ok {test-number} - throws_int(true), int
2020-02-02 15:04:19 +01:00
# #833
2020-02-03 20:29:36 +01:00
ok {test-number} - throws_int(false)
2020-02-02 15:04:19 +01:00
# #833
2020-02-18 23:31:16 +01:00
ok {test-number} - "aaa", Catch::Matchers::EndsWith("aaa") for: "aaa" ends with: "aaa"
2020-02-02 15:04:19 +01:00
# #833
2020-02-03 20:29:36 +01:00
ok {test-number} - templated_tests<int>(3) for: true
2020-02-02 15:04:19 +01:00
# #835 -- errno should not be touched by Catch
2020-02-03 20:29:36 +01:00
not ok {test-number} - f() == 0 for: 1 == 0
2020-02-02 15:04:19 +01:00
# #835 -- errno should not be touched by Catch
2020-02-03 20:29:36 +01:00
ok {test-number} - errno == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# #872
2020-02-03 20:29:36 +01:00
ok {test-number} - x == 4 for: {?} == 4 with 1 message: 'dummy := 0'
2020-02-02 15:04:19 +01:00
# #961 -- Dynamically created sections should all be reported
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'Everything is OK'
2020-02-02 15:04:19 +01:00
# #961 -- Dynamically created sections should all be reported
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'Everything is OK'
2020-02-02 15:04:19 +01:00
# #961 -- Dynamically created sections should all be reported
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'Everything is OK'
2020-02-02 15:04:19 +01:00
# #961 -- Dynamically created sections should all be reported
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'Everything is OK'
2020-02-02 15:04:19 +01:00
# #961 -- Dynamically created sections should all be reported
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'Everything is OK'
2020-02-02 15:04:19 +01:00
# 'Not' checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - false != false
2020-02-02 15:04:19 +01:00
# 'Not' checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - true != true
2020-02-02 15:04:19 +01:00
# 'Not' checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - !true for: false
2020-02-02 15:04:19 +01:00
# 'Not' checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - !(true) for: !true
2020-02-02 15:04:19 +01:00
# 'Not' checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - !trueValue for: false
2020-02-02 15:04:19 +01:00
# 'Not' checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - !(trueValue) for: !true
2020-02-02 15:04:19 +01:00
# 'Not' checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - !(1 == 1) for: false
2020-02-02 15:04:19 +01:00
# 'Not' checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - !(1 == 1)
2020-02-02 15:04:19 +01:00
# 'Not' checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - false == false
2020-02-02 15:04:19 +01:00
# 'Not' checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - true == true
2020-02-02 15:04:19 +01:00
# 'Not' checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - !false for: true
2020-02-02 15:04:19 +01:00
# 'Not' checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - !(false) for: !false
2020-02-02 15:04:19 +01:00
# 'Not' checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - !falseValue for: true
2020-02-02 15:04:19 +01:00
# 'Not' checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - !(falseValue) for: !false
2020-02-02 15:04:19 +01:00
# 'Not' checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - !(1 == 2) for: true
2020-02-02 15:04:19 +01:00
# 'Not' checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - !(1 == 2)
2020-02-02 15:04:19 +01:00
# (unimplemented) static bools can be evaluated
2020-02-03 20:29:36 +01:00
ok {test-number} - is_true<true>::value == true for: true == true
2020-02-02 15:04:19 +01:00
# (unimplemented) static bools can be evaluated
2020-02-03 20:29:36 +01:00
ok {test-number} - true == is_true<true>::value for: true == true
2020-02-02 15:04:19 +01:00
# (unimplemented) static bools can be evaluated
2020-02-03 20:29:36 +01:00
ok {test-number} - is_true<false>::value == false for: false == false
2020-02-02 15:04:19 +01:00
# (unimplemented) static bools can be evaluated
2020-02-03 20:29:36 +01:00
ok {test-number} - false == is_true<false>::value for: false == false
2020-02-02 15:04:19 +01:00
# (unimplemented) static bools can be evaluated
2020-02-03 20:29:36 +01:00
ok {test-number} - !is_true<false>::value for: true
2020-02-02 15:04:19 +01:00
# (unimplemented) static bools can be evaluated
2020-02-03 20:29:36 +01:00
ok {test-number} - !!is_true<true>::value for: true
2020-02-02 15:04:19 +01:00
# (unimplemented) static bools can be evaluated
2020-02-03 20:29:36 +01:00
ok {test-number} - is_true<true>::value for: true
2020-02-02 15:04:19 +01:00
# (unimplemented) static bools can be evaluated
2020-02-03 20:29:36 +01:00
ok {test-number} - !(is_true<false>::value) for: !false
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 1 < 4
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 4 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 1 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 1 < 4
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 4 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 1 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 1 < 4
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 4 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 1 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 1 < 5
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 5 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 1 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 1 < 5
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 5 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 1 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 1 < 5
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 5 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 1 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 1 < 6
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 6 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 1 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 1 < 6
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 6 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 1 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 1 < 6
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 6 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 1 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 2 < 4
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 4 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 2 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 2 < 4
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 4 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 2 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 2 < 4
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 4 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 2 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 2 < 5
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 5 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 2 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 2 < 5
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 5 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 2 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 2 < 5
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 5 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 2 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 2 < 6
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 6 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 2 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 2 < 6
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 6 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 2 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 2 < 6
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 6 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 2 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 3 < 4
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 4 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 3 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 3 < 4
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 4 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 3 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 3 < 4
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 4 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 3 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 3 < 5
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 5 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 3 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 3 < 5
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 5 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 3 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 3 < 5
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 5 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 3 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 3 < 6
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 6 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 3 < 7
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 3 < 6
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 6 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 3 < 8
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < y for: 3 < 6
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - y < z for: 6 < 9
2020-02-02 15:04:19 +01:00
# 3x3x3 ints
2020-02-03 20:29:36 +01:00
ok {test-number} - x < z for: 3 < 9
2020-02-02 15:04:19 +01:00
# A METHOD_AS_TEST_CASE based test run that fails
2020-02-03 20:29:36 +01:00
not ok {test-number} - s == "world" for: "hello" == "world"
2020-02-02 15:04:19 +01:00
# A METHOD_AS_TEST_CASE based test run that succeeds
2020-02-03 20:29:36 +01:00
ok {test-number} - s == "hello" for: "hello" == "hello"
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo<float>
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - Template_Foo<int>
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector<float>
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that fails - std::vector<int>
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 1 for: 0 == 1
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo<float>
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - Template_Foo<int>
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector<float>
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD based test run that succeeds - std::vector<int>
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture_2<TestType>::m_a.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2<float, 6>
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 6 < 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - Template_Foo_2<int, 2>
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 2 < 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array<float, 6>
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 6 < 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that fails - std::array<int, 2>
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() < 2 for: 2 < 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - Template_Foo_2<float,6>
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 6 >= 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - Template_Foo_2<int,2>
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 2 >= 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::array<float,6>
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 6 >= 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_PRODUCT_TEST_CASE_METHOD_SIG based test run that succeeds - std::array<int,2>
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture_2<TestType>{}.m_a.size() >= 2 for: 2 >= 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD based test run that fails - double
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture<TestType>::m_a == 2 for: 1.0 == 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD based test run that fails - float
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture<TestType>::m_a == 2 for: 1.0f == 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD based test run that fails - int
2020-02-03 20:29:36 +01:00
not ok {test-number} - Template_Fixture<TestType>::m_a == 2 for: 1 == 2
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - double
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1.0 == 1
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - float
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1.0f == 1
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD based test run that succeeds - int
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 1
2020-02-03 20:29:36 +01:00
not ok {test-number} - Nttp_Fixture<V>::value == 0 for: 1 == 0
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 3
2020-02-03 20:29:36 +01:00
not ok {test-number} - Nttp_Fixture<V>::value == 0 for: 3 == 0
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD_SIG based test run that fails - 6
2020-02-03 20:29:36 +01:00
not ok {test-number} - Nttp_Fixture<V>::value == 0 for: 6 == 0
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 1
2020-02-03 20:29:36 +01:00
ok {test-number} - Nttp_Fixture<V>::value > 0 for: 1 > 0
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 3
2020-02-03 20:29:36 +01:00
ok {test-number} - Nttp_Fixture<V>::value > 0 for: 3 > 0
2020-02-02 15:04:19 +01:00
# A TEMPLATE_TEST_CASE_METHOD_SIG based test run that succeeds - 6
2020-02-03 20:29:36 +01:00
ok {test-number} - Nttp_Fixture<V>::value > 0 for: 6 > 0
2020-02-02 15:04:19 +01:00
# A TEST_CASE_METHOD based test run that fails
2020-02-03 20:29:36 +01:00
not ok {test-number} - m_a == 2 for: 1 == 2
2020-02-02 15:04:19 +01:00
# A TEST_CASE_METHOD based test run that succeeds
2020-02-03 20:29:36 +01:00
ok {test-number} - m_a == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# A Template product test case - Foo<float>
2020-02-03 20:29:36 +01:00
ok {test-number} - x.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# A Template product test case - Foo<int>
2020-02-03 20:29:36 +01:00
ok {test-number} - x.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# A Template product test case - std::vector<float>
2020-02-03 20:29:36 +01:00
ok {test-number} - x.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# A Template product test case - std::vector<int>
2020-02-03 20:29:36 +01:00
ok {test-number} - x.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# A Template product test case with array signature - Bar<float, 42>
2020-02-03 20:29:36 +01:00
ok {test-number} - x.size() > 0 for: 42 > 0
2020-02-02 15:04:19 +01:00
# A Template product test case with array signature - Bar<int, 9>
2020-02-03 20:29:36 +01:00
ok {test-number} - x.size() > 0 for: 9 > 0
2020-02-02 15:04:19 +01:00
# A Template product test case with array signature - std::array<float, 42>
2020-02-03 20:29:36 +01:00
ok {test-number} - x.size() > 0 for: 42 > 0
2020-02-02 15:04:19 +01:00
# A Template product test case with array signature - std::array<int, 9>
2020-02-03 20:29:36 +01:00
ok {test-number} - x.size() > 0 for: 9 > 0
2020-02-02 15:04:19 +01:00
# A comparison that uses literals instead of the normal constructor
2020-02-03 20:29:36 +01:00
ok {test-number} - d == 1.23_a for: 1.23 == Approx( 1.23 )
2020-02-02 15:04:19 +01:00
# A comparison that uses literals instead of the normal constructor
2020-02-03 20:29:36 +01:00
ok {test-number} - d != 1.22_a for: 1.23 != Approx( 1.22 )
2020-02-02 15:04:19 +01:00
# A comparison that uses literals instead of the normal constructor
2020-02-03 20:29:36 +01:00
ok {test-number} - -d == -1.23_a for: -1.23 == Approx( -1.23 )
2020-02-02 15:04:19 +01:00
# A comparison that uses literals instead of the normal constructor
2020-02-03 20:29:36 +01:00
ok {test-number} - d == 1.2_a .epsilon(.1) for: 1.23 == Approx( 1.2 )
2020-02-02 15:04:19 +01:00
# A comparison that uses literals instead of the normal constructor
2020-02-03 20:29:36 +01:00
ok {test-number} - d != 1.2_a .epsilon(.001) for: 1.23 != Approx( 1.2 )
2020-02-02 15:04:19 +01:00
# A comparison that uses literals instead of the normal constructor
2020-02-03 20:29:36 +01:00
ok {test-number} - d == 1_a .epsilon(.3) for: 1.23 == Approx( 1.0 )
2020-02-02 15:04:19 +01:00
# A couple of nested sections followed by a failure
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'that's not flying - that's failing in style'
2020-02-02 15:04:19 +01:00
# A couple of nested sections followed by a failure
2020-02-03 20:29:36 +01:00
not ok {test-number} - explicitly with 1 message: 'to infinity and beyond'
2020-02-02 15:04:19 +01:00
# A failing expression with a non streamable type is still captured
2020-02-03 20:29:36 +01:00
not ok {test-number} - &o1 == &o2 for: 0x<hex digits> == 0x<hex digits>
2020-02-02 15:04:19 +01:00
# A failing expression with a non streamable type is still captured
2020-02-03 20:29:36 +01:00
not ok {test-number} - o1 == o2 for: {?} == {?}
2020-02-02 15:04:19 +01:00
# Absolute margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 104.0 != Approx(100.0) for: 104.0 != Approx( 100.0 )
2020-02-02 15:04:19 +01:00
# Absolute margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 104.0 == Approx(100.0).margin(5) for: 104.0 == Approx( 100.0 )
2020-02-02 15:04:19 +01:00
# Absolute margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 104.0 == Approx(100.0).margin(4) for: 104.0 == Approx( 100.0 )
2020-02-02 15:04:19 +01:00
# Absolute margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 104.0 != Approx(100.0).margin(3) for: 104.0 != Approx( 100.0 )
2020-02-02 15:04:19 +01:00
# Absolute margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 100.3 != Approx(100.0) for: 100.3 != Approx( 100.0 )
2020-02-02 15:04:19 +01:00
# Absolute margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 100.3 == Approx(100.0).margin(0.5) for: 100.3 == Approx( 100.0 )
2020-02-02 15:04:19 +01:00
# An expression with side-effects should only be evaluated once
2020-02-03 20:29:36 +01:00
ok {test-number} - i++ == 7 for: 7 == 7
2020-02-02 15:04:19 +01:00
# An expression with side-effects should only be evaluated once
2020-02-03 20:29:36 +01:00
ok {test-number} - i++ == 8 for: 8 == 8
2020-02-02 15:04:19 +01:00
# An unchecked exception reports the line of the last assertion
2020-02-03 20:29:36 +01:00
ok {test-number} - 1 == 1
2020-02-02 15:04:19 +01:00
# An unchecked exception reports the line of the last assertion
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'unexpected exception'; expression was: {Unknown expression after the reported line}
2020-02-02 15:04:19 +01:00
# Anonymous test case 1
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'anonymous test case'
2020-02-02 15:04:19 +01:00
# Approx setters validate their arguments
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(0).margin(0)
2020-02-02 15:04:19 +01:00
# Approx setters validate their arguments
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(0).margin(1234656)
2020-02-02 15:04:19 +01:00
# Approx setters validate their arguments
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(0).margin(-2), std::domain_error
2020-02-02 15:04:19 +01:00
# Approx setters validate their arguments
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(0).epsilon(0)
2020-02-02 15:04:19 +01:00
# Approx setters validate their arguments
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(0).epsilon(1)
2020-02-02 15:04:19 +01:00
# Approx setters validate their arguments
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(0).epsilon(-0.001), std::domain_error
2020-02-02 15:04:19 +01:00
# Approx setters validate their arguments
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(0).epsilon(1.0001), std::domain_error
2020-02-02 15:04:19 +01:00
# Approx with exactly-representable margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.25f == Approx(0.0f).margin(0.25f) for: 0.25f == Approx( 0.0 )
2020-02-02 15:04:19 +01:00
# Approx with exactly-representable margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.0f == Approx(0.25f).margin(0.25f) for: 0.0f == Approx( 0.25 )
2020-02-02 15:04:19 +01:00
# Approx with exactly-representable margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.5f == Approx(0.25f).margin(0.25f) for: 0.5f == Approx( 0.25 )
2020-02-02 15:04:19 +01:00
# Approx with exactly-representable margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 245.0f == Approx(245.25f).margin(0.25f) for: 245.0f == Approx( 245.25 )
2020-02-02 15:04:19 +01:00
# Approx with exactly-representable margin
2020-02-03 20:29:36 +01:00
ok {test-number} - 245.5f == Approx(245.25f).margin(0.25f) for: 245.5f == Approx( 245.25 )
2020-02-02 15:04:19 +01:00
# Approximate PI
2020-02-03 20:29:36 +01:00
ok {test-number} - divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) for: 3.1428571429 == Approx( 3.141 )
2020-02-02 15:04:19 +01:00
# Approximate PI
2020-02-03 20:29:36 +01:00
ok {test-number} - divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) for: 3.1428571429 != Approx( 3.141 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - d != Approx( 1.231 ) for: 1.23 != Approx( 1.231 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - d == Approx( 1.231 ).epsilon( 0.1 ) for: 1.23 == Approx( 1.231 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with floats
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.23f == Approx( 1.23f ) for: 1.23f == Approx( 1.2300000191 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with floats
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.0f == Approx( 0.0f ) for: 0.0f == Approx( 0.0 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with ints
2020-02-03 20:29:36 +01:00
ok {test-number} - 1 == Approx( 1 ) for: 1 == Approx( 1.0 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with ints
2020-02-03 20:29:36 +01:00
ok {test-number} - 0 == Approx( 0 ) for: 0 == Approx( 0.0 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with mixed numeric types
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.0f == Approx( 1 ) for: 1.0f == Approx( 1.0 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with mixed numeric types
2020-02-03 20:29:36 +01:00
ok {test-number} - 0 == Approx( dZero) for: 0 == Approx( 0.0 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with mixed numeric types
2020-02-03 20:29:36 +01:00
ok {test-number} - 0 == Approx( dSmall ).margin( 0.001 ) for: 0 == Approx( 0.00001 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with mixed numeric types
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.234f == Approx( dMedium ) for: 1.234f == Approx( 1.234 )
2020-02-02 15:04:19 +01:00
# Approximate comparisons with mixed numeric types
2020-02-03 20:29:36 +01:00
ok {test-number} - dMedium == Approx( 1.234f ) for: 1.234 == Approx( 1.2339999676 )
2020-02-02 15:04:19 +01:00
# Arbitrary predicate matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - 1, Predicate<int>(alwaysTrue, "always true") for: 1 matches predicate: "always true"
2020-02-02 15:04:19 +01:00
# Arbitrary predicate matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - 1, !Predicate<int>(alwaysFalse, "always false") for: 1 not matches predicate: "always false"
2020-02-02 15:04:19 +01:00
# Arbitrary predicate matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - "Hello olleH", Predicate<std::string>( [] (std::string const& str) -> bool { return str.front() == str.back(); }, "First and last character should be equal") for: "Hello olleH" matches predicate: "First and last character should be equal"
2020-02-02 15:04:19 +01:00
# Arbitrary predicate matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - "This wouldn't pass", !Predicate<std::string>( [] (std::string const& str) -> bool { return str.front() == str.back(); } ) for: "This wouldn't pass" not matches undescribed predicate
2020-04-21 11:00:08 +02:00
# Assertion macros support bit operators and bool conversions
ok {test-number} - lhs | rhs for: Val: 1 | Val: 2
# Assertion macros support bit operators and bool conversions
ok {test-number} - !(lhs & rhs) for: !(Val: 1 & Val: 2)
# Assertion macros support bit operators and bool conversions
ok {test-number} - HasBitOperators{ 1 } & HasBitOperators{ 1 } for: Val: 1 & Val: 1
2020-04-21 19:27:12 +02:00
# Assertion macros support bit operators and bool conversions
ok {test-number} - lhs ^ rhs for: Val: 1 ^ Val: 2
# Assertion macros support bit operators and bool conversions
ok {test-number} - !(lhs ^ lhs) for: !(Val: 1 ^ Val: 1)
2020-02-02 15:04:19 +01:00
# Assertions then sections
2020-02-03 20:29:36 +01:00
ok {test-number} - true
2020-02-02 15:04:19 +01:00
# Assertions then sections
2020-02-03 20:29:36 +01:00
ok {test-number} - true
2020-02-02 15:04:19 +01:00
# Assertions then sections
2020-02-03 20:29:36 +01:00
ok {test-number} - true
2020-02-02 15:04:19 +01:00
# Assertions then sections
2020-02-03 20:29:36 +01:00
ok {test-number} - true
2020-02-02 15:04:19 +01:00
# Assertions then sections
2020-02-03 20:29:36 +01:00
ok {test-number} - true
2020-02-02 15:04:19 +01:00
# Assertions then sections
2020-02-03 20:29:36 +01:00
ok {test-number} - true
2020-03-02 14:25:43 +01:00
# Basic use of the Contains range matcher
ok {test-number} - a, Contains(1) for: { 1, 2, 3 } contains element 1
# Basic use of the Contains range matcher
ok {test-number} - b, Contains(1) for: { 0, 1, 2 } contains element 1
# Basic use of the Contains range matcher
ok {test-number} - c, !Contains(1) for: { 4, 5, 6 } not contains element 1
# Basic use of the Contains range matcher
ok {test-number} - a, Contains(0, close_enough) for: { 1, 2, 3 } contains element 0
# Basic use of the Contains range matcher
ok {test-number} - b, Contains(0, close_enough) for: { 0, 1, 2 } contains element 0
# Basic use of the Contains range matcher
ok {test-number} - c, !Contains(0, close_enough) for: { 4, 5, 6 } not contains element 0
# Basic use of the Contains range matcher
ok {test-number} - a, Contains(4, [](auto&& lhs, size_t sz) { return lhs.size() == sz; }) for: { "abc", "abcd", "abcde" } contains element 4
# Basic use of the Contains range matcher
ok {test-number} - in, Contains(1) for: { 1, 2, 3, 4, 5 } contains element 1
# Basic use of the Contains range matcher
ok {test-number} - in, !Contains(8) for: { 1, 2, 3, 4, 5 } not contains element 8
# Basic use of the Contains range matcher
ok {test-number} - in, Contains(MoveOnlyTestElement{ 2 }) for: { 1, 2, 3 } contains element 2
# Basic use of the Contains range matcher
ok {test-number} - in, !Contains(MoveOnlyTestElement{ 9 }) for: { 1, 2, 3 } not contains element 9
# Basic use of the Contains range matcher
ok {test-number} - in, Contains(Catch::Matchers::WithinAbs(0.5, 0.5)) for: { 1.0, 2.0, 3.0, 0.0 } contains element matching is within 0.5 of 0.5
2020-03-09 11:13:07 +01:00
# Basic use of the Empty range matcher
ok {test-number} - empty_array, IsEmpty() for: { } is empty
# Basic use of the Empty range matcher
ok {test-number} - non_empty_array, !IsEmpty() for: { 0.0 } not is empty
# Basic use of the Empty range matcher
ok {test-number} - empty_vec, IsEmpty() for: { } is empty
# Basic use of the Empty range matcher
ok {test-number} - non_empty_vec, !IsEmpty() for: { 'a', 'b', 'c' } not is empty
# Basic use of the Empty range matcher
ok {test-number} - inner_lists_are_empty, !IsEmpty() for: { { } } not is empty
# Basic use of the Empty range matcher
ok {test-number} - inner_lists_are_empty.front(), IsEmpty() for: { } is empty
# Basic use of the Empty range matcher
ok {test-number} - has_empty{}, !IsEmpty() for: {?} not is empty
# Basic use of the Empty range matcher
ok {test-number} - unrelated::ADL_empty{}, IsEmpty() for: {?} is empty
2020-02-02 15:04:19 +01:00
# CAPTURE can deal with complex expressions
2020-02-03 20:29:36 +01:00
ok {test-number} - with 7 messages: 'a := 1' and 'b := 2' and 'c := 3' and 'a + b := 3' and 'a+b := 3' and 'c > b := true' and 'a == 1 := true'
2020-02-02 15:04:19 +01:00
# CAPTURE can deal with complex expressions involving commas
2020-02-03 20:29:36 +01:00
ok {test-number} - with 7 messages: 'std::vector<int>{1, 2, 3}[0, 1, 2] := 3' and 'std::vector<int>{1, 2, 3}[(0, 1)] := 2' and 'std::vector<int>{1, 2, 3}[0] := 1' and '(helper_1436<int, int>{12, -12}) := { 12, -12 }' and '(helper_1436<int, int>(-12, 12)) := { -12, 12 }' and '(1, 2) := 2' and '(2, 3) := 3'
2020-02-02 15:04:19 +01:00
# CAPTURE parses string and character constants
2020-02-03 20:29:36 +01:00
ok {test-number} - with 11 messages: '("comma, in string", "escaped, \", ") := "escaped, ", "' and '"single quote in string,'," := "single quote in string,',"' and '"some escapes, \\,\\\\" := "some escapes, \,\\"' and '"some, ), unmatched, } prenheses {[<" := "some, ), unmatched, } prenheses {[<"' and ''"' := '"'' and ''\'' := '''' and '',' := ','' and ''}' := '}'' and '')' := ')'' and ''(' := '('' and ''{' := '{''
2020-02-02 15:04:19 +01:00
# Capture and info messages
2020-02-03 20:29:36 +01:00
ok {test-number} - true with 1 message: 'i := 2'
2020-02-02 15:04:19 +01:00
# Capture and info messages
2020-02-03 20:29:36 +01:00
ok {test-number} - true with 1 message: '3'
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - tab == '\t' for: '\t' == '\t'
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - newline == '\n' for: '\n' == '\n'
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - carr_return == '\r' for: '\r' == '\r'
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - form_feed == '\f' for: '\f' == '\f'
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - space == ' ' for: ' ' == ' '
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - c == chars[i] for: 'a' == 'a'
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - c == chars[i] for: 'z' == 'z'
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - c == chars[i] for: 'A' == 'A'
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - c == chars[i] for: 'Z' == 'Z'
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - null_terminator == '\0' for: 0 == 0
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - c == i for: 2 == 2
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - c == i for: 3 == 3
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - c == i for: 4 == 4
2020-02-02 15:04:19 +01:00
# Character pretty printing
2020-02-03 20:29:36 +01:00
ok {test-number} - c == i for: 5 == 5
2020-02-16 11:19:10 +01:00
# Combining MatchAllOfGeneric does not nest
2020-03-28 22:01:17 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype((MatcherA() && MatcherB()) && MatcherC()), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB, MatcherC> >::value'
2020-02-16 11:19:10 +01:00
# Combining MatchAllOfGeneric does not nest
2020-03-28 22:01:17 +01:00
ok {test-number} - 1, (MatcherA() && MatcherB()) && MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 )
2020-02-16 11:19:10 +01:00
# Combining MatchAllOfGeneric does not nest
2020-03-28 22:01:17 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() && (MatcherB() && MatcherC())), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB, MatcherC> >::value'
2020-02-16 11:19:10 +01:00
# Combining MatchAllOfGeneric does not nest
2020-03-28 22:01:17 +01:00
ok {test-number} - 1, MatcherA() && (MatcherB() && MatcherC()) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 )
# Combining MatchAllOfGeneric does not nest
ok {test-number} - with 1 message: 'std::is_same< decltype((MatcherA() && MatcherB()) && (MatcherC() && MatcherD())), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD> >::value'
# Combining MatchAllOfGeneric does not nest
ok {test-number} - 1, (MatcherA() && MatcherB()) && (MatcherC() && MatcherD()) for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 and equals: (T) 1 and equals: true )
# Combining MatchAnyOfGeneric does not nest
ok {test-number} - with 1 message: 'std::is_same< decltype((MatcherA() || MatcherB()) || MatcherC()), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC> >::value'
# Combining MatchAnyOfGeneric does not nest
ok {test-number} - 1, (MatcherA() || MatcherB()) || MatcherC() for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 )
2020-02-16 11:19:10 +01:00
# Combining MatchAnyOfGeneric does not nest
2020-03-28 22:01:17 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() || (MatcherB() || MatcherC())), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC> >::value'
2020-02-16 11:19:10 +01:00
# Combining MatchAnyOfGeneric does not nest
2020-03-28 22:01:17 +01:00
ok {test-number} - 1, MatcherA() || (MatcherB() || MatcherC()) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 )
2020-02-16 11:19:10 +01:00
# Combining MatchAnyOfGeneric does not nest
2020-03-28 22:01:17 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype((MatcherA() || MatcherB()) || (MatcherC() || MatcherD())), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB, MatcherC, MatcherD> >::value'
2020-02-16 11:19:10 +01:00
# Combining MatchAnyOfGeneric does not nest
2020-03-28 22:01:17 +01:00
ok {test-number} - 1, (MatcherA() || MatcherB()) || (MatcherC() || MatcherD()) for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 or equals: (T) 1 or equals: true )
2020-02-16 11:19:10 +01:00
# Combining MatchNotOfGeneric does not nest
2020-02-18 23:31:16 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype(!MatcherA()), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA> >::value'
2020-02-16 11:19:10 +01:00
# Combining MatchNotOfGeneric does not nest
ok {test-number} - 0, !MatcherA() for: 0 not equals: (int) 1 or (float) 1.0f
# Combining MatchNotOfGeneric does not nest
ok {test-number} - with 1 message: 'std::is_same< decltype(!!MatcherA()), MatcherA const& >::value'
# Combining MatchNotOfGeneric does not nest
ok {test-number} - 1, !!MatcherA() for: 1 equals: (int) 1 or (float) 1.0f
# Combining MatchNotOfGeneric does not nest
2020-02-18 23:31:16 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype(!!!MatcherA()), Catch::Matchers::Detail::MatchNotOfGeneric<MatcherA> >::value'
2020-02-16 11:19:10 +01:00
# Combining MatchNotOfGeneric does not nest
ok {test-number} - 0, !!!MatcherA() for: 0 not equals: (int) 1 or (float) 1.0f
# Combining MatchNotOfGeneric does not nest
ok {test-number} - with 1 message: 'std::is_same< decltype(!!!!MatcherA()), MatcherA const & >::value'
# Combining MatchNotOfGeneric does not nest
ok {test-number} - 1, !!!!MatcherA() for: 1 equals: (int) 1 or (float) 1.0f
# Combining concrete matchers does not use templated matchers
2020-02-18 23:31:16 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype(StartsWith("foo") || (StartsWith("bar") && EndsWith("bar") && !EndsWith("foo"))), Catch::Matchers::Detail::MatchAnyOf<std::string> >::value'
2020-02-16 11:19:10 +01:00
# Combining only templated matchers
2020-02-18 23:31:16 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() || MatcherB()), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, MatcherB> >::value'
2020-02-16 11:19:10 +01:00
# Combining only templated matchers
ok {test-number} - 1, MatcherA() || MatcherB() for: 1 ( equals: (int) 1 or (float) 1.0f or equals: (long long) 1 )
# Combining only templated matchers
2020-02-18 23:31:16 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() && MatcherB()), Catch::Matchers::Detail::MatchAllOfGeneric<MatcherA, MatcherB> >::value'
2020-02-16 11:19:10 +01:00
# Combining only templated matchers
ok {test-number} - 1, MatcherA() && MatcherB() for: 1 ( equals: (int) 1 or (float) 1.0f and equals: (long long) 1 )
# Combining only templated matchers
2020-02-18 23:31:16 +01:00
ok {test-number} - with 1 message: 'std::is_same< decltype(MatcherA() || !MatcherB()), Catch::Matchers::Detail::MatchAnyOfGeneric<MatcherA, Catch::Matchers::Detail::MatchNotOfGeneric<MatcherB>> >::value'
2020-02-16 11:19:10 +01:00
# Combining only templated matchers
ok {test-number} - 1, MatcherA() || !MatcherB() for: 1 ( equals: (int) 1 or (float) 1.0f or not equals: (long long) 1 )
# Combining templated and concrete matchers
ok {test-number} - vec, Predicate<std::vector<int>>([](auto const& vec) { return std::all_of(vec.begin(), vec.end(), [](int elem) { return elem % 2 == 1; }); }, "All elements are odd") && !EqualsRange(a) for: { 1, 3, 5 } ( matches predicate: "All elements are odd" and not Equals: { 5, 3, 1 } )
# Combining templated and concrete matchers
ok {test-number} - str, StartsWith("foo") && EqualsRange(arr) && EndsWith("bar") for: "foobar" ( starts with: "foo" and Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and ends with: "bar" )
# Combining templated and concrete matchers
ok {test-number} - str, StartsWith("foo") && !EqualsRange(bad_arr) && EndsWith("bar") for: "foobar" ( starts with: "foo" and not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and ends with: "bar" )
# Combining templated and concrete matchers
ok {test-number} - str, EqualsRange(arr) && StartsWith("foo") && EndsWith("bar") for: "foobar" ( Equals: { 'f', 'o', 'o', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" )
# Combining templated and concrete matchers
ok {test-number} - str, !EqualsRange(bad_arr) && StartsWith("foo") && EndsWith("bar") for: "foobar" ( not Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } and starts with: "foo" and ends with: "bar" )
# Combining templated and concrete matchers
ok {test-number} - str, EqualsRange(bad_arr) || (StartsWith("foo") && EndsWith("bar")) for: "foobar" ( Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } or ( starts with: "foo" and ends with: "bar" ) )
# Combining templated and concrete matchers
ok {test-number} - str, (StartsWith("foo") && EndsWith("bar")) || EqualsRange(bad_arr) for: "foobar" ( ( starts with: "foo" and ends with: "bar" ) or Equals: { 'o', 'o', 'f', 'b', 'a', 'r' } )
# Combining templated matchers
ok {test-number} - container, EqualsRange(a) || EqualsRange(b) || EqualsRange(c) for: { 1, 2, 3 } ( Equals: { 1, 2, 3 } or Equals: { 0, 1, 2 } or Equals: { 4, 5, 6 } )
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}}
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}}
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3}
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3}
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - !(std::vector<int>{1, 2} == std::vector<int>{1, 2, 3}) for: !({ 1, 2 } == { 1, 2, 3 })
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - !(std::vector<int>{1, 2} == std::vector<int>{1, 2, 3}) for: !({ 1, 2 } == { 1, 2, 3 })
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - true
2020-02-02 15:04:19 +01:00
# Commas in various macros are allowed
2020-02-03 20:29:36 +01:00
ok {test-number} - std::vector<int>{1, 2} == std::vector<int>{1, 2} for: { 1, 2 } == { 1, 2 }
2020-02-02 15:04:19 +01:00
# Comparing function pointers
2020-02-03 20:29:36 +01:00
ok {test-number} - a for: 0x<hex digits>
2020-02-02 15:04:19 +01:00
# Comparing function pointers
2020-02-03 20:29:36 +01:00
ok {test-number} - a == &foo for: 0x<hex digits> == 0x<hex digits>
2020-02-02 15:04:19 +01:00
# Comparison ops
2020-02-03 20:29:36 +01:00
ok {test-number} - SimplePcg32{} == SimplePcg32{} for: {?} == {?}
2020-02-02 15:04:19 +01:00
# Comparison ops
2020-02-03 20:29:36 +01:00
ok {test-number} - SimplePcg32{ 0 } != SimplePcg32{} for: {?} != {?}
2020-02-02 15:04:19 +01:00
# Comparison ops
2020-02-03 20:29:36 +01:00
ok {test-number} - !(SimplePcg32{ 1 } == SimplePcg32{ 2 }) for: !({?} == {?})
2020-02-02 15:04:19 +01:00
# Comparison ops
2020-02-03 20:29:36 +01:00
ok {test-number} - !(SimplePcg32{ 1 } != SimplePcg32{ 1 }) for: !({?} != {?})
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - td == Approx(10.0) for: StrongDoubleTypedef(10) == Approx( 10.0 )
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(10.0) == td for: Approx( 10.0 ) == StrongDoubleTypedef(10)
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - td != Approx(11.0) for: StrongDoubleTypedef(10) != Approx( 11.0 )
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(11.0) != td for: Approx( 11.0 ) != StrongDoubleTypedef(10)
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - td <= Approx(10.0) for: StrongDoubleTypedef(10) <= Approx( 10.0 )
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - td <= Approx(11.0) for: StrongDoubleTypedef(10) <= Approx( 11.0 )
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(10.0) <= td for: Approx( 10.0 ) <= StrongDoubleTypedef(10)
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(9.0) <= td for: Approx( 9.0 ) <= StrongDoubleTypedef(10)
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - td >= Approx(9.0) for: StrongDoubleTypedef(10) >= Approx( 9.0 )
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - td >= Approx(td) for: StrongDoubleTypedef(10) >= Approx( 10.0 )
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(td) >= td for: Approx( 10.0 ) >= StrongDoubleTypedef(10)
2020-02-02 15:04:19 +01:00
# Comparison with explicitly convertible types
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx(11.0) >= td for: Approx( 11.0 ) >= StrongDoubleTypedef(10)
2020-02-02 15:04:19 +01:00
# Comparisons between ints where one side is computed
2020-02-03 20:29:36 +01:00
ok {test-number} - 54 == 6*9 for: 54 == 54
2020-02-02 15:04:19 +01:00
# Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
2020-02-03 20:29:36 +01:00
ok {test-number} - ( -1 > 2u ) for: true
2020-02-02 15:04:19 +01:00
# Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
2020-02-03 20:29:36 +01:00
ok {test-number} - -1 > 2u for: -1 > 2
2020-02-02 15:04:19 +01:00
# Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
2020-02-03 20:29:36 +01:00
ok {test-number} - ( 2u < -1 ) for: true
2020-02-02 15:04:19 +01:00
# Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
2020-02-03 20:29:36 +01:00
ok {test-number} - 2u < -1 for: 2 < -1
2020-02-02 15:04:19 +01:00
# Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
2020-02-03 20:29:36 +01:00
ok {test-number} - ( minInt > 2u ) for: true
2020-02-02 15:04:19 +01:00
# Comparisons between unsigned ints and negative signed ints match c++ standard behaviour
2020-02-03 20:29:36 +01:00
ok {test-number} - minInt > 2u for: -2147483648 > 2
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - i == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - ui == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - l == 3 for: 3 == 3
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - ul == 4 for: 4 == 4
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - c == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - uc == 6 for: 6 == 6
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - 1 == i for: 1 == 1
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - 2 == ui for: 2 == 2
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - 3 == l for: 3 == 3
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - 4 == ul for: 4 == 4
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - 5 == c for: 5 == 5
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - 6 == uc for: 6 == 6
2020-02-02 15:04:19 +01:00
# Comparisons with int literals don't warn when mixing signed/ unsigned
2020-02-03 20:29:36 +01:00
ok {test-number} - (std::numeric_limits<uint32_t>::max)() > ul for: 4294967295 (0x<hex digits>) > 4
2020-06-14 21:48:08 +02:00
# Composed matchers shortcircuit
ok {test-number} - 1, !(first && second) for: 1 not ( CheckedTestingMatcher set to fail and CheckedTestingMatcher set to fail )
# Composed matchers shortcircuit
ok {test-number} - first.matchCalled for: true
# Composed matchers shortcircuit
ok {test-number} - !second.matchCalled for: true
# Composed matchers shortcircuit
ok {test-number} - 1, first || second for: 1 ( CheckedTestingMatcher set to succeed or CheckedTestingMatcher set to fail )
# Composed matchers shortcircuit
ok {test-number} - first.matchCalled for: true
# Composed matchers shortcircuit
ok {test-number} - !second.matchCalled for: true
2020-02-02 15:04:19 +01:00
# Contains string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), Contains("not there", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" contains: "not there" (case insensitive)
2020-02-02 15:04:19 +01:00
# Contains string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), Contains("STRING") for: "this string contains 'abc' as a substring" contains: "STRING"
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - elem % 2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - call_count == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Copy and then generate a range
2020-02-03 20:29:36 +01:00
ok {test-number} - make_data().size() == test_count for: 6 == 6
2020-02-02 15:04:19 +01:00
# Custom exceptions can be translated when testing for nothrow
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'custom exception - not std'; expression was: throwCustom()
2020-02-02 15:04:19 +01:00
# Custom exceptions can be translated when testing for throwing as something else
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'custom exception - not std'; expression was: throwCustom(), std::exception
2020-02-02 15:04:19 +01:00
# Custom std-exceptions can be custom translated
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'custom std exception'
2020-02-02 15:04:19 +01:00
# Default scale is invisible to comparison
2020-02-03 20:29:36 +01:00
ok {test-number} - 101.000001 != Approx(100).epsilon(0.01) for: 101.000001 != Approx( 100.0 )
2020-02-02 15:04:19 +01:00
# Default scale is invisible to comparison
2020-02-03 20:29:36 +01:00
ok {test-number} - std::pow(10, -5) != Approx(std::pow(10, -7)) for: 0.00001 != Approx( 0.0000001 )
2020-02-02 15:04:19 +01:00
# Directly creating an EnumInfo
2020-02-03 20:29:36 +01:00
ok {test-number} - enumInfo->lookup(0) == "Value1" for: Value1 == "Value1"
2020-02-02 15:04:19 +01:00
# Directly creating an EnumInfo
2020-02-03 20:29:36 +01:00
ok {test-number} - enumInfo->lookup(1) == "Value2" for: Value2 == "Value2"
2020-02-02 15:04:19 +01:00
# Directly creating an EnumInfo
2020-02-03 20:29:36 +01:00
ok {test-number} - enumInfo->lookup(3) == "{** unexpected enum value **}" for: {** unexpected enum value **} == "{** unexpected enum value **}"
2020-02-02 15:04:19 +01:00
# EndsWith string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), EndsWith("Substring") for: "this string contains 'abc' as a substring" ends with: "Substring"
2020-02-02 15:04:19 +01:00
# EndsWith string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), EndsWith("this", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" ends with: "this" (case insensitive)
2020-02-02 15:04:19 +01:00
# Enums can quickly have stringification enabled using REGISTER_ENUM
2020-02-03 20:29:36 +01:00
ok {test-number} - stringify( EnumClass3::Value1 ) == "Value1" for: "Value1" == "Value1"
2020-02-02 15:04:19 +01:00
# Enums can quickly have stringification enabled using REGISTER_ENUM
2020-02-03 20:29:36 +01:00
ok {test-number} - stringify( EnumClass3::Value2 ) == "Value2" for: "Value2" == "Value2"
2020-02-02 15:04:19 +01:00
# Enums can quickly have stringification enabled using REGISTER_ENUM
2020-02-03 20:29:36 +01:00
ok {test-number} - stringify( EnumClass3::Value3 ) == "Value3" for: "Value3" == "Value3"
2020-02-02 15:04:19 +01:00
# Enums can quickly have stringification enabled using REGISTER_ENUM
2020-02-03 20:29:36 +01:00
ok {test-number} - stringify( EnumClass3::Value4 ) == "{** unexpected enum value **}" for: "{** unexpected enum value **}" == "{** unexpected enum value **}"
2020-02-02 15:04:19 +01:00
# Enums can quickly have stringification enabled using REGISTER_ENUM
2020-02-03 20:29:36 +01:00
ok {test-number} - stringify( ec3 ) == "Value2" for: "Value2" == "Value2"
2020-02-02 15:04:19 +01:00
# Enums in namespaces can quickly have stringification enabled using REGISTER_ENUM
2020-02-03 20:29:36 +01:00
ok {test-number} - stringify( Bikeshed::Colours::Red ) == "Red" for: "Red" == "Red"
2020-02-02 15:04:19 +01:00
# Enums in namespaces can quickly have stringification enabled using REGISTER_ENUM
2020-02-03 20:29:36 +01:00
ok {test-number} - stringify( Bikeshed::Colours::Blue ) == "Blue" for: "Blue" == "Blue"
2020-02-02 15:04:19 +01:00
# Epsilon only applies to Approx's value
2020-02-03 20:29:36 +01:00
ok {test-number} - 101.01 != Approx(100).epsilon(0.01) for: 101.01 != Approx( 100.0 )
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven == 6 for: 7 == 6
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven == 8 for: 7 == 8
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven == 0 for: 7 == 0
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.float_nine_point_one == Approx( 9.11f ) for: 9.1f == Approx( 9.1099996567 )
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.float_nine_point_one == Approx( 9.0f ) for: 9.1f == Approx( 9.0 )
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.float_nine_point_one == Approx( 1 ) for: 9.1f == Approx( 1.0 )
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.float_nine_point_one == Approx( 0 ) for: 9.1f == Approx( 0.0 )
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.double_pi == Approx( 3.1415 ) for: 3.1415926535 == Approx( 3.1415 )
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello == "goodbye" for: "hello" == "goodbye"
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello == "hell" for: "hello" == "hell"
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello == "hello1" for: "hello" == "hello1"
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello.size() == 6 for: 5 == 6
2020-02-02 15:04:19 +01:00
# Equality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - x == Approx( 1.301 ) for: 1.3 == Approx( 1.301 )
2020-02-02 15:04:19 +01:00
# Equality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven == 7 for: 7 == 7
2020-02-02 15:04:19 +01:00
# Equality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.float_nine_point_one == Approx( 9.1f ) for: 9.1f == Approx( 9.1000003815 )
2020-02-02 15:04:19 +01:00
# Equality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.double_pi == Approx( 3.1415926535 ) for: 3.1415926535 == Approx( 3.1415926535 )
2020-02-02 15:04:19 +01:00
# Equality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello == "hello" for: "hello" == "hello"
2020-02-02 15:04:19 +01:00
# Equality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - "hello" == data.str_hello for: "hello" == "hello"
2020-02-02 15:04:19 +01:00
# Equality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# Equality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - x == Approx( 1.3 ) for: 1.3 == Approx( 1.3 )
2020-02-02 15:04:19 +01:00
# Equals
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), Equals("this string contains 'abc' as a substring") for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring"
2020-02-02 15:04:19 +01:00
# Equals
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), Equals("this string contains 'ABC' as a substring", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" (case insensitive)
2020-02-02 15:04:19 +01:00
# Equals string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), Equals("this string contains 'ABC' as a substring") for: "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring"
2020-02-02 15:04:19 +01:00
# Equals string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), Equals("something else", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" equals: "something else" (case insensitive)
2020-02-02 15:04:19 +01:00
# Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(WhatException{}) == "This exception has overridden what() method" for: "This exception has overridden what() method" == "This exception has overridden what() method"
2020-02-02 15:04:19 +01:00
# Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(OperatorException{}) == "OperatorException" for: "OperatorException" == "OperatorException"
2020-02-02 15:04:19 +01:00
# Exception as a value (e.g. in REQUIRE_THROWS_MATCHES) can be stringified
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(StringMakerException{}) == "StringMakerException" for: "StringMakerException" == "StringMakerException"
2020-02-02 15:04:19 +01:00
# Exception matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{1}
2020-02-02 15:04:19 +01:00
# Exception matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - expected exception, got none; expression was: doesNotThrow(), SpecialException, ExceptionMatcher{1}
2020-02-02 15:04:19 +01:00
# Exception matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt(1), SpecialException, ExceptionMatcher{1}
2020-02-02 15:04:19 +01:00
# Exception matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'Unknown exception'; expression was: throwsAsInt(1), SpecialException, ExceptionMatcher{1}
2020-02-02 15:04:19 +01:00
# Exception matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - throwsSpecialException(3), SpecialException, ExceptionMatcher{1} for: SpecialException::what special exception has value of 1
2020-02-02 15:04:19 +01:00
# Exception matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - throwsSpecialException(4), SpecialException, ExceptionMatcher{1} for: SpecialException::what special exception has value of 1
2020-02-02 15:04:19 +01:00
# Exception matchers that succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - throwsSpecialException(1), SpecialException, ExceptionMatcher{1} for: SpecialException::what special exception has value of 1
2020-02-02 15:04:19 +01:00
# Exception matchers that succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - throwsSpecialException(2), SpecialException, ExceptionMatcher{2} for: SpecialException::what special exception has value of 2
2020-02-02 15:04:19 +01:00
# Exception messages can be tested for
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows(), "expected exception" for: "expected exception" equals: "expected exception"
2020-02-02 15:04:19 +01:00
# Exception messages can be tested for
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) for: "expected exception" equals: "expected exception" (case insensitive)
2020-02-02 15:04:19 +01:00
# Exception messages can be tested for
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows(), StartsWith( "expected" ) for: "expected exception" starts with: "expected"
2020-02-02 15:04:19 +01:00
# Exception messages can be tested for
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows(), EndsWith( "exception" ) for: "expected exception" ends with: "exception"
2020-02-02 15:04:19 +01:00
# Exception messages can be tested for
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows(), Contains( "except" ) for: "expected exception" contains: "except"
2020-02-02 15:04:19 +01:00
# Exception messages can be tested for
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) for: "expected exception" contains: "except" (case insensitive)
2020-02-02 15:04:19 +01:00
# Exceptions matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - throwsDerivedException(), DerivedException, Message("DerivedException::what") for: DerivedException::what exception message matches "DerivedException::what"
2020-02-02 15:04:19 +01:00
# Exceptions matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - throwsDerivedException(), DerivedException, !Message("derivedexception::what") for: DerivedException::what not exception message matches "derivedexception::what"
2020-02-02 15:04:19 +01:00
# Exceptions matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - throwsSpecialException(2), SpecialException, !Message("DerivedException::what") for: SpecialException::what not exception message matches "DerivedException::what"
2020-02-02 15:04:19 +01:00
# Exceptions matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - throwsSpecialException(2), SpecialException, Message("SpecialException::what") for: SpecialException::what exception message matches "SpecialException::what"
2020-02-02 15:04:19 +01:00
# Expected exceptions that don't throw or unexpected exceptions fail the test
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows(), std::string
2020-02-02 15:04:19 +01:00
# Expected exceptions that don't throw or unexpected exceptions fail the test
2020-02-03 20:29:36 +01:00
not ok {test-number} - expected exception, got none; expression was: thisDoesntThrow(), std::domain_error
2020-02-02 15:04:19 +01:00
# Expected exceptions that don't throw or unexpected exceptions fail the test
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows()
2020-02-02 15:04:19 +01:00
# FAIL aborts the test
2020-02-03 20:29:36 +01:00
not ok {test-number} - explicitly with 1 message: 'This is a failure'
2020-02-02 15:04:19 +01:00
# FAIL does not require an argument
2020-02-03 20:29:36 +01:00
not ok {test-number} - explicitly
2020-02-02 15:04:19 +01:00
# FAIL_CHECK does not abort the test
2020-02-03 20:29:36 +01:00
not ok {test-number} - explicitly with 1 message: 'This is a failure'
2020-02-02 15:04:19 +01:00
# FAIL_CHECK does not abort the test
2020-02-13 14:22:18 +01:00
warning {test-number} - 'This message appears in the output'
2020-02-02 15:04:19 +01:00
# Factorials are computed
2020-02-03 20:29:36 +01:00
ok {test-number} - Factorial(0) == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Factorials are computed
2020-02-03 20:29:36 +01:00
ok {test-number} - Factorial(1) == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Factorials are computed
2020-02-03 20:29:36 +01:00
ok {test-number} - Factorial(2) == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Factorials are computed
2020-02-03 20:29:36 +01:00
ok {test-number} - Factorial(3) == 6 for: 6 == 6
2020-02-02 15:04:19 +01:00
# Factorials are computed
2020-02-03 20:29:36 +01:00
ok {test-number} - Factorial(10) == 3628800 for: 3628800 (0x<hex digits>) == 3628800 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 10., WithinRel(11.1, 0.1) for: 10.0 and 11.1 are within 10% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 10., !WithinRel(11.2, 0.1) for: 10.0 not and 11.2 are within 10% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 1., !WithinRel(0., 0.99) for: 1.0 not and 0 are within 99% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - -0., WithinRel(0.) for: -0.0 and 0 are within 2.22045e-12% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - v1, WithinRel(v2) for: 0.0 and 2.22507e-308 are within 2.22045e-12% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 1., WithinAbs(1., 0) for: 1.0 is within 0.0 of 1.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 0., WithinAbs(1., 1) for: 0.0 is within 1.0 of 1.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 0., !WithinAbs(1., 0.99) for: 0.0 not is within 0.99 of 1.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 0., !WithinAbs(1., 0.99) for: 0.0 not is within 0.99 of 1.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 11., !WithinAbs(10., 0.5) for: 11.0 not is within 0.5 of 10.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 10., !WithinAbs(11., 0.5) for: 10.0 not is within 0.5 of 11.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - -10., WithinAbs(-10., 0.5) for: -10.0 is within 0.5 of -10.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - -10., WithinAbs(-9.6, 0.5) for: -10.0 is within 0.5 of -9.6
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 1., WithinULP(1., 0) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - nextafter(1., 2.), WithinULP(1., 1) for: 1.0 is within 1 ULPs of 1.0000000000000000e+00 ([9.9999999999999989e-01, 1.0000000000000002e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 0., WithinULP(nextafter(0., 1.), 1) for: 0.0 is within 1 ULPs of 4.9406564584124654e-324 ([0.0000000000000000e+00, 9.8813129168249309e-324])
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 1., WithinULP(nextafter(1., 0.), 1) for: 1.0 is within 1 ULPs of 9.9999999999999989e-01 ([9.9999999999999978e-01, 1.0000000000000000e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 1., !WithinULP(nextafter(1., 2.), 0) for: 1.0 not is within 0 ULPs of 1.0000000000000002e+00 ([1.0000000000000002e+00, 1.0000000000000002e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 1., WithinULP(1., 0) for: 1.0 is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - -0., WithinULP(0., 0) for: -0.0 is within 0 ULPs of 0.0000000000000000e+00 ([0.0000000000000000e+00, 0.0000000000000000e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 1., WithinAbs(1., 0.5) || WithinULP(2., 1) for: 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0000000000000000e+00 ([1.9999999999999998e+00, 2.0000000000000004e+00]) )
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 1., WithinAbs(2., 0.5) || WithinULP(1., 0) for: 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0000000000000000e+00 ([1.0000000000000000e+00, 1.0000000000000000e+00]) )
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.0001, WithinAbs(0., 0.001) || WithinRel(0., 0.1) for: 0.0001 ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinAbs(1., 0.)
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinAbs(1., -1.), std::domain_error
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinULP(1., 0)
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinRel(1., 0.)
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinRel(1., -0.2), std::domain_error
2020-02-02 15:04:19 +01:00
# Floating point matchers: double
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinRel(1., 1.), std::domain_error
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 10.f, WithinRel(11.1f, 0.1f) for: 10.0f and 11.1 are within 10% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 10.f, !WithinRel(11.2f, 0.1f) for: 10.0f not and 11.2 are within 10% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.f, !WithinRel(0.f, 0.99f) for: 1.0f not and 0 are within 99% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - -0.f, WithinRel(0.f) for: -0.0f and 0 are within 0.00119209% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - v1, WithinRel(v2) for: 0.0f and 1.17549e-38 are within 0.00119209% of each other
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.f, WithinAbs(1.f, 0) for: 1.0f is within 0.0 of 1.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.f, WithinAbs(1.f, 1) for: 0.0f is within 1.0 of 1.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.f, !WithinAbs(1.f, 0.99f) for: 0.0f not is within 0.9900000095 of 1.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.f, !WithinAbs(1.f, 0.99f) for: 0.0f not is within 0.9900000095 of 1.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.f, WithinAbs(-0.f, 0) for: 0.0f is within 0.0 of -0.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 11.f, !WithinAbs(10.f, 0.5f) for: 11.0f not is within 0.5 of 10.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 10.f, !WithinAbs(11.f, 0.5f) for: 10.0f not is within 0.5 of 11.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - -10.f, WithinAbs(-10.f, 0.5f) for: -10.0f is within 0.5 of -10.0
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - -10.f, WithinAbs(-9.6f, 0.5f) for: -10.0f is within 0.5 of -9.6000003815
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.f, WithinULP(1.f, 0) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - nextafter(1.f, 2.f), WithinULP(1.f, 1) for: 1.0f is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.f, WithinULP(nextafter(0.f, 1.f), 1) for: 0.0f is within 1 ULPs of 1.40129846e-45f ([0.00000000e+00, 2.80259693e-45])
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.f, WithinULP(nextafter(1.f, 0.f), 1) for: 1.0f is within 1 ULPs of 9.99999940e-01f ([9.99999881e-01, 1.00000000e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.f, !WithinULP(nextafter(1.f, 2.f), 0) for: 1.0f not is within 0 ULPs of 1.00000012e+00f ([1.00000012e+00, 1.00000012e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.f, WithinULP(1.f, 0) for: 1.0f is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - -0.f, WithinULP(0.f, 0) for: -0.0f is within 0 ULPs of 0.00000000e+00f ([0.00000000e+00, 0.00000000e+00])
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.f, WithinAbs(1.f, 0.5) || WithinULP(1.f, 1) for: 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.00000000e+00f ([9.99999940e-01, 1.00000012e+00]) )
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 1.f, WithinAbs(2.f, 0.5) || WithinULP(1.f, 0) for: 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.00000000e+00f ([1.00000000e+00, 1.00000000e+00]) )
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - 0.0001f, WithinAbs(0.f, 0.001f) || WithinRel(0.f, 0.1f) for: 0.0001f ( is within 0.001 of 0.0 or and 0 are within 10% of each other )
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinAbs(1.f, 0.f)
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinAbs(1.f, -1.f), std::domain_error
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinULP(1.f, 0)
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinULP(1.f, static_cast<uint64_t>(-1)), std::domain_error
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinRel(1.f, 0.f)
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinRel(1.f, -0.2f), std::domain_error
2020-02-02 15:04:19 +01:00
# Floating point matchers: float
2020-02-03 20:29:36 +01:00
ok {test-number} - WithinRel(1.f, 1.f), std::domain_error
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i % 2 == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i % 2 == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i % 2 == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - filter([] (int) {return false; }, value(1)), Catch::GeneratorException
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 4 for: 1 < 4
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 4 for: 2 < 4
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 4 for: 3 < 4
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i % 2 == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i % 2 == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i % 2 == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i.size() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i.size() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i.size() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i.size() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i.size() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - i.size() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - j > 0 for: 1 > 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - j > 0 for: 2 > 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - j > 0 for: 3 > 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - j > 0 for: 1 > 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - j > 0 for: 2 > 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - j > 0 for: 3 > 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.size() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.front() == chunk2.back() for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.size() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.front() == chunk2.back() for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.size() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.front() == chunk2.back() for: 3 == 3
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.size() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.front() == chunk2.back() for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.front() < 3 for: 1 < 3
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.size() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.front() == chunk2.back() for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.front() < 3 for: 2 < 3
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk2.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators -- adapters
2020-02-03 20:29:36 +01:00
ok {test-number} - chunk(2, value(1)), Catch::GeneratorException
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - j < i for: -3 < 1
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - j < i for: -2 < 1
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - j < i for: -1 < 1
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - 4u * i > str.size() for: 4 > 1
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - 4u * i > str.size() for: 4 > 2
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - 4u * i > str.size() for: 4 > 3
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - j < i for: -3 < 2
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - j < i for: -2 < 2
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - j < i for: -1 < 2
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - 4u * i > str.size() for: 8 > 1
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - 4u * i > str.size() for: 8 > 2
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - 4u * i > str.size() for: 8 > 3
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - j < i for: -3 < 3
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - j < i for: -2 < 3
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - j < i for: -1 < 3
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - 4u * i > str.size() for: 12 > 1
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - 4u * i > str.size() for: 12 > 2
2020-02-02 15:04:19 +01:00
# Generators -- simple
2020-02-03 20:29:36 +01:00
ok {test-number} - 4u * i > str.size() for: 12 > 3
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 123 for: 123 == 123
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 3 for: 3 == 3
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 4 for: 4 == 4
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get().size() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == "aa" for: "aa" == "aa"
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == "bb" for: "bb" == "bb"
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == "cc" for: "cc" == "cc"
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 3 for: 3 == 3
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - filter([] (int) { return false; }, value(1)), Catch::GeneratorException
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2.0 for: 2.0 == 2.0
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 4.0 for: 4.0 == 4.0
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 6.0 for: 6.0 == 6.0
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2.0 for: 2.0 == 2.0
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 4.0 for: 4.0 == 4.0
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 6.0 for: 6.0 == 6.0
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 3 for: 3 == 3
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 3 for: 3 == 3
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 3 for: 3 == 3
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -2 for: -2 == -2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -1 for: -1 == -1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -1 for: -1 == -1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -7 for: -7 == -7
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -4 for: -4 == -4
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -1 for: -1 == -1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -7 for: -7 == -7
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -4 for: -4 == -4
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -1 for: -1 == -1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -7 for: -7 == -7
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -4 for: -4 == -4
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -1 for: -1 == -1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -1.0 == Approx( -1.0 ) with 1 message: 'Current expected value is -1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.9 == Approx( -0.9 ) with 1 message: 'Current expected value is -0.9'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.9'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.8 == Approx( -0.8 ) with 1 message: 'Current expected value is -0.8'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.8'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.7 == Approx( -0.7 ) with 1 message: 'Current expected value is -0.7'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.7'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.6 == Approx( -0.6 ) with 1 message: 'Current expected value is -0.6'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.6'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.5 == Approx( -0.5 ) with 1 message: 'Current expected value is -0.5'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.5'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.4 == Approx( -0.4 ) with 1 message: 'Current expected value is -0.4'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.4'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.3 == Approx( -0.3 ) with 1 message: 'Current expected value is -0.3'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.3'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.2 == Approx( -0.2 ) with 1 message: 'Current expected value is -0.2'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.2'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.1 == Approx( -0.1 ) with 1 message: 'Current expected value is -0.1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.0 == Approx( -0.0 ) with 1 message: 'Current expected value is -1.38778e-16'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1.38778e-16'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.1 == Approx( 0.1 ) with 1 message: 'Current expected value is 0.1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.2 == Approx( 0.2 ) with 1 message: 'Current expected value is 0.2'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.2'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.3 == Approx( 0.3 ) with 1 message: 'Current expected value is 0.3'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.3'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.4 == Approx( 0.4 ) with 1 message: 'Current expected value is 0.4'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.4'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.5 == Approx( 0.5 ) with 1 message: 'Current expected value is 0.5'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.5'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.6 == Approx( 0.6 ) with 1 message: 'Current expected value is 0.6'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.6'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.7 == Approx( 0.7 ) with 1 message: 'Current expected value is 0.7'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.7'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.8 == Approx( 0.8 ) with 1 message: 'Current expected value is 0.8'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.8'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.9 == Approx( 0.9 ) with 1 message: 'Current expected value is 0.9'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.9'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx( rangeEnd ) for: 1.0 == Approx( 1.0 )
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -1.0 == Approx( -1.0 ) with 1 message: 'Current expected value is -1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.7 == Approx( -0.7 ) with 1 message: 'Current expected value is -0.7'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.7'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.4 == Approx( -0.4 ) with 1 message: 'Current expected value is -0.4'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.4'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.1 == Approx( -0.1 ) with 1 message: 'Current expected value is -0.1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.2 == Approx( 0.2 ) with 1 message: 'Current expected value is 0.2'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.2'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.5 == Approx( 0.5 ) with 1 message: 'Current expected value is 0.5'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.5'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -1.0 == Approx( -1.0 ) with 1 message: 'Current expected value is -1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.7 == Approx( -0.7 ) with 1 message: 'Current expected value is -0.7'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.7'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.4 == Approx( -0.4 ) with 1 message: 'Current expected value is -0.4'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.4'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: -0.1 == Approx( -0.1 ) with 1 message: 'Current expected value is -0.1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is -0.1'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.2 == Approx( 0.2 ) with 1 message: 'Current expected value is 0.2'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.2'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == Approx(expected) for: 0.5 == Approx( 0.5 ) with 1 message: 'Current expected value is 0.5'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true with 1 message: 'Current expected value is 0.5'
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -1 for: -1 == -1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -4 for: -4 == -4
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -1 for: -1 == -1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -4 for: -4 == -4
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -1 for: -1 == -1
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -4 for: -4 == -4
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.next() for: true
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - gen.get() == -7 for: -7 == -7
2020-02-02 15:04:19 +01:00
# Generators internals
2020-02-03 20:29:36 +01:00
ok {test-number} - !(gen.next()) for: !false
2020-02-02 15:04:19 +01:00
# Greater-than inequalities with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - d >= Approx( 1.22 ) for: 1.23 >= Approx( 1.22 )
2020-02-02 15:04:19 +01:00
# Greater-than inequalities with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - d >= Approx( 1.23 ) for: 1.23 >= Approx( 1.23 )
2020-02-02 15:04:19 +01:00
# Greater-than inequalities with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - !(d >= Approx( 1.24 )) for: !(1.23 >= Approx( 1.24 ))
2020-02-02 15:04:19 +01:00
# Greater-than inequalities with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - d >= Approx( 1.24 ).epsilon(0.1) for: 1.23 >= Approx( 1.24 )
2020-02-02 15:04:19 +01:00
# INFO and WARN do not abort tests
2020-02-13 14:22:18 +01:00
warning {test-number} - 'this is a message' with 1 message: 'this is a warning'
2020-02-02 15:04:19 +01:00
# INFO gets logged on failure
2020-02-03 20:29:36 +01:00
not ok {test-number} - a == 1 for: 2 == 1 with 2 messages: 'this message should be logged' and 'so should this'
2020-02-02 15:04:19 +01:00
# INFO gets logged on failure, even if captured before successful assertions
2020-02-03 20:29:36 +01:00
ok {test-number} - a == 2 for: 2 == 2 with 1 message: 'this message may be logged later'
2020-02-02 15:04:19 +01:00
# INFO gets logged on failure, even if captured before successful assertions
2020-02-03 20:29:36 +01:00
not ok {test-number} - a == 1 for: 2 == 1 with 2 messages: 'this message may be logged later' and 'this message should be logged'
2020-02-02 15:04:19 +01:00
# INFO gets logged on failure, even if captured before successful assertions
2020-02-03 20:29:36 +01:00
not ok {test-number} - a == 0 for: 2 == 0 with 3 messages: 'this message may be logged later' and 'this message should be logged' and 'and this, but later'
2020-02-02 15:04:19 +01:00
# INFO gets logged on failure, even if captured before successful assertions
2020-02-03 20:29:36 +01:00
ok {test-number} - a == 2 for: 2 == 2 with 4 messages: 'this message may be logged later' and 'this message should be logged' and 'and this, but later' and 'but not this'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 0 < 10 with 2 messages: 'current counter 0' and 'i := 0'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 1 < 10 with 2 messages: 'current counter 1' and 'i := 1'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 2 < 10 with 2 messages: 'current counter 2' and 'i := 2'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 3 < 10 with 2 messages: 'current counter 3' and 'i := 3'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 4 < 10 with 2 messages: 'current counter 4' and 'i := 4'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 5 < 10 with 2 messages: 'current counter 5' and 'i := 5'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 6 < 10 with 2 messages: 'current counter 6' and 'i := 6'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 7 < 10 with 2 messages: 'current counter 7' and 'i := 7'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 8 < 10 with 2 messages: 'current counter 8' and 'i := 8'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
ok {test-number} - i < 10 for: 9 < 10 with 2 messages: 'current counter 9' and 'i := 9'
2020-02-02 15:04:19 +01:00
# INFO is reset for each loop
2020-02-03 20:29:36 +01:00
not ok {test-number} - i < 10 for: 10 < 10 with 2 messages: 'current counter 10' and 'i := 10'
2020-02-02 15:04:19 +01:00
# Inequality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven != 7 for: 7 != 7
2020-02-02 15:04:19 +01:00
# Inequality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.float_nine_point_one != Approx( 9.1f ) for: 9.1f != Approx( 9.1000003815 )
2020-02-02 15:04:19 +01:00
# Inequality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.double_pi != Approx( 3.1415926535 ) for: 3.1415926535 != Approx( 3.1415926535 )
2020-02-02 15:04:19 +01:00
# Inequality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello != "hello" for: "hello" != "hello"
2020-02-02 15:04:19 +01:00
# Inequality checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello.size() != 5 for: 5 != 5
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven != 6 for: 7 != 6
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven != 8 for: 7 != 8
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.float_nine_point_one != Approx( 9.11f ) for: 9.1f != Approx( 9.1099996567 )
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.float_nine_point_one != Approx( 9.0f ) for: 9.1f != Approx( 9.0 )
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.float_nine_point_one != Approx( 1 ) for: 9.1f != Approx( 1.0 )
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.float_nine_point_one != Approx( 0 ) for: 9.1f != Approx( 0.0 )
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.double_pi != Approx( 3.1415 ) for: 3.1415926535 != Approx( 3.1415 )
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello != "goodbye" for: "hello" != "goodbye"
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello != "hell" for: "hello" != "hell"
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello != "hello1" for: "hello" != "hello1"
2020-02-02 15:04:19 +01:00
# Inequality checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello.size() != 6 for: 5 != 6
2020-03-19 13:32:45 +01:00
# Lambdas in assertions
ok {test-number} - []() { return true; }() for: true
2020-02-02 15:04:19 +01:00
# Less-than inequalities with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - d <= Approx( 1.24 ) for: 1.23 <= Approx( 1.24 )
2020-02-02 15:04:19 +01:00
# Less-than inequalities with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - d <= Approx( 1.23 ) for: 1.23 <= Approx( 1.23 )
2020-02-02 15:04:19 +01:00
# Less-than inequalities with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - !(d <= Approx( 1.22 )) for: !(1.23 <= Approx( 1.22 ))
2020-02-02 15:04:19 +01:00
# Less-than inequalities with different epsilons
2020-02-03 20:29:36 +01:00
ok {test-number} - d <= Approx( 1.22 ).epsilon(0.1) for: 1.23 <= Approx( 1.22 )
2020-02-02 15:04:19 +01:00
# ManuallyRegistered
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'was called'
2020-02-02 15:04:19 +01:00
# Matchers can be (AllOf) composed with the && operator
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), Contains("string") && Contains("abc") && Contains("substring") && Contains("contains") for: "this string contains 'abc' as a substring" ( contains: "string" and contains: "abc" and contains: "substring" and contains: "contains" )
2020-02-02 15:04:19 +01:00
# Matchers can be (AnyOf) composed with the || operator
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), Contains("string") || Contains("different") || Contains("random") for: "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" )
2020-02-02 15:04:19 +01:00
# Matchers can be (AnyOf) composed with the || operator
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching2(), Contains("string") || Contains("different") || Contains("random") for: "some completely different text that contains one common word" ( contains: "string" or contains: "different" or contains: "random" )
2020-02-02 15:04:19 +01:00
# Matchers can be composed with both && and ||
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), (Contains("string") || Contains("different")) && Contains("substring") for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "substring" )
2020-02-02 15:04:19 +01:00
# Matchers can be composed with both && and || - failing
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), (Contains("string") || Contains("different")) && Contains("random") for: "this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )
2020-02-02 15:04:19 +01:00
# Matchers can be negated (Not) with the ! operator
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), !Contains("different") for: "this string contains 'abc' as a substring" not contains: "different"
2020-02-02 15:04:19 +01:00
# Matchers can be negated (Not) with the ! operator - failing
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), !Contains("substring") for: "this string contains 'abc' as a substring" not contains: "substring"
2020-02-02 15:04:19 +01:00
# Mismatching exception messages failing the test
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows(), "expected exception" for: "expected exception" equals: "expected exception"
2020-02-02 15:04:19 +01:00
# Mismatching exception messages failing the test
2020-02-03 20:29:36 +01:00
not ok {test-number} - thisThrows(), "should fail" for: "expected exception" equals: "should fail"
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 3 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 4 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 5 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 6 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: -5 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: -4 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 90 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 91 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 92 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 93 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 94 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 95 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 96 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 97 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 98 > -6
2020-02-02 15:04:19 +01:00
# Nested generators and captured variables
2020-02-03 20:29:36 +01:00
ok {test-number} - values > -6 for: 99 > -6
2020-02-02 15:04:19 +01:00
# Nice descriptive name
2020-02-13 14:22:18 +01:00
warning {test-number} - 'This one ran'
2020-02-02 15:04:19 +01:00
# Non-std exceptions can be translated
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'custom exception'
2020-02-02 15:04:19 +01:00
# Objects that evaluated in boolean contexts can be checked
2020-02-03 20:29:36 +01:00
ok {test-number} - True for: {?}
2020-02-02 15:04:19 +01:00
# Objects that evaluated in boolean contexts can be checked
2020-02-03 20:29:36 +01:00
ok {test-number} - !False for: true
2020-02-02 15:04:19 +01:00
# Objects that evaluated in boolean contexts can be checked
2020-02-03 20:29:36 +01:00
ok {test-number} - !(False) for: !{?}
2020-02-02 15:04:19 +01:00
# Optionally static assertions
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'std::is_void<void>::value'
2020-02-02 15:04:19 +01:00
# Optionally static assertions
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: '!(std::is_void<int>::value)'
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven > 7 for: 7 > 7
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven < 7 for: 7 < 7
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven > 8 for: 7 > 8
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven < 6 for: 7 < 6
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven < 0 for: 7 < 0
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven < -1 for: 7 < -1
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven >= 8 for: 7 >= 8
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.int_seven <= 6 for: 7 <= 6
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.float_nine_point_one < 9 for: 9.1f < 9
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.float_nine_point_one > 10 for: 9.1f > 10
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.float_nine_point_one > 9.2 for: 9.1f > 9.2
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello > "hello" for: "hello" > "hello"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello < "hello" for: "hello" < "hello"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello > "hellp" for: "hello" > "hellp"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello > "z" for: "hello" > "z"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello < "hellm" for: "hello" < "hellm"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello < "a" for: "hello" < "a"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello >= "z" for: "hello" >= "z"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - data.str_hello <= "a" for: "hello" <= "a"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven < 8 for: 7 < 8
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven > 6 for: 7 > 6
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven > 0 for: 7 > 0
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven > -1 for: 7 > -1
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven >= 7 for: 7 >= 7
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven >= 6 for: 7 >= 6
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven <= 7 for: 7 <= 7
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.int_seven <= 8 for: 7 <= 8
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.float_nine_point_one > 9 for: 9.1f > 9
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.float_nine_point_one < 10 for: 9.1f < 10
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.float_nine_point_one < 9.2 for: 9.1f < 9.2
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello <= "hello" for: "hello" <= "hello"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello >= "hello" for: "hello" >= "hello"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello < "hellp" for: "hello" < "hellp"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello < "zebra" for: "hello" < "zebra"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello > "hellm" for: "hello" > "hellm"
2020-02-02 15:04:19 +01:00
# Ordering comparison checks that should succeed
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str_hello > "a" for: "hello" > "a"
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 4242248763 (0x<hex digits>) == 4242248763 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 1867888929 (0x<hex digits>) == 1867888929 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 1276619030 (0x<hex digits>) == 1276619030 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 1911218783 (0x<hex digits>) == 1911218783 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 1827115164 (0x<hex digits>) == 1827115164 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 1472234645 (0x<hex digits>) == 1472234645 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 868832940 (0x<hex digits>) == 868832940 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 570883446 (0x<hex digits>) == 570883446 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 889299803 (0x<hex digits>) == 889299803 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 4261393167 (0x<hex digits>) == 4261393167 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 1472234645 (0x<hex digits>) == 1472234645 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 868832940 (0x<hex digits>) == 868832940 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 570883446 (0x<hex digits>) == 570883446 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 889299803 (0x<hex digits>) == 889299803 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Our PCG implementation provides expected results for known seeds
2020-02-03 20:29:36 +01:00
ok {test-number} - rng() == 0x<hex digits> for: 4261393167 (0x<hex digits>) == 4261393167 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Output from all sections is reported
2020-02-03 20:29:36 +01:00
not ok {test-number} - explicitly with 1 message: 'Message from section one'
2020-02-02 15:04:19 +01:00
# Output from all sections is reported
2020-02-03 20:29:36 +01:00
not ok {test-number} - explicitly with 1 message: 'Message from section two'
2020-02-16 11:19:10 +01:00
# Overloaded comma or address-of operators are not used
ok {test-number} - (EvilMatcher(), EvilMatcher()), EvilCommaOperatorUsed
# Overloaded comma or address-of operators are not used
ok {test-number} - &EvilMatcher(), EvilAddressOfOperatorUsed
# Overloaded comma or address-of operators are not used
ok {test-number} - EvilMatcher() || EvilMatcher() && !EvilMatcher()
# Overloaded comma or address-of operators are not used
ok {test-number} - (EvilMatcher() && EvilMatcher()) || !EvilMatcher()
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - parseTestSpec( "*a" ).matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - parseTestSpec( "a*" ).matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - parseTestSpec( "*a*" ).matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.hasFilters() == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcA ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcB ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcC ) == false for: false == false
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *tcD ) == true for: true == true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( " aardvark " ) ) for: true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( " aardvark" ) ) for: true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( " aardvark " ) ) for: true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( "aardvark " ) ) for: true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( "aardvark" ) ) for: true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( " aardvark " ) ) for: true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( " aardvark" ) ) for: true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( " aardvark " ) ) for: true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( "aardvark " ) ) for: true
2020-02-02 15:04:19 +01:00
# Parse test names and tags
2020-02-03 20:29:36 +01:00
ok {test-number} - spec.matches( *fakeTestCase( "aardvark" ) ) for: true
2019-11-05 23:28:47 +01:00
# Parse test names and tags
ok {test-number} - spec.matches(*fakeTestCase("hidden and foo", "[.][foo]")) for: true
# Parse test names and tags
ok {test-number} - !(spec.matches(*fakeTestCase("only foo", "[foo]"))) for: !false
# Parse test names and tags
ok {test-number} - !(spec.matches(*fakeTestCase("hidden and foo", "[.][foo]"))) for: !false
# Parse test names and tags
ok {test-number} - !(spec.matches(*fakeTestCase("only foo", "[foo]"))) for: !false
# Parse test names and tags
ok {test-number} - !(spec.matches(*fakeTestCase("only hidden", "[.]"))) for: !false
# Parse test names and tags
ok {test-number} - spec.matches(*fakeTestCase("neither foo nor hidden", "[bar]")) for: true
2020-02-02 15:04:19 +01:00
# Pointers can be compared to null
2020-02-03 20:29:36 +01:00
ok {test-number} - p == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Pointers can be compared to null
2020-02-03 20:29:36 +01:00
ok {test-number} - p == pNULL for: 0 == 0
2020-02-02 15:04:19 +01:00
# Pointers can be compared to null
2020-02-03 20:29:36 +01:00
ok {test-number} - p != 0 for: 0x<hex digits> != 0
2020-02-02 15:04:19 +01:00
# Pointers can be compared to null
2020-02-03 20:29:36 +01:00
ok {test-number} - cp != 0 for: 0x<hex digits> != 0
2020-02-02 15:04:19 +01:00
# Pointers can be compared to null
2020-02-03 20:29:36 +01:00
ok {test-number} - cpc != 0 for: 0x<hex digits> != 0
2020-02-02 15:04:19 +01:00
# Pointers can be compared to null
2020-02-03 20:29:36 +01:00
ok {test-number} - returnsNull() == 0 for: {null string} == 0
2020-02-02 15:04:19 +01:00
# Pointers can be compared to null
2020-02-03 20:29:36 +01:00
ok {test-number} - returnsConstNull() == 0 for: {null string} == 0
2020-02-02 15:04:19 +01:00
# Pointers can be compared to null
2020-02-03 20:29:36 +01:00
ok {test-number} - 0 != p for: 0 != 0x<hex digits>
2020-02-02 15:04:19 +01:00
# Precision of floating point stringification can be set
2020-02-03 20:29:36 +01:00
ok {test-number} - str1.size() == 3 + 5 for: 8 == 8
2020-02-02 15:04:19 +01:00
# Precision of floating point stringification can be set
2020-02-03 20:29:36 +01:00
ok {test-number} - str2.size() == 3 + 10 for: 13 == 13
2020-02-02 15:04:19 +01:00
# Precision of floating point stringification can be set
2020-02-03 20:29:36 +01:00
ok {test-number} - str1.size() == 2 + 5 for: 7 == 7
2020-02-02 15:04:19 +01:00
# Precision of floating point stringification can be set
2020-02-03 20:29:36 +01:00
ok {test-number} - str2.size() == 2 + 15 for: 17 == 17
2020-02-02 15:04:19 +01:00
# Predicate matcher can accept const char*
2020-02-03 20:29:36 +01:00
ok {test-number} - "foo", Predicate<const char*>([] (const char* const&) { return true; }) for: "foo" matches undescribed predicate
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - result for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.processName == "" for: "" == ""
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - result for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.processName == "test" for: "test" == "test"
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.shouldDebugBreak == false for: false == false
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.abortAfter == -1 for: -1 == -1
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.noThrow == false for: false == false
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.reporterName == "console" for: "console" == "console"
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - !(cfg.hasTestFilters()) for: !false
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - result for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cfg.hasTestFilters() for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cfg.testSpec().matches(*fakeTestCase("notIncluded")) == false for: false == false
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cfg.testSpec().matches(*fakeTestCase("test1")) for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - result for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cfg.hasTestFilters() for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cfg.testSpec().matches(*fakeTestCase("test1")) == false for: false == false
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - result for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cfg.hasTestFilters() for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cfg.testSpec().matches(*fakeTestCase("test1")) == false for: false == false
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cfg.testSpec().matches(*fakeTestCase("alwaysIncluded")) for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "-r", "console"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.reporterName == "console" for: "console" == "console"
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "-r", "xml"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.reporterName == "xml" for: "xml" == "xml"
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "--reporter", "junit"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.reporterName == "junit" for: "junit" == "junit"
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - !(cli.parse({ "test", "-r", "xml", "-r", "junit" })) for: !{?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - !result for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - result.errorMessage(), Contains("Unrecognized reporter") for: "Unrecognized reporter, 'unsupported'. Check available with --list-reporters" contains: "Unrecognized reporter"
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "-b"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.shouldDebugBreak == true for: true == true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "--break"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.shouldDebugBreak for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "-a"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.abortAfter == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "-x", "2"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.abortAfter == 2 for: 2 == 2
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - !result for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - result.errorMessage(), Contains("convert") && Contains("oops") for: "Unable to convert 'oops' to destination type" ( contains: "convert" and contains: "oops" )
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-15 20:42:57 +01:00
ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
# Process can be configured on command line
ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 0 == 0
# Process can be configured on command line
ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
# Process can be configured on command line
ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 1 == 1
# Process can be configured on command line
ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
# Process can be configured on command line
ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 2 == 2
# Process can be configured on command line
ok {test-number} - cli.parse({"test", "--wait-for-keypress", std::get<0>(input)}) for: {?}
# Process can be configured on command line
ok {test-number} - config.waitForKeypress == std::get<1>(input) for: 3 == 3
# Process can be configured on command line
ok {test-number} - !result for: true
# Process can be configured on command line
ok {test-number} - result.errorMessage(), Contains("never") && Contains("both") for: "keypress argument must be one of: never, start, exit or both. 'sometimes' not recognised" ( contains: "never" and contains: "both" )
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "-e"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.noThrow for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "--nothrow"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.noThrow for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "-o", "filename.ext"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.outputFilename == "filename.ext" for: "filename.ext" == "filename.ext"
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "--out", "filename.ext"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.outputFilename == "filename.ext" for: "filename.ext" == "filename.ext"
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "-abe"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.abortAfter == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.shouldDebugBreak for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.noThrow == true for: true == true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.useColour == UseColour::Auto for: 0 == 0
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "--use-colour", "auto"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.useColour == UseColour::Auto for: 0 == 0
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "--use-colour", "yes"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.useColour == UseColour::Yes for: 1 == 1
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({"test", "--use-colour", "no"}) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.useColour == UseColour::No for: 2 == 2
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - !result for: true
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - result.errorMessage(), Contains( "colour mode must be one of" ) for: "colour mode must be one of: auto, yes or no. 'wrong' not recognised" contains: "colour mode must be one of"
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({ "test", "--benchmark-samples=200" }) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.benchmarkSamples == 200 for: 200 == 200
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({ "test", "--benchmark-resamples=20000" }) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.benchmarkResamples == 20000 for: 20000 (0x<hex digits>) == 20000 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({ "test", "--benchmark-confidence-interval=0.99" }) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.benchmarkConfidenceInterval == Catch::Approx(0.99) for: 0.99 == Approx( 0.99 )
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - cli.parse({ "test", "--benchmark-no-analysis" }) for: {?}
2020-02-02 15:04:19 +01:00
# Process can be configured on command line
2020-02-03 20:29:36 +01:00
ok {test-number} - config.benchmarkNoAnalysis for: true
2020-01-27 15:43:27 +01:00
# Process can be configured on command line
ok {test-number} - cli.parse({ "test", "--benchmark-warmup-time=10" }) for: {?}
# Process can be configured on command line
ok {test-number} - config.benchmarkWarmupTime == 10 for: 10 == 10
2020-02-02 15:04:19 +01:00
# Product with differing arities - std::tuple<int, double, float>
2020-02-03 20:29:36 +01:00
ok {test-number} - std::tuple_size<TestType>::value >= 1 for: 3 >= 1
2020-02-02 15:04:19 +01:00
# Product with differing arities - std::tuple<int, double>
2020-02-03 20:29:36 +01:00
ok {test-number} - std::tuple_size<TestType>::value >= 1 for: 2 >= 1
2020-02-02 15:04:19 +01:00
# Product with differing arities - std::tuple<int>
2020-02-03 20:29:36 +01:00
ok {test-number} - std::tuple_size<TestType>::value >= 1 for: 1 >= 1
2020-02-02 15:04:19 +01:00
# Reconstruction should be based on stringification: #914
2020-02-03 20:29:36 +01:00
not ok {test-number} - truthy(false) for: Hey, its truthy!
2020-02-02 15:04:19 +01:00
# Regex string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), Matches("this STRING contains 'abc' as a substring") for: "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively
2020-02-02 15:04:19 +01:00
# Regex string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), Matches("contains 'abc' as a substring") for: "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively
2020-02-02 15:04:19 +01:00
# Regex string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), Matches("this string contains 'abc' as a") for: "this string contains 'abc' as a substring" matches "this string contains 'abc' as a" case sensitively
2020-02-02 15:04:19 +01:00
# Regression test #1
2020-02-03 20:29:36 +01:00
ok {test-number} - actual, !UnorderedEquals(expected) for: { 'a', 'b' } not UnorderedEquals: { 'c', 'b' }
2020-02-02 15:04:19 +01:00
# SUCCEED counts as a test pass
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'this is a success'
2020-02-02 15:04:19 +01:00
# SUCCEED does not require an argument
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods
2020-02-03 20:29:36 +01:00
ok {test-number} - before == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods
2020-02-03 20:29:36 +01:00
ok {test-number} - after > before for: 1 > 0
2020-02-02 15:04:19 +01:00
# Scenario: Do that thing with the thing
2020-02-03 20:29:36 +01:00
ok {test-number} - itDoesThis() for: true
2020-02-02 15:04:19 +01:00
# Scenario: Do that thing with the thing
2020-02-03 20:29:36 +01:00
ok {test-number} - itDoesThat() for: true
2020-02-02 15:04:19 +01:00
# Scenario: This is a really long scenario name to see how the list command deals with wrapping
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'boo!'
2020-02-02 15:04:19 +01:00
# Scenario: Vector resizing affects size and capacity
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Scenario: Vector resizing affects size and capacity
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 10 for: 10 == 10
2020-02-02 15:04:19 +01:00
# Scenario: Vector resizing affects size and capacity
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# Scenario: Vector resizing affects size and capacity
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# Scenario: Vector resizing affects size and capacity
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# Scenario: Vector resizing affects size and capacity
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# Scenario: Vector resizing affects size and capacity
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# Scenario: Vector resizing affects size and capacity
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
A string sent directly to stdout
A string sent directly to stderr
A string sent to stderr via clog
# Some simple comparisons between doubles
2020-02-03 20:29:36 +01:00
ok {test-number} - d == Approx( 1.23 ) for: 1.23 == Approx( 1.23 )
2020-02-02 15:04:19 +01:00
# Some simple comparisons between doubles
2020-02-03 20:29:36 +01:00
ok {test-number} - d != Approx( 1.22 ) for: 1.23 != Approx( 1.22 )
2020-02-02 15:04:19 +01:00
# Some simple comparisons between doubles
2020-02-03 20:29:36 +01:00
ok {test-number} - d != Approx( 1.24 ) for: 1.23 != Approx( 1.24 )
2020-02-02 15:04:19 +01:00
# Some simple comparisons between doubles
2020-02-03 20:29:36 +01:00
ok {test-number} - d == 1.23_a for: 1.23 == Approx( 1.23 )
2020-02-02 15:04:19 +01:00
# Some simple comparisons between doubles
2020-02-03 20:29:36 +01:00
ok {test-number} - d != 1.22_a for: 1.23 != Approx( 1.22 )
2020-02-02 15:04:19 +01:00
# Some simple comparisons between doubles
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx( d ) == 1.23 for: Approx( 1.23 ) == 1.23
2020-02-02 15:04:19 +01:00
# Some simple comparisons between doubles
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx( d ) != 1.22 for: Approx( 1.23 ) != 1.22
2020-02-02 15:04:19 +01:00
# Some simple comparisons between doubles
2020-02-03 20:29:36 +01:00
ok {test-number} - Approx( d ) != 1.24 for: Approx( 1.23 ) != 1.24
2020-02-02 15:04:19 +01:00
Message from section one
Message from section two
# StartsWith string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), StartsWith("This String") for: "this string contains 'abc' as a substring" starts with: "This String"
2020-02-02 15:04:19 +01:00
# StartsWith string matcher
2020-02-03 20:29:36 +01:00
not ok {test-number} - testStringForMatching(), StartsWith("string", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" starts with: "string" (case insensitive)
2020-02-02 15:04:19 +01:00
# Static arrays are convertible to string
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify(singular) == "{ 1 }" for: "{ 1 }" == "{ 1 }"
2020-02-02 15:04:19 +01:00
# Static arrays are convertible to string
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify(arr) == "{ 3, 2, 1 }" for: "{ 3, 2, 1 }" == "{ 3, 2, 1 }"
2020-02-02 15:04:19 +01:00
# Static arrays are convertible to string
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify(arr) == R"({ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } })" for: "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }" == "{ { "1:1", "1:2", "1:3" }, { "2:1", "2:2" } }"
2020-02-02 15:04:19 +01:00
# String matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), Contains("string") for: "this string contains 'abc' as a substring" contains: "string"
2020-02-02 15:04:19 +01:00
# String matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), Contains("string", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" contains: "string" (case insensitive)
2020-02-02 15:04:19 +01:00
# String matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), Contains("abc") for: "this string contains 'abc' as a substring" contains: "abc"
2020-02-02 15:04:19 +01:00
# String matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), Contains("aBC", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" contains: "abc" (case insensitive)
2020-02-02 15:04:19 +01:00
# String matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), StartsWith("this") for: "this string contains 'abc' as a substring" starts with: "this"
2020-02-02 15:04:19 +01:00
# String matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), StartsWith("THIS", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" starts with: "this" (case insensitive)
2020-02-02 15:04:19 +01:00
# String matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), EndsWith("substring") for: "this string contains 'abc' as a substring" ends with: "substring"
2020-02-02 15:04:19 +01:00
# String matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - testStringForMatching(), EndsWith(" SuBsTrInG", Catch::CaseSensitive::No) for: "this string contains 'abc' as a substring" ends with: " substring" (case insensitive)
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - empty.empty() for: true
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - empty.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - empty.isNullTerminated() for: true
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - std::strcmp( empty.c_str(), "" ) == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - s.empty() == false for: false == false
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - s.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - s.isNullTerminated() for: true
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - std::strcmp( rawChars, "hello" ) == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - s.c_str()
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - s.c_str() == rawChars for: "hello" == "hello"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - s.data() == rawChars for: "hello" == "hello"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - original == "original"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - !(original.isNullTerminated()) for: !false
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - original.c_str()
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - original.data()
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - ss.empty() == false for: false == false
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - ss.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - std::strncmp( ss.data(), "hello", 5 ) == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - ss == "hello" for: hello == "hello"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - ss.size() == 6 for: 6 == 6
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - std::strcmp( ss.c_str(), "world!" ) == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - s.data() == s2.data() for: "hello world!" == "hello world!"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - s.data() == ss.data() for: "hello world!" == "hello world!"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - s.substr(s.size() + 1, 123).empty() for: true
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - std::strcmp(ss.c_str(), "world!") == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-13 15:01:03 +01:00
ok {test-number} - s.substr(1'000'000, 1).empty() for: true
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - (char*)buffer1 != (char*)buffer2 for: "Hello" != "Hello"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - left == right for: Hello == Hello
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - left != left.substr(0, 3) for: Hello != Hel
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - sr == "a standard string" for: a standard string == "a standard string"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - sr.size() == stdStr.size() for: 17 == 17
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - sr == "a standard string" for: a standard string == "a standard string"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - sr.size() == stdStr.size() for: 17 == 17
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - sr == "a standard string" for: a standard string == "a standard string"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - sr.size() == stdStr.size() for: 17 == 17
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - stdStr == "a stringref" for: "a stringref" == "a stringref"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - stdStr.size() == sr.size() for: 11 == 11
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - stdStr == "a stringref" for: "a stringref" == "a stringref"
2020-02-02 15:04:19 +01:00
# StringRef
2020-02-03 20:29:36 +01:00
ok {test-number} - stdStr.size() == sr.size() for: 11 == 11
2020-05-31 22:30:41 +02:00
# StringRef
ok {test-number} - lhs == "some string += the stringref contents" for: "some string += the stringref contents" == "some string += the stringref contents"
# StringRef
ok {test-number} - together == "abrakadabra" for: "abrakadabra" == "abrakadabra"
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-13 15:01:03 +01:00
ok {test-number} - with 1 message: 'empty.size() == 0'
# StringRef at compilation time
ok {test-number} - with 1 message: 'empty.begin() == empty.end()'
# StringRef at compilation time
ok {test-number} - with 1 message: 'stringref.size() == 3'
# StringRef at compilation time
ok {test-number} - with 1 message: 'stringref.isNullTerminated()'
# StringRef at compilation time
ok {test-number} - with 1 message: 'stringref.data() == abc'
# StringRef at compilation time
ok {test-number} - with 1 message: 'stringref.begin() == abc'
# StringRef at compilation time
ok {test-number} - with 1 message: 'stringref.begin() != stringref.end()'
# StringRef at compilation time
ok {test-number} - with 1 message: 'stringref.substr(10, 0).empty()'
# StringRef at compilation time
ok {test-number} - with 1 message: 'stringref.substr(2, 1).data() == abc + 2'
# StringRef at compilation time
2020-05-10 07:22:11 +02:00
ok {test-number} - with 1 message: 'stringref[1] == 'b''
# StringRef at compilation time
2020-02-13 15:01:03 +01:00
ok {test-number} - with 1 message: 'shortened.size() == 2'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-13 15:01:03 +01:00
ok {test-number} - with 1 message: 'shortened.data() == abc'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-13 15:01:03 +01:00
ok {test-number} - with 1 message: 'shortened.begin() != shortened.end()'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-13 15:01:03 +01:00
ok {test-number} - with 1 message: '!(shortened.isNullTerminated())'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-13 15:01:03 +01:00
ok {test-number} - with 1 message: '!(shortened.substr(1, 3).isNullTerminated())'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: '!(sr1.empty())'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'sr1.size() == 3'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'sr1.isNullTerminated()'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'sr2.empty()'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'sr2.size() == 0'
2020-02-02 15:04:19 +01:00
# StringRef at compilation time
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'sr2.isNullTerminated()'
2020-02-02 15:04:19 +01:00
# Stringifying std::chrono::duration helpers
2020-02-03 20:29:36 +01:00
ok {test-number} - minute == seconds for: 1 m == 60 s
2020-02-02 15:04:19 +01:00
# Stringifying std::chrono::duration helpers
2020-02-03 20:29:36 +01:00
ok {test-number} - hour != seconds for: 1 h != 60 s
2020-02-02 15:04:19 +01:00
# Stringifying std::chrono::duration helpers
2020-02-03 20:29:36 +01:00
ok {test-number} - micro != milli for: 1 us != 1 ms
2020-02-02 15:04:19 +01:00
# Stringifying std::chrono::duration helpers
2020-02-03 20:29:36 +01:00
ok {test-number} - nano != micro for: 1 ns != 1 us
2020-02-02 15:04:19 +01:00
# Stringifying std::chrono::duration with weird ratios
2020-02-03 20:29:36 +01:00
ok {test-number} - half_minute != femto_second for: 1 [30/1]s != 1 fs
2020-02-02 15:04:19 +01:00
# Stringifying std::chrono::duration with weird ratios
2020-02-03 20:29:36 +01:00
ok {test-number} - pico_second != atto_second for: 1 ps != 1 as
2020-02-02 15:04:19 +01:00
# Stringifying std::chrono::time_point<system_clock>
2020-02-03 20:29:36 +01:00
ok {test-number} - now != later for: {iso8601-timestamp} != {iso8601-timestamp}
2020-02-02 15:04:19 +01:00
# Tabs and newlines show in output
2020-02-03 20:29:36 +01:00
not ok {test-number} - s1 == s2 for: "if ($b == 10) { $a = 20; }" == "if ($b == 10) { $a = 20; } "
2020-02-02 15:04:19 +01:00
# Tag alias can be registered against tag patterns
2020-02-03 20:29:36 +01:00
ok {test-number} - what, Contains( "[@zzz]" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "[@zzz]"
2020-02-02 15:04:19 +01:00
# Tag alias can be registered against tag patterns
2020-02-03 20:29:36 +01:00
ok {test-number} - what, Contains( "file" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "file"
2020-02-02 15:04:19 +01:00
# Tag alias can be registered against tag patterns
2020-02-03 20:29:36 +01:00
ok {test-number} - what, Contains( "2" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "2"
2020-02-02 15:04:19 +01:00
# Tag alias can be registered against tag patterns
2020-02-03 20:29:36 +01:00
ok {test-number} - what, Contains( "10" ) for: "error: tag alias, '[@zzz]' already registered. First seen at: file:2 Redefined at: file:10" contains: "10"
2020-02-02 15:04:19 +01:00
# Tag alias can be registered against tag patterns
2020-02-03 20:29:36 +01:00
ok {test-number} - registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) )
2020-02-02 15:04:19 +01:00
# Tag alias can be registered against tag patterns
2020-02-03 20:29:36 +01:00
ok {test-number} - registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) )
2020-02-02 15:04:19 +01:00
# Tag alias can be registered against tag patterns
2020-02-03 20:29:36 +01:00
ok {test-number} - registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) )
2020-02-02 15:04:19 +01:00
# Tag alias can be registered against tag patterns
2020-02-03 20:29:36 +01:00
ok {test-number} - registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) )
2020-02-02 15:04:19 +01:00
# Template test case method with test types specified inside std::tuple - MyTypes - 0
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Template test case method with test types specified inside std::tuple - MyTypes - 1
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# Template test case method with test types specified inside std::tuple - MyTypes - 2
2020-02-03 20:29:36 +01:00
ok {test-number} - Template_Fixture<TestType>::m_a == 1 for: 1.0 == 1
2020-02-02 15:04:19 +01:00
# Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 0
2020-02-03 20:29:36 +01:00
ok {test-number} - sizeof(TestType) > 0 for: 1 > 0
2020-02-02 15:04:19 +01:00
# Template test case with test types specified inside non-copyable and non-movable std::tuple - NonCopyableAndNonMovableTypes - 1
2020-02-03 20:29:36 +01:00
ok {test-number} - sizeof(TestType) > 0 for: 4 > 0
2020-02-02 15:04:19 +01:00
# Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 0
2020-02-03 20:29:36 +01:00
ok {test-number} - sizeof(TestType) > 0 for: 1 > 0
2020-02-02 15:04:19 +01:00
# Template test case with test types specified inside non-default-constructible std::tuple - MyNonDefaultConstructibleTypes - 1
2020-02-03 20:29:36 +01:00
ok {test-number} - sizeof(TestType) > 0 for: 4 > 0
2020-02-02 15:04:19 +01:00
# Template test case with test types specified inside std::tuple - MyTypes - 0
2020-02-03 20:29:36 +01:00
ok {test-number} - sizeof(TestType) > 0 for: 4 > 0
2020-02-02 15:04:19 +01:00
# Template test case with test types specified inside std::tuple - MyTypes - 1
2020-02-03 20:29:36 +01:00
ok {test-number} - sizeof(TestType) > 0 for: 1 > 0
2020-02-02 15:04:19 +01:00
# Template test case with test types specified inside std::tuple - MyTypes - 2
2020-02-03 20:29:36 +01:00
ok {test-number} - sizeof(TestType) > 0 for: 4 > 0
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 10 for: 10 == 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - float
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 10 for: 10 == 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - int
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 10 for: 10 == 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::string
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 10 for: 10 == 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTest: vectors can be sized and resized - std::tuple<int,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 6 == 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 6 >= 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 2 * V for: 12 == 12
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 2 * V for: 12 >= 12
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 6 == 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 6 >= 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 6 >= 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 6 == 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 6 >= 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 6 == 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 2 * V for: 12 >= 12
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 6 == 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 6 >= 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 6 == 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - (std::tuple<int, float>), 6
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 6 >= 6
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 4 == 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 4 >= 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 2 * V for: 8 == 8
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 2 * V for: 8 >= 8
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 4 == 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 4 >= 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 4 >= 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 4 == 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 4 >= 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 4 == 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 2 * V for: 8 >= 8
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 4 == 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 4 >= 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 4 == 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - float,4
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 4 >= 4
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 2 * V for: 10 == 10
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 2 * V for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 2 * V for: 10 >= 10
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 5 == 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - int,5
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 5 >= 5
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 15 == 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 15 >= 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 2 * V for: 30 == 30
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 2 * V for: 30 >= 30
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 15 == 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 15 >= 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 15 >= 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 15 == 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 15 >= 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 15 == 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 2 * V for: 30 >= 30
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 15 == 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 15 >= 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == V for: 15 == 15
2020-02-02 15:04:19 +01:00
# TemplateTestSig: vectors can be sized and resized - std::string,15
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= V for: 15 >= 15
2020-02-02 15:04:19 +01:00
# Test case with one argument
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'no assertions'
2020-02-02 15:04:19 +01:00
# Test enum bit values
2020-02-03 20:29:36 +01:00
ok {test-number} - 0x<hex digits> == bit30and31 for: 3221225472 (0x<hex digits>) == 3221225472
2020-02-02 15:04:19 +01:00
# Test with special, characters "in name
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# The NO_FAIL macro reports a failure but does not fail the test
2020-02-03 20:29:36 +01:00
ok {test-number} - 1 == 2 # TODO
2020-02-02 15:04:19 +01:00
# This test 'should' fail but doesn't
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'oops!'
2020-02-02 15:04:19 +01:00
# Thrown string literals are translated
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'For some reason someone is throwing a string literal!'
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isSuccessfullyCompleted() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isComplete() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - ctx.completedCycle() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isSuccessfullyCompleted() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isComplete() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isSuccessfullyCompleted() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isComplete() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - ctx.completedCycle() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isSuccessfullyCompleted() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase2.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1b.isOpen() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - ctx.completedCycle() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isComplete() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isSuccessfullyCompleted() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isComplete() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isSuccessfullyCompleted() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isComplete() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - ctx.completedCycle() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isSuccessfullyCompleted() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase2.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1b.isOpen() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - ctx.completedCycle() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isComplete() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isSuccessfullyCompleted() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2.isOpen() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isComplete() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase2.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1b.isOpen() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2b.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - ctx.completedCycle() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - ctx.completedCycle() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2b.isSuccessfullyCompleted() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase2.isComplete() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase2.isSuccessfullyCompleted() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2.isOpen() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isComplete() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase2.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1b.isOpen() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2b.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - ctx.completedCycle() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - ctx.completedCycle() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2b.isComplete() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2b.isSuccessfullyCompleted() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase2.isSuccessfullyCompleted() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase3.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1c.isOpen() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2c.isOpen() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase3.isSuccessfullyCompleted() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2.isOpen() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s2.isComplete() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isComplete() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - s1.isComplete() for: true
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isComplete() == false for: false == false
2020-02-02 15:04:19 +01:00
# Tracker
2020-02-03 20:29:36 +01:00
ok {test-number} - testCase.isComplete() for: true
2020-02-02 15:04:19 +01:00
# Trim strings
2020-02-03 20:29:36 +01:00
ok {test-number} - trim(std::string(no_whitespace)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
2020-02-02 15:04:19 +01:00
# Trim strings
2020-02-03 20:29:36 +01:00
ok {test-number} - trim(std::string(leading_whitespace)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
2020-02-02 15:04:19 +01:00
# Trim strings
2020-02-03 20:29:36 +01:00
ok {test-number} - trim(std::string(trailing_whitespace)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
2020-02-02 15:04:19 +01:00
# Trim strings
2020-02-03 20:29:36 +01:00
ok {test-number} - trim(std::string(whitespace_at_both_ends)) == no_whitespace for: "There is no extra whitespace here" == "There is no extra whitespace here"
2020-02-02 15:04:19 +01:00
# Trim strings
2020-02-03 20:29:36 +01:00
ok {test-number} - trim(StringRef(no_whitespace)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
2020-02-02 15:04:19 +01:00
# Trim strings
2020-02-03 20:29:36 +01:00
ok {test-number} - trim(StringRef(leading_whitespace)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
2020-02-02 15:04:19 +01:00
# Trim strings
2020-02-03 20:29:36 +01:00
ok {test-number} - trim(StringRef(trailing_whitespace)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
2020-02-02 15:04:19 +01:00
# Trim strings
2020-02-03 20:29:36 +01:00
ok {test-number} - trim(StringRef(whitespace_at_both_ends)) == StringRef(no_whitespace) for: There is no extra whitespace here == There is no extra whitespace here
2020-02-02 15:04:19 +01:00
# Unexpected exceptions can be translated
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: '3.14'
2020-05-24 23:41:02 +02:00
# Upcasting special member functions
ok {test-number} - bptr->i == 3 for: 3 == 3
# Upcasting special member functions
ok {test-number} - bptr->i == 3 for: 3 == 3
2020-03-09 11:13:07 +01:00
# Usage of the SizeIs range matcher
ok {test-number} - empty_vec, SizeIs(0) for: { } has size == 0
# Usage of the SizeIs range matcher
ok {test-number} - empty_vec, !SizeIs(2) for: { } not has size == 2
# Usage of the SizeIs range matcher
ok {test-number} - empty_vec, SizeIs(Lt(2)) for: { } size matches is less than 2
# Usage of the SizeIs range matcher
ok {test-number} - arr, SizeIs(2) for: { 0, 0 } has size == 2
# Usage of the SizeIs range matcher
ok {test-number} - arr, SizeIs( Lt(3)) for: { 0, 0 } size matches is less than 3
# Usage of the SizeIs range matcher
ok {test-number} - arr, !SizeIs(!Lt(3)) for: { 0, 0 } not size matches not is less than 3
# Usage of the SizeIs range matcher
ok {test-number} - map, SizeIs(3) for: { {?}, {?}, {?} } has size == 3
# Usage of the SizeIs range matcher
ok {test-number} - unrelated::ADL_size{}, SizeIs(12) for: {?} has size == 12
# Usage of the SizeIs range matcher
ok {test-number} - has_size{}, SizeIs(13) for: {?} has size == 13
2020-02-02 15:04:19 +01:00
# Use a custom approx
2020-02-03 20:29:36 +01:00
ok {test-number} - d == approx( 1.23 ) for: 1.23 == Approx( 1.23 )
2020-02-02 15:04:19 +01:00
# Use a custom approx
2020-02-03 20:29:36 +01:00
ok {test-number} - d == approx( 1.22 ) for: 1.23 == Approx( 1.22 )
2020-02-02 15:04:19 +01:00
# Use a custom approx
2020-02-03 20:29:36 +01:00
ok {test-number} - d == approx( 1.24 ) for: 1.23 == Approx( 1.24 )
2020-02-02 15:04:19 +01:00
# Use a custom approx
2020-02-03 20:29:36 +01:00
ok {test-number} - d != approx( 1.25 ) for: 1.23 != Approx( 1.25 )
2020-02-02 15:04:19 +01:00
# Use a custom approx
2020-02-03 20:29:36 +01:00
ok {test-number} - approx( d ) == 1.23 for: Approx( 1.23 ) == 1.23
2020-02-02 15:04:19 +01:00
# Use a custom approx
2020-02-03 20:29:36 +01:00
ok {test-number} - approx( d ) == 1.22 for: Approx( 1.23 ) == 1.22
2020-02-02 15:04:19 +01:00
# Use a custom approx
2020-02-03 20:29:36 +01:00
ok {test-number} - approx( d ) == 1.24 for: Approx( 1.23 ) == 1.24
2020-02-02 15:04:19 +01:00
# Use a custom approx
2020-02-03 20:29:36 +01:00
ok {test-number} - approx( d ) != 1.25 for: Approx( 1.23 ) != 1.25
2020-02-02 15:04:19 +01:00
# Variadic macros
2020-02-03 20:29:36 +01:00
ok {test-number} - with 1 message: 'no assertions'
2020-02-02 15:04:19 +01:00
# Vector Approx matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - empty, Approx(empty) for: { } is approx: { }
2020-02-02 15:04:19 +01:00
# Vector Approx matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - v1, Approx(v1) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
2020-02-02 15:04:19 +01:00
# Vector Approx matcher
2020-04-16 15:36:54 +02:00
ok {test-number} - v1, Approx<double>({ 1., 2., 3. }) for: { 1.0, 2.0, 3.0 } is approx: { 1.0, 2.0, 3.0 }
# Vector Approx matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - v1, !Approx(temp) for: { 1.0, 2.0, 3.0 } not is approx: { 1.0, 2.0, 3.0, 4.0 }
2020-02-02 15:04:19 +01:00
# Vector Approx matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - v1, !Approx(v2) for: { 1.0, 2.0, 3.0 } not is approx: { 1.5, 2.5, 3.5 }
2020-02-02 15:04:19 +01:00
# Vector Approx matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - v1, Approx(v2).margin(0.5) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
2020-02-02 15:04:19 +01:00
# Vector Approx matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - v1, Approx(v2).epsilon(0.5) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
2020-02-02 15:04:19 +01:00
# Vector Approx matcher
2020-02-03 20:29:36 +01:00
ok {test-number} - v1, Approx(v2).epsilon(0.1).scale(500) for: { 1.0, 2.0, 3.0 } is approx: { 1.5, 2.5, 3.5 }
2020-02-02 15:04:19 +01:00
# Vector Approx matcher -- failing
2020-02-03 20:29:36 +01:00
not ok {test-number} - empty, Approx(t1) for: { } is approx: { 1.0, 2.0 }
2020-02-02 15:04:19 +01:00
# Vector Approx matcher -- failing
2020-02-03 20:29:36 +01:00
not ok {test-number} - v1, Approx(v2) for: { 2.0, 4.0, 6.0 } is approx: { 1.0, 3.0, 5.0 }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - v, VectorContains(1) for: { 1, 2, 3 } Contains: 1
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - v, VectorContains(2) for: { 1, 2, 3 } Contains: 2
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-04-16 15:36:54 +02:00
ok {test-number} - v5, (VectorContains<int, CustomAllocator<int>>(2)) for: { 1, 2, 3 } Contains: 2
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - v, Contains(v2) for: { 1, 2, 3 } Contains: { 1, 2 }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-04-16 15:36:54 +02:00
ok {test-number} - v, Contains<int>({ 1, 2 }) for: { 1, 2, 3 } Contains: { 1, 2 }
# Vector matchers
ok {test-number} - v5, (Contains<int, std::allocator<int>, CustomAllocator<int>>(v2)) for: { 1, 2, 3 } Contains: { 1, 2 }
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - v, Contains(v2) for: { 1, 2, 3 } Contains: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - v, Contains(empty) for: { 1, 2, 3 } Contains: { }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - empty, Contains(empty) for: { } Contains: { }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-04-16 15:36:54 +02:00
ok {test-number} - v5, (Contains<int, std::allocator<int>, CustomAllocator<int>>(v2)) for: { 1, 2, 3 } Contains: { 1, 2, 3 }
# Vector matchers
ok {test-number} - v5, Contains(v6) for: { 1, 2, 3 } Contains: { 1, 2 }
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - v, VectorContains(1) && VectorContains(2) for: { 1, 2, 3 } ( Contains: 1 and Contains: 2 )
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - v, Equals(v) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - empty, Equals(empty) for: { } Equals: { }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-04-16 15:36:54 +02:00
ok {test-number} - v, Equals<int>({ 1, 2, 3 }) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - v, Equals(v2) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-04-16 15:36:54 +02:00
ok {test-number} - v5, (Equals<int, std::allocator<int>, CustomAllocator<int>>(v2)) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
# Vector matchers
ok {test-number} - v5, Equals(v6) for: { 1, 2, 3 } Equals: { 1, 2, 3 }
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - v, UnorderedEquals(v) for: { 1, 2, 3 } UnorderedEquals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-04-16 15:36:54 +02:00
ok {test-number} - v, UnorderedEquals<int>({ 3, 2, 1 }) for: { 1, 2, 3 } UnorderedEquals: { 3, 2, 1 }
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - empty, UnorderedEquals(empty) for: { } UnorderedEquals: { }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - permuted, UnorderedEquals(v) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers
2020-02-03 20:29:36 +01:00
ok {test-number} - permuted, UnorderedEquals(v) for: { 2, 3, 1 } UnorderedEquals: { 1, 2, 3 }
2020-04-16 15:36:54 +02:00
# Vector matchers
ok {test-number} - v5, (UnorderedEquals<int, std::allocator<int>, CustomAllocator<int>>(permuted)) for: { 1, 2, 3 } UnorderedEquals: { 2, 3, 1 }
# Vector matchers
ok {test-number} - v5_permuted, UnorderedEquals(v5) for: { 1, 3, 2 } UnorderedEquals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - v, VectorContains(-1) for: { 1, 2, 3 } Contains: -1
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - empty, VectorContains(1) for: { } Contains: 1
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - empty, Contains(v) for: { } Contains: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - v, Contains(v2) for: { 1, 2, 3 } Contains: { 1, 2, 4 }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - v, Equals(v2) for: { 1, 2, 3 } Equals: { 1, 2 }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - v2, Equals(v) for: { 1, 2 } Equals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - empty, Equals(v) for: { } Equals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - v, Equals(empty) for: { 1, 2, 3 } Equals: { }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - v, UnorderedEquals(empty) for: { 1, 2, 3 } UnorderedEquals: { }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - empty, UnorderedEquals(v) for: { } UnorderedEquals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - permuted, UnorderedEquals(v) for: { 1, 3 } UnorderedEquals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# Vector matchers that fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - permuted, UnorderedEquals(v) for: { 3, 1 } UnorderedEquals: { 1, 2, 3 }
2020-02-02 15:04:19 +01:00
# When checked exceptions are thrown they can be expected or unexpected
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows(), std::domain_error
2020-02-02 15:04:19 +01:00
# When checked exceptions are thrown they can be expected or unexpected
2020-02-03 20:29:36 +01:00
ok {test-number} - thisDoesntThrow()
2020-02-02 15:04:19 +01:00
# When checked exceptions are thrown they can be expected or unexpected
2020-02-03 20:29:36 +01:00
ok {test-number} - thisThrows()
2020-02-02 15:04:19 +01:00
# When unchecked exceptions are thrown directly they are always failures
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'unexpected exception'
2020-02-02 15:04:19 +01:00
# When unchecked exceptions are thrown during a CHECK the test should continue
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows() == 0
2020-02-02 15:04:19 +01:00
# When unchecked exceptions are thrown during a REQUIRE the test should abort fail
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows() == 0
2020-02-02 15:04:19 +01:00
# When unchecked exceptions are thrown from functions they are always failures
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'expected exception'; expression was: thisThrows() == 0
2020-02-02 15:04:19 +01:00
# When unchecked exceptions are thrown from sections they are always failures
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'unexpected exception'
2020-02-02 15:04:19 +01:00
# Where the LHS is not a simple value
2020-02-13 14:22:18 +01:00
warning {test-number} - 'Uncomment the code in this test to check that it gives a sensible compiler error'
2020-02-02 15:04:19 +01:00
# Where there is more to the expression after the RHS
2020-02-13 14:22:18 +01:00
warning {test-number} - 'Uncomment the code in this test to check that it gives a sensible compiler error'
2020-02-02 15:04:19 +01:00
# X/level/0/a
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# X/level/0/b
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# X/level/1/a
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# X/level/1/b
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( "normal string" ) == "normal string" for: "normal string" == "normal string"
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( "" ) == "" for: "" == ""
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( "smith & jones" ) == "smith & jones" for: "smith & jones" == "smith & jones"
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( "smith < jones" ) == "smith < jones" for: "smith < jones" == "smith < jones"
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( "smith > jones" ) == "smith > jones" for: "smith > jones" == "smith > jones"
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( "smith ]]> jones" ) == "smith ]]> jones" for: "smith ]]> jones" == "smith ]]> jones"
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( stringWithQuotes ) == stringWithQuotes for: "don't "quote" me on that" == "don't "quote" me on that"
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't "quote" me on that" for: "don't "quote" me on that" == "don't "quote" me on that"
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( "[\x01]" ) == "[\\x01]" for: "[\x01]" == "[\x01]"
2020-02-02 15:04:19 +01:00
# XmlEncode
2020-02-03 20:29:36 +01:00
ok {test-number} - encode( "[\x7F]" ) == "[\\x7F]" for: "[\x7F]" == "[\x7F]"
2020-02-03 18:08:15 +01:00
# analyse no analysis
ok {test-number} - analysis.mean.point.count() == 23 for: 23.0 == 23
# analyse no analysis
ok {test-number} - analysis.mean.lower_bound.count() == 23 for: 23.0 == 23
# analyse no analysis
ok {test-number} - analysis.mean.upper_bound.count() == 23 for: 23.0 == 23
# analyse no analysis
ok {test-number} - analysis.standard_deviation.point.count() == 0 for: 0.0 == 0
# analyse no analysis
ok {test-number} - analysis.standard_deviation.lower_bound.count() == 0 for: 0.0 == 0
# analyse no analysis
ok {test-number} - analysis.standard_deviation.upper_bound.count() == 0 for: 0.0 == 0
# analyse no analysis
ok {test-number} - analysis.outliers.total() == 0 for: 0 == 0
# analyse no analysis
ok {test-number} - analysis.outliers.low_mild == 0 for: 0 == 0
# analyse no analysis
ok {test-number} - analysis.outliers.low_severe == 0 for: 0 == 0
# analyse no analysis
ok {test-number} - analysis.outliers.high_mild == 0 for: 0 == 0
# analyse no analysis
ok {test-number} - analysis.outliers.high_severe == 0 for: 0 == 0
# analyse no analysis
ok {test-number} - analysis.outliers.samples_seen == 0 for: 0 == 0
# analyse no analysis
ok {test-number} - analysis.outlier_variance == 0 for: 0.0 == 0
2020-02-02 15:04:19 +01:00
# array<int, N> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify( empty ) == "{ }" for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# array<int, N> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify( oneValue ) == "{ 42 }" for: "{ 42 }" == "{ 42 }"
2020-02-02 15:04:19 +01:00
# array<int, N> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify( twoValues ) == "{ 42, 250 }" for: "{ 42, 250 }" == "{ 42, 250 }"
2020-02-02 15:04:19 +01:00
# atomic if
2020-02-03 20:29:36 +01:00
ok {test-number} - x == 0 for: 0 == 0
2020-02-03 18:08:15 +01:00
# benchmark function call
ok {test-number} - model.started == 1 for: 1 == 1
# benchmark function call
ok {test-number} - model.finished == 0 for: 0 == 0
# benchmark function call
ok {test-number} - model.started == 1 for: 1 == 1
# benchmark function call
ok {test-number} - model.finished == 1 for: 1 == 1
# benchmark function call
ok {test-number} - called == 1 for: 1 == 1
# benchmark function call
ok {test-number} - model.started == 0 for: 0 == 0
# benchmark function call
ok {test-number} - model.finished == 0 for: 0 == 0
# benchmark function call
ok {test-number} - model.started == 0 for: 0 == 0
# benchmark function call
ok {test-number} - model.finished == 0 for: 0 == 0
# benchmark function call
ok {test-number} - called == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# boolean member
2020-02-03 20:29:36 +01:00
ok {test-number} - obj.prop != 0 for: 0x<hex digits> != 0
2020-02-02 15:04:19 +01:00
# checkedElse
2020-02-03 20:29:36 +01:00
ok {test-number} - flag for: true
2020-02-02 15:04:19 +01:00
# checkedElse
2020-02-03 20:29:36 +01:00
ok {test-number} - testCheckedElse( true ) for: true
2020-02-02 15:04:19 +01:00
# checkedElse, failing
2020-02-03 20:29:36 +01:00
not ok {test-number} - flag for: false
2020-02-02 15:04:19 +01:00
# checkedElse, failing
2020-02-03 20:29:36 +01:00
not ok {test-number} - testCheckedElse( false ) for: false
2020-02-02 15:04:19 +01:00
# checkedIf
2020-02-03 20:29:36 +01:00
ok {test-number} - flag for: true
2020-02-02 15:04:19 +01:00
# checkedIf
2020-02-03 20:29:36 +01:00
ok {test-number} - testCheckedIf( true ) for: true
2020-02-02 15:04:19 +01:00
# checkedIf, failing
2020-02-03 20:29:36 +01:00
not ok {test-number} - flag for: false
2020-02-02 15:04:19 +01:00
# checkedIf, failing
2020-02-03 20:29:36 +01:00
not ok {test-number} - testCheckedIf( false ) for: false
2020-02-03 18:08:15 +01:00
# classify_outliers
ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
# classify_outliers
ok {test-number} - o.low_severe == los for: 0 == 0
# classify_outliers
ok {test-number} - o.low_mild == lom for: 0 == 0
# classify_outliers
ok {test-number} - o.high_mild == him for: 0 == 0
# classify_outliers
ok {test-number} - o.high_severe == his for: 0 == 0
# classify_outliers
ok {test-number} - o.total() == los + lom + him + his for: 0 == 0
# classify_outliers
ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
# classify_outliers
ok {test-number} - o.low_severe == los for: 1 == 1
# classify_outliers
ok {test-number} - o.low_mild == lom for: 0 == 0
# classify_outliers
ok {test-number} - o.high_mild == him for: 0 == 0
# classify_outliers
ok {test-number} - o.high_severe == his for: 0 == 0
# classify_outliers
ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
# classify_outliers
ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
# classify_outliers
ok {test-number} - o.low_severe == los for: 0 == 0
# classify_outliers
ok {test-number} - o.low_mild == lom for: 1 == 1
# classify_outliers
ok {test-number} - o.high_mild == him for: 0 == 0
# classify_outliers
ok {test-number} - o.high_severe == his for: 0 == 0
# classify_outliers
ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
# classify_outliers
ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
# classify_outliers
ok {test-number} - o.low_severe == los for: 0 == 0
# classify_outliers
ok {test-number} - o.low_mild == lom for: 0 == 0
# classify_outliers
ok {test-number} - o.high_mild == him for: 1 == 1
# classify_outliers
ok {test-number} - o.high_severe == his for: 0 == 0
# classify_outliers
ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
# classify_outliers
ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
# classify_outliers
ok {test-number} - o.low_severe == los for: 0 == 0
# classify_outliers
ok {test-number} - o.low_mild == lom for: 0 == 0
# classify_outliers
ok {test-number} - o.high_mild == him for: 0 == 0
# classify_outliers
ok {test-number} - o.high_severe == his for: 1 == 1
# classify_outliers
ok {test-number} - o.total() == los + lom + him + his for: 1 == 1
# classify_outliers
ok {test-number} - o.samples_seen == static_cast<int>(x.size()) for: 6 == 6
# classify_outliers
ok {test-number} - o.low_severe == los for: 1 == 1
# classify_outliers
ok {test-number} - o.low_mild == lom for: 0 == 0
# classify_outliers
ok {test-number} - o.high_mild == him for: 1 == 1
# classify_outliers
ok {test-number} - o.high_severe == his for: 0 == 0
# classify_outliers
ok {test-number} - o.total() == los + lom + him + his for: 2 == 2
2020-02-02 15:04:19 +01:00
# comparisons between const int variables
2020-02-03 20:29:36 +01:00
ok {test-number} - unsigned_char_var == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# comparisons between const int variables
2020-02-03 20:29:36 +01:00
ok {test-number} - unsigned_short_var == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# comparisons between const int variables
2020-02-03 20:29:36 +01:00
ok {test-number} - unsigned_int_var == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# comparisons between const int variables
2020-02-03 20:29:36 +01:00
ok {test-number} - unsigned_long_var == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# comparisons between int variables
2020-02-03 20:29:36 +01:00
ok {test-number} - long_var == unsigned_char_var for: 1 == 1
2020-02-02 15:04:19 +01:00
# comparisons between int variables
2020-02-03 20:29:36 +01:00
ok {test-number} - long_var == unsigned_short_var for: 1 == 1
2020-02-02 15:04:19 +01:00
# comparisons between int variables
2020-02-03 20:29:36 +01:00
ok {test-number} - long_var == unsigned_int_var for: 1 == 1
2020-02-02 15:04:19 +01:00
# comparisons between int variables
2020-02-03 20:29:36 +01:00
ok {test-number} - long_var == unsigned_long_var for: 1 == 1
2020-02-03 18:08:15 +01:00
# erfc_inv
ok {test-number} - erfc_inv(1.103560) == Approx(-0.09203687623843015) for: -0.0920368762 == Approx( -0.0920368762 )
# erfc_inv
ok {test-number} - erfc_inv(1.067400) == Approx(-0.05980291115763361) for: -0.0598029112 == Approx( -0.0598029112 )
# erfc_inv
ok {test-number} - erfc_inv(0.050000) == Approx(1.38590382434967796) for: 1.3859038243 == Approx( 1.3859038243 )
# estimate_clock_resolution
ok {test-number} - res.mean.count() == rate for: 2000.0 == 2000 (0x<hex digits>)
# estimate_clock_resolution
ok {test-number} - res.outliers.total() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# even more nested SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# even more nested SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# even more nested SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
loose text artifact
# just failure
2020-02-03 20:29:36 +01:00
not ok {test-number} - explicitly with 1 message: 'Previous info should not be seen'
2020-02-02 15:04:19 +01:00
# just failure after unscoped info
2020-02-03 20:29:36 +01:00
not ok {test-number} - explicitly with 1 message: 'previous unscoped info SHOULD not be seen'
2020-02-02 15:04:19 +01:00
# long long
2020-02-03 20:29:36 +01:00
ok {test-number} - l == std::numeric_limits<long long>::max() for: 9223372036854775807 (0x<hex digits>) == 9223372036854775807 (0x<hex digits>)
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
not ok {test-number} - b > a for: 0 > 1
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
not ok {test-number} - b > a for: 1 > 1
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b > a for: 2 > 1
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b > a for: 3 > 1
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b > a for: 4 > 1
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b > a for: 5 > 1
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b > a for: 6 > 1
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b > a for: 7 > 1
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b > a for: 8 > 1
2020-02-02 15:04:19 +01:00
# looped SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b > a for: 9 > 1
2020-02-02 15:04:19 +01:00
# looped tests
2020-02-03 20:29:36 +01:00
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[0] (1) is even'
2020-02-02 15:04:19 +01:00
# looped tests
2020-02-03 20:29:36 +01:00
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[1] (1) is even'
2020-02-02 15:04:19 +01:00
# looped tests
2020-02-03 20:29:36 +01:00
ok {test-number} - ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if fib[2] (2) is even'
2020-02-02 15:04:19 +01:00
# looped tests
2020-02-03 20:29:36 +01:00
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[3] (3) is even'
2020-02-02 15:04:19 +01:00
# looped tests
2020-02-03 20:29:36 +01:00
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[4] (5) is even'
2020-02-02 15:04:19 +01:00
# looped tests
2020-02-03 20:29:36 +01:00
ok {test-number} - ( fib[i] % 2 ) == 0 for: 0 == 0 with 1 message: 'Testing if fib[5] (8) is even'
2020-02-02 15:04:19 +01:00
# looped tests
2020-02-03 20:29:36 +01:00
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[6] (13) is even'
2020-02-02 15:04:19 +01:00
# looped tests
2020-02-03 20:29:36 +01:00
not ok {test-number} - ( fib[i] % 2 ) == 0 for: 1 == 0 with 1 message: 'Testing if fib[7] (21) is even'
2020-05-24 23:41:02 +02:00
# make_unique reimplementation
ok {test-number} - !(lval.has_moved) for: !false
# make_unique reimplementation
ok {test-number} - rval.has_moved for: true
# make_unique reimplementation
ok {test-number} - *ptr == std::tuple<int, double, int>{1, 2., 3} for: {?} == {?}
2020-02-03 18:08:15 +01:00
# mean
ok {test-number} - m == 19. for: 19.0 == 19.0
# measure
ok {test-number} - x == 17 for: 17 == 17
# measure
ok {test-number} - x == 23 for: 23 == 23
# measure
ok {test-number} - r.elapsed.count() == 42 for: 42 == 42
# measure
ok {test-number} - r.result == 23 for: 23 == 23
# measure
ok {test-number} - r.iterations == 1 for: 1 == 1
# measure
ok {test-number} - s.elapsed.count() == 69 for: 69 == 69
# measure
ok {test-number} - s.result == 17 for: 17 == 17
# measure
ok {test-number} - s.iterations == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# mix info, unscoped info and warning
2020-02-13 14:22:18 +01:00
warning {test-number} - 'info' with 2 messages: 'unscoped info' and 'and warn may mix'
2020-02-02 15:04:19 +01:00
# mix info, unscoped info and warning
2020-02-13 14:22:18 +01:00
warning {test-number} - 'info' with 2 messages: 'unscoped info' and 'they are not cleared after warnings'
2020-02-02 15:04:19 +01:00
# more nested SECTION tests
2020-02-03 20:29:36 +01:00
not ok {test-number} - a == b for: 1 == 2
2020-02-02 15:04:19 +01:00
# more nested SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - a != b for: 1 != 2
2020-02-02 15:04:19 +01:00
# more nested SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - a < b for: 1 < 2
2020-02-02 15:04:19 +01:00
# nested SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - a != b for: 1 != 2
2020-02-02 15:04:19 +01:00
# nested SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b != a for: 2 != 1
2020-02-02 15:04:19 +01:00
# nested SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - a != b for: 1 != 2
2020-02-02 15:04:19 +01:00
# non streamable - with conv. op
2020-02-03 20:29:36 +01:00
ok {test-number} - s == "7" for: "7" == "7"
2020-02-02 15:04:19 +01:00
# non-copyable objects
2020-02-03 20:29:36 +01:00
ok {test-number} - ti == typeid(int) for: {?} == {?}
2020-02-03 18:08:15 +01:00
# normal_cdf
ok {test-number} - normal_cdf(0.000000) == Approx(0.50000000000000000) for: 0.5 == Approx( 0.5 )
# normal_cdf
ok {test-number} - normal_cdf(1.000000) == Approx(0.84134474606854293) for: 0.8413447461 == Approx( 0.8413447461 )
# normal_cdf
ok {test-number} - normal_cdf(-1.000000) == Approx(0.15865525393145705) for: 0.1586552539 == Approx( 0.1586552539 )
# normal_cdf
ok {test-number} - normal_cdf(2.809729) == Approx(0.99752083845315409) for: 0.9975208385 == Approx( 0.9975208385 )
# normal_cdf
ok {test-number} - normal_cdf(-1.352570) == Approx(0.08809652095066035) for: 0.088096521 == Approx( 0.088096521 )
# normal_quantile
ok {test-number} - normal_quantile(0.551780) == Approx(0.13015979861484198) for: 0.1301597986 == Approx( 0.1301597986 )
# normal_quantile
ok {test-number} - normal_quantile(0.533700) == Approx(0.08457408802851875) for: 0.084574088 == Approx( 0.084574088 )
# normal_quantile
ok {test-number} - normal_quantile(0.025000) == Approx(-1.95996398454005449) for: -1.9599639845 == Approx( -1.9599639845 )
2020-02-02 15:04:19 +01:00
# not allowed
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# not prints unscoped info from previous failures
2020-02-03 20:29:36 +01:00
ok {test-number} - true with 1 message: 'this MAY be seen only for the FIRST assertion IF info is printed for passing assertions'
2020-02-02 15:04:19 +01:00
# not prints unscoped info from previous failures
2020-02-03 20:29:36 +01:00
ok {test-number} - true with 1 message: 'this MAY be seen only for the SECOND assertion IF info is printed for passing assertions'
2020-02-02 15:04:19 +01:00
# not prints unscoped info from previous failures
2020-02-03 20:29:36 +01:00
not ok {test-number} - false with 1 message: 'this SHOULD be seen'
2020-02-02 15:04:19 +01:00
# null strings
2020-02-03 20:29:36 +01:00
ok {test-number} - makeString( false ) != static_cast<char*>(0) for: "valid string" != {null string}
2020-02-02 15:04:19 +01:00
# null strings
2020-02-03 20:29:36 +01:00
ok {test-number} - makeString( true ) == static_cast<char*>(0) for: {null string} == {null string}
2020-02-02 15:04:19 +01:00
# null_ptr
2020-02-03 20:29:36 +01:00
ok {test-number} - ptr.get() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# pair<pair<int,const char *,pair<std::string,int> > -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" for: "{ { 42, "Arthur" }, { "Ford", 24 } }" == "{ { 42, "Arthur" }, { "Ford", 24 } }"
2020-02-02 15:04:19 +01:00
# parseEnums
2020-02-03 20:29:36 +01:00
ok {test-number} - parseEnums( "" ), Equals( std::vector<Catch::StringRef>{} ) for: { } Equals: { }
2020-02-02 15:04:19 +01:00
# parseEnums
2020-02-03 20:29:36 +01:00
ok {test-number} - parseEnums( "ClassName::EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) for: { Value1 } Equals: { Value1 }
2020-02-02 15:04:19 +01:00
# parseEnums
2020-02-03 20:29:36 +01:00
ok {test-number} - parseEnums( "Value1" ), Equals( std::vector<Catch::StringRef>{"Value1"} ) for: { Value1 } Equals: { Value1 }
2020-02-02 15:04:19 +01:00
# parseEnums
2020-02-03 20:29:36 +01:00
ok {test-number} - parseEnums( "EnumName::Value1" ), Equals(std::vector<Catch::StringRef>{"Value1"} ) for: { Value1 } Equals: { Value1 }
2020-02-02 15:04:19 +01:00
# parseEnums
2020-02-03 20:29:36 +01:00
ok {test-number} - parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2"} ) for: { Value1, Value2 } Equals: { Value1, Value2 }
2020-02-02 15:04:19 +01:00
# parseEnums
2020-02-03 20:29:36 +01:00
ok {test-number} - parseEnums( "ClassName::EnumName::Value1, ClassName::EnumName::Value2, ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) for: { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
2020-02-02 15:04:19 +01:00
# parseEnums
2020-02-03 20:29:36 +01:00
ok {test-number} - parseEnums( "ClassName::EnumName::Value1,ClassName::EnumName::Value2 , ClassName::EnumName::Value3" ), Equals( std::vector<Catch::StringRef>{"Value1", "Value2", "Value3"} ) for: { Value1, Value2, Value3 } Equals: { Value1, Value2, Value3 }
2020-02-02 15:04:19 +01:00
# pointer to class
2020-02-03 20:29:36 +01:00
ok {test-number} - p == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# print unscoped info if passing unscoped info is printed
2020-02-03 20:29:36 +01:00
ok {test-number} - true with 1 message: 'this MAY be seen IF info is printed for passing assertions'
2020-02-02 15:04:19 +01:00
# prints unscoped info on failure
2020-02-03 20:29:36 +01:00
not ok {test-number} - false with 2 messages: 'this SHOULD be seen' and 'this SHOULD also be seen'
2020-02-02 15:04:19 +01:00
# prints unscoped info only for the first assertion
2020-02-03 20:29:36 +01:00
not ok {test-number} - false with 1 message: 'this SHOULD be seen only ONCE'
2020-02-02 15:04:19 +01:00
# prints unscoped info only for the first assertion
2020-02-03 20:29:36 +01:00
ok {test-number} - true
2020-02-02 15:04:19 +01:00
# prints unscoped info only for the first assertion
2020-02-03 20:29:36 +01:00
ok {test-number} - true with 1 message: 'this MAY also be seen only ONCE IF info is printed for passing assertions'
2020-02-02 15:04:19 +01:00
# prints unscoped info only for the first assertion
2020-02-03 20:29:36 +01:00
ok {test-number} - true
2020-02-02 15:04:19 +01:00
# random SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - a != b for: 1 != 2
2020-02-02 15:04:19 +01:00
# random SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - b != a for: 2 != 1
2020-02-02 15:04:19 +01:00
# random SECTION tests
2020-02-03 20:29:36 +01:00
ok {test-number} - a != b for: 1 != 2
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::replaceInPlace(letters, "b", "z") for: true
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - letters == "azcdefcg" for: "azcdefcg" == "azcdefcg"
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::replaceInPlace(letters, "c", "z") for: true
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - letters == "abzdefzg" for: "abzdefzg" == "abzdefzg"
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::replaceInPlace(letters, "a", "z") for: true
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - letters == "zbcdefcg" for: "zbcdefcg" == "zbcdefcg"
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::replaceInPlace(letters, "g", "z") for: true
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - letters == "abcdefcz" for: "abcdefcz" == "abcdefcz"
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::replaceInPlace(letters, letters, "replaced") for: true
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - letters == "replaced" for: "replaced" == "replaced"
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - !(Catch::replaceInPlace(letters, "x", "z")) for: !false
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - letters == letters for: "abcdefcg" == "abcdefcg"
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::replaceInPlace(s, "'", "|'") for: true
2020-02-02 15:04:19 +01:00
# replaceInPlace
2020-02-03 20:29:36 +01:00
ok {test-number} - s == "didn|'t" for: "didn|'t" == "didn|'t"
2020-02-03 18:08:15 +01:00
# resolution
ok {test-number} - res.size() == count for: 10 == 10
# resolution
ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
# resolution
ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
# resolution
ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
# resolution
ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
# resolution
ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
# resolution
ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
# resolution
ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
# resolution
ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
# resolution
ok {test-number} - res[i] == rate for: 1000.0 == 1000 (0x<hex digits>)
# run_for_at_least, chronometer
ok {test-number} - meter.runs() >= old_runs for: 1 >= 1
# run_for_at_least, chronometer
ok {test-number} - meter.runs() >= old_runs for: 2 >= 1
# run_for_at_least, chronometer
ok {test-number} - meter.runs() >= old_runs for: 4 >= 2
# run_for_at_least, chronometer
ok {test-number} - meter.runs() >= old_runs for: 8 >= 4
# run_for_at_least, chronometer
ok {test-number} - meter.runs() >= old_runs for: 16 >= 8
# run_for_at_least, chronometer
ok {test-number} - meter.runs() >= old_runs for: 32 >= 16
# run_for_at_least, chronometer
ok {test-number} - meter.runs() >= old_runs for: 64 >= 32
# run_for_at_least, chronometer
ok {test-number} - meter.runs() >= old_runs for: 128 >= 64
# run_for_at_least, chronometer
ok {test-number} - Timing.elapsed >= time for: 128 ns >= 100 ns
# run_for_at_least, chronometer
ok {test-number} - Timing.result == Timing.iterations + 17 for: 145 == 145
# run_for_at_least, chronometer
ok {test-number} - Timing.iterations >= time.count() for: 128 >= 100
# run_for_at_least, int
ok {test-number} - x >= old_x for: 1 >= 1
# run_for_at_least, int
ok {test-number} - x >= old_x for: 2 >= 1
# run_for_at_least, int
ok {test-number} - x >= old_x for: 4 >= 2
# run_for_at_least, int
ok {test-number} - x >= old_x for: 8 >= 4
# run_for_at_least, int
ok {test-number} - x >= old_x for: 16 >= 8
# run_for_at_least, int
ok {test-number} - x >= old_x for: 32 >= 16
# run_for_at_least, int
ok {test-number} - x >= old_x for: 64 >= 32
# run_for_at_least, int
ok {test-number} - x >= old_x for: 128 >= 64
# run_for_at_least, int
ok {test-number} - Timing.elapsed >= time for: 128 ns >= 100 ns
# run_for_at_least, int
ok {test-number} - Timing.result == Timing.iterations + 17 for: 145 == 145
# run_for_at_least, int
ok {test-number} - Timing.iterations >= time.count() for: 128 >= 100
2020-02-02 15:04:19 +01:00
# send a single char to INFO
2020-02-03 20:29:36 +01:00
not ok {test-number} - false with 1 message: '3'
2020-02-02 15:04:19 +01:00
# sends information to INFO
2020-02-03 20:29:36 +01:00
not ok {test-number} - false with 2 messages: 'hi' and 'i := 7'
2020-02-02 15:04:19 +01:00
# shortened hide tags are split apart
2020-02-18 23:31:16 +01:00
ok {test-number} - tags, VectorContains("magic-tag"_catch_sr) && VectorContains("."_catch_sr) for: { ., magic-tag } ( Contains: magic-tag and Contains: . )
2020-02-02 15:04:19 +01:00
# splitString
2020-02-03 20:29:36 +01:00
ok {test-number} - splitStringRef("", ','), Equals(std::vector<StringRef>()) for: { } Equals: { }
2020-02-02 15:04:19 +01:00
# splitString
2020-02-03 20:29:36 +01:00
ok {test-number} - splitStringRef("abc", ','), Equals(std::vector<StringRef>{"abc"}) for: { abc } Equals: { abc }
2020-02-02 15:04:19 +01:00
# splitString
2020-02-03 20:29:36 +01:00
ok {test-number} - splitStringRef("abc,def", ','), Equals(std::vector<StringRef>{"abc", "def"}) for: { abc, def } Equals: { abc, def }
2020-02-02 15:04:19 +01:00
# stacks unscoped info in loops
2020-02-03 20:29:36 +01:00
not ok {test-number} - false with 4 messages: 'Count 1 to 3...' and '1' and '2' and '3'
2020-02-02 15:04:19 +01:00
# stacks unscoped info in loops
2020-02-03 20:29:36 +01:00
not ok {test-number} - false with 4 messages: 'Count 4 to 6...' and '4' and '5' and '6'
2020-02-02 15:04:19 +01:00
# std::map is convertible string
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify( emptyMap ) == "{ }" for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# std::map is convertible string
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" for: "{ { "one", 1 } }" == "{ { "one", 1 } }"
2020-02-02 15:04:19 +01:00
# std::map is convertible string
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" for: "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }" == "{ { "abc", 1 }, { "def", 2 }, { "ghi", 3 } }"
2020-02-02 15:04:19 +01:00
# std::pair<int,const std::string> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" for: "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
2020-02-02 15:04:19 +01:00
# std::pair<int,std::string> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" for: "{ 34, "xyzzy" }" == "{ 34, "xyzzy" }"
2020-02-02 15:04:19 +01:00
# std::set is convertible string
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify( emptySet ) == "{ }" for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# std::set is convertible string
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify( set ) == "{ \"one\" }" for: "{ "one" }" == "{ "one" }"
2020-02-02 15:04:19 +01:00
# std::set is convertible string
2020-02-03 20:29:36 +01:00
ok {test-number} - Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" for: "{ "abc", "def", "ghi" }" == "{ "abc", "def", "ghi" }"
2020-02-02 15:04:19 +01:00
# std::vector<std::pair<std::string,int> > -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" for: "{ { "green", 55 } }" == "{ { "green", 55 } }"
2020-02-02 15:04:19 +01:00
# string literals of different sizes can be compared
2020-02-03 20:29:36 +01:00
not ok {test-number} - std::string( "first" ) == "second" for: "first" == "second"
2020-02-02 15:04:19 +01:00
# stringify ranges
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)" for: "op<<(streamable_range)" == "op<<(streamable_range)"
2020-02-02 15:04:19 +01:00
# stringify ranges
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)" for: "stringmaker(streamable_range)" == "stringmaker(streamable_range)"
2020-02-02 15:04:19 +01:00
# stringify ranges
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" for: "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }"
2020-02-02 15:04:19 +01:00
# stringify ranges
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(disabled_range{}) == "{?}" for: "{?}" == "{?}"
2020-02-02 15:04:19 +01:00
# stringify( has_maker )
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" for: "StringMaker<has_maker>" == "StringMaker<has_maker>"
2020-02-02 15:04:19 +01:00
# stringify( has_maker_and_operator )
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" for: "StringMaker<has_maker_and_operator>" == "StringMaker<has_maker_and_operator>"
2020-02-02 15:04:19 +01:00
# stringify( has_neither )
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(item) == "{?}" for: "{?}" == "{?}"
2020-02-02 15:04:19 +01:00
# stringify( has_operator )
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" for: "operator<<( has_operator )" == "operator<<( has_operator )"
2020-02-02 15:04:19 +01:00
# stringify( has_template_operator )
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( item ) == "operator<<( has_template_operator )" for: "operator<<( has_template_operator )" == "operator<<( has_template_operator )"
2020-02-02 15:04:19 +01:00
# stringify( vectors<has_maker> )
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" for: "{ StringMaker<has_maker> }" == "{ StringMaker<has_maker> }"
2020-02-02 15:04:19 +01:00
# stringify( vectors<has_maker_and_operator> )
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" for: "{ StringMaker<has_maker_and_operator> }" == "{ StringMaker<has_maker_and_operator> }"
2020-02-02 15:04:19 +01:00
# stringify( vectors<has_operator> )
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" for: "{ operator<<( has_operator ) }" == "{ operator<<( has_operator ) }"
2020-02-02 15:04:19 +01:00
# strlen3
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str.size() == data.len for: 3 == 3
2020-02-02 15:04:19 +01:00
# strlen3
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str.size() == data.len for: 3 == 3
2020-02-02 15:04:19 +01:00
# strlen3
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str.size() == data.len for: 5 == 5
2020-02-02 15:04:19 +01:00
# strlen3
2020-02-03 20:29:36 +01:00
ok {test-number} - data.str.size() == data.len for: 4 == 4
2020-02-02 15:04:19 +01:00
# tables
2020-02-03 20:29:36 +01:00
ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 5 == 5
2020-02-02 15:04:19 +01:00
# tables
2020-02-03 20:29:36 +01:00
ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 6 == 6
2020-02-02 15:04:19 +01:00
# tables
2020-02-03 20:29:36 +01:00
ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 5 == 5
2020-02-02 15:04:19 +01:00
# tables
2020-02-03 20:29:36 +01:00
ok {test-number} - strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data)) for: 6 == 6
2020-02-02 15:04:19 +01:00
# thrown std::strings are translated
2020-02-03 20:29:36 +01:00
not ok {test-number} - unexpected exception with message: 'Why would you throw a std::string?'
2020-02-02 15:04:19 +01:00
# toString on const wchar_t const pointer returns the string contents
2020-02-03 20:29:36 +01:00
ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
2020-02-02 15:04:19 +01:00
# toString on const wchar_t pointer returns the string contents
2020-02-03 20:29:36 +01:00
ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
2020-02-02 15:04:19 +01:00
# toString on wchar_t const pointer returns the string contents
2020-02-03 20:29:36 +01:00
ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
2020-02-02 15:04:19 +01:00
# toString on wchar_t returns the string contents
2020-02-03 20:29:36 +01:00
ok {test-number} - result == "\"wide load\"" for: ""wide load"" == ""wide load""
2020-02-02 15:04:19 +01:00
# toString(enum class w/operator<<)
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(e0) == "E2/V0" for: "E2/V0" == "E2/V0"
2020-02-02 15:04:19 +01:00
# toString(enum class w/operator<<)
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(e1) == "E2/V1" for: "E2/V1" == "E2/V1"
2020-02-02 15:04:19 +01:00
# toString(enum class w/operator<<)
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(e3) == "Unknown enum value 10" for: "Unknown enum value 10" == "Unknown enum value 10"
2020-02-02 15:04:19 +01:00
# toString(enum class)
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(e0) == "0" for: "0" == "0"
2020-02-02 15:04:19 +01:00
# toString(enum class)
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(e1) == "1" for: "1" == "1"
2020-02-02 15:04:19 +01:00
# toString(enum w/operator<<)
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(e0) == "E2{0}" for: "E2{0}" == "E2{0}"
2020-02-02 15:04:19 +01:00
# toString(enum w/operator<<)
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(e1) == "E2{1}" for: "E2{1}" == "E2{1}"
2020-02-02 15:04:19 +01:00
# toString(enum)
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(e0) == "0" for: "0" == "0"
2020-02-02 15:04:19 +01:00
# toString(enum)
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(e1) == "1" for: "1" == "1"
2020-02-02 15:04:19 +01:00
# tuple<>
2020-02-03 20:29:36 +01:00
ok {test-number} - "{ }" == ::Catch::Detail::stringify(type{}) for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# tuple<>
2020-02-03 20:29:36 +01:00
ok {test-number} - "{ }" == ::Catch::Detail::stringify(value) for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# tuple<float,int>
2020-02-03 20:29:36 +01:00
ok {test-number} - "1.2f" == ::Catch::Detail::stringify(float(1.2)) for: "1.2f" == "1.2f"
2020-02-02 15:04:19 +01:00
# tuple<float,int>
2020-02-03 20:29:36 +01:00
ok {test-number} - "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) for: "{ 1.2f, 0 }" == "{ 1.2f, 0 }"
2020-02-02 15:04:19 +01:00
# tuple<int>
2020-02-03 20:29:36 +01:00
ok {test-number} - "{ 0 }" == ::Catch::Detail::stringify(type{0}) for: "{ 0 }" == "{ 0 }"
2020-02-02 15:04:19 +01:00
# tuple<0,int,const char *>
2020-02-03 20:29:36 +01:00
ok {test-number} - "{ 0, 42, \"Catch me\" }" == ::Catch::Detail::stringify(value) for: "{ 0, 42, "Catch me" }" == "{ 0, 42, "Catch me" }"
2020-02-02 15:04:19 +01:00
# tuple<string,string>
2020-02-03 20:29:36 +01:00
ok {test-number} - "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) for: "{ "hello", "world" }" == "{ "hello", "world" }"
2020-02-02 15:04:19 +01:00
# tuple<tuple<int>,tuple<>,float>
2020-02-03 20:29:36 +01:00
ok {test-number} - "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) for: "{ { 42 }, { }, 1.2f }" == "{ { 42 }, { }, 1.2f }"
2020-02-03 18:08:15 +01:00
# uniform samples
ok {test-number} - e.point == 23 for: 23.0 == 23
# uniform samples
ok {test-number} - e.upper_bound == 23 for: 23.0 == 23
# uniform samples
ok {test-number} - e.lower_bound == 23 for: 23.0 == 23
# uniform samples
ok {test-number} - e.confidence_interval == 0.95 for: 0.95 == 0.95
2020-05-24 23:41:02 +02:00
# unique_ptr reimplementation: basic functionality
ok {test-number} - !(ptr) for: !{?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr.get() == 0 for: 0 == 0
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr for: {?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - *ptr == 0 for: 0 == 0
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr.get() == naked_ptr for: 0x<hex digits> == 0x<hex digits>
# unique_ptr reimplementation: basic functionality
ok {test-number} - !(ptr) for: !{?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr.get() == 0 for: 0 == 0
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr for: {?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - *ptr == 0 for: 0 == 0
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr.get() == naked_ptr for: 0x<hex digits> == 0x<hex digits>
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr for: {?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr.get() != 0 for: 0x<hex digits> != 0
# unique_ptr reimplementation: basic functionality
ok {test-number} - *ptr == 2 for: 2 == 2
# unique_ptr reimplementation: basic functionality
ok {test-number} - !(ptr) for: !{?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr.get() == 0 for: 0 == 0
# unique_ptr reimplementation: basic functionality
ok {test-number} - !(ptr1) for: !{?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr2 for: {?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - *ptr2 == 1 for: 1 == 1
# unique_ptr reimplementation: basic functionality
ok {test-number} - !(ptr2) for: !{?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - ptr1 for: {?}
# unique_ptr reimplementation: basic functionality
ok {test-number} - *ptr1 == 2 for: 2 == 2
# unique_ptr reimplementation: basic functionality
ok {test-number} - *ptr1 == 2 for: 2 == 2
# unique_ptr reimplementation: basic functionality
ok {test-number} - *ptr2 == 1 for: 1 == 1
2020-02-02 15:04:19 +01:00
# vec<vec<string,alloc>> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(v) == "{ }" for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# vec<vec<string,alloc>> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" for: "{ { "hello" }, { "world" } }" == "{ { "hello" }, { "world" } }"
2020-02-02 15:04:19 +01:00
# vector<bool> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(bools) == "{ }" for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# vector<bool> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(bools) == "{ true }" for: "{ true }" == "{ true }"
2020-02-02 15:04:19 +01:00
# vector<bool> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(bools) == "{ true, false }" for: "{ true, false }" == "{ true, false }"
2020-02-02 15:04:19 +01:00
# vector<int,allocator> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(vv) == "{ }" for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# vector<int,allocator> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42 }" for: "{ 42 }" == "{ 42 }"
2020-02-02 15:04:19 +01:00
# vector<int,allocator> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42, 250 }" for: "{ 42, 250 }" == "{ 42, 250 }"
2020-02-02 15:04:19 +01:00
# vector<int> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(vv) == "{ }" for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# vector<int> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42 }" for: "{ 42 }" == "{ 42 }"
2020-02-02 15:04:19 +01:00
# vector<int> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(vv) == "{ 42, 250 }" for: "{ 42, 250 }" == "{ 42, 250 }"
2020-02-02 15:04:19 +01:00
# vector<string> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(vv) == "{ }" for: "{ }" == "{ }"
2020-02-02 15:04:19 +01:00
# vector<string> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(vv) == "{ \"hello\" }" for: "{ "hello" }" == "{ "hello" }"
2020-02-02 15:04:19 +01:00
# vector<string> -> toString
2020-02-03 20:29:36 +01:00
ok {test-number} - ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" for: "{ "hello", "world" }" == "{ "hello", "world" }"
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 10 for: 10 == 10
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() == 0 for: 0 == 0
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 10 for: 10 >= 10
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.size() == 5 for: 5 == 5
2020-02-02 15:04:19 +01:00
# vectors can be sized and resized
2020-02-03 20:29:36 +01:00
ok {test-number} - v.capacity() >= 5 for: 5 >= 5
2020-02-03 18:08:15 +01:00
# warmup
ok {test-number} - (iterations * rate) > Catch::Benchmark::Detail::warmup_time.count() for: 160000000 (0x<hex digits>) > 100
# warmup
ok {test-number} - (end - start) > Catch::Benchmark::Detail::warmup_time for: 310016000 ns > 100 ms
# weighted_average_quantile
ok {test-number} - q1 == 14.5 for: 14.5 == 14.5
# weighted_average_quantile
ok {test-number} - med == 18. for: 18.0 == 18.0
# weighted_average_quantile
ok {test-number} - q3 == 23. for: 23.0 == 23.0
2020-02-02 15:04:19 +01:00
# xmlentitycheck
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-02-02 15:04:19 +01:00
# xmlentitycheck
2020-02-03 20:29:36 +01:00
ok {test-number} -
2020-06-14 21:48:08 +02:00
1..1950
2020-02-02 15:04:19 +01:00