Searched refs:REQUIRE (Results 1 – 25 of 169) sorted by relevance
1234567
/external/catch2/projects/SelfTest/IntrospectiveTests/ |
D | GeneratorsImpl.tests.cpp | 9 REQUIRE(gen.get() == 123); 14 REQUIRE(gen.get() == 1); 15 REQUIRE(gen.next()); 16 REQUIRE(gen.get() == 3); 17 REQUIRE(gen.next()); 18 REQUIRE(gen.get() == 5); 23 REQUIRE(gen.get() == 1); 24 REQUIRE(gen.next()); 25 REQUIRE(gen.get() == 5); 26 REQUIRE(gen.next()); [all …]
|
D | PartTracker.tests.cpp | 29 REQUIRE( testCase.isOpen() ); 32 REQUIRE( s1.isOpen() ); 36 REQUIRE( s1.isSuccessfullyCompleted() ); 37 REQUIRE( testCase.isComplete() == false ); 40 REQUIRE( ctx.completedCycle() ); 41 REQUIRE( testCase.isSuccessfullyCompleted() ); 46 REQUIRE( s1.isComplete() ); 47 REQUIRE( s1.isSuccessfullyCompleted() == false ); 48 REQUIRE( testCase.isComplete() == false ); 51 REQUIRE( ctx.completedCycle() ); [all …]
|
D | String.tests.cpp | 38 REQUIRE( empty.empty() ); 39 REQUIRE( empty.size() == 0 ); 40 REQUIRE( std::strcmp( empty.c_str(), "" ) == 0 ); 45 REQUIRE( s.empty() == false ); 46 REQUIRE( s.size() == 5 ); 47 REQUIRE( isSubstring( s ) == false ); 50 REQUIRE( std::strcmp( rawChars, "hello" ) == 0 ); 53 REQUIRE( isOwned( s ) == false ); 55 REQUIRE( s.c_str() == rawChars ); 57 REQUIRE( isOwned( s ) == false ); [all …]
|
/external/catch2/projects/SelfTest/UsageTests/ |
D | Approx.tests.cpp | 42 REQUIRE( d == 1.23_a ); 43 REQUIRE( d != 1.22_a ); 44 REQUIRE( -d == -1.23_a ); 46 REQUIRE( d == 1.2_a .epsilon(.1) ); 47 REQUIRE( d != 1.2_a .epsilon(.001) ); 48 REQUIRE( d == 1_a .epsilon(.3) ); 54 REQUIRE( d == Approx( 1.23 ) ); 55 REQUIRE( d != Approx( 1.22 ) ); 56 REQUIRE( d != Approx( 1.24 ) ); 58 REQUIRE( d == 1.23_a ); [all …]
|
D | Condition.tests.cpp | 60 REQUIRE( data.int_seven == 7 ); 61 REQUIRE( data.float_nine_point_one == Approx( 9.1f ) ); 62 REQUIRE( data.double_pi == Approx( 3.1415926535 ) ); 63 REQUIRE( data.str_hello == "hello" ); 64 REQUIRE( "hello" == data.str_hello ); 65 REQUIRE( data.str_hello.size() == 5 ); 68 REQUIRE( x == Approx( 1.3 ) ); 96 REQUIRE( data.int_seven != 6 ); 97 REQUIRE( data.int_seven != 8 ); 98 REQUIRE( data.float_nine_point_one != Approx( 9.11f ) ); [all …]
|
D | Misc.tests.cpp | 76 REQUIRE( a != b ); 77 REQUIRE( b != a ); 81 REQUIRE( a != b); 90 REQUIRE( a != b ); 91 REQUIRE( b != a ); 94 REQUIRE( a != b); 105 REQUIRE( a == b ); 109 REQUIRE( a != b ); 112 REQUIRE( a < b ); 159 REQUIRE( makeString( false ) != static_cast<char*>(nullptr)); [all …]
|
D | Tricky.tests.cpp | 84 REQUIRE( std::string( "first" ) == "second" ); 97 REQUIRE( i++ == 7 ); 98 REQUIRE( i++ == 8 ); 164 REQUIRE(0xc0000000 == o ); 183 REQUIRE( 0xc0000000 == bit30and31 ); 198 REQUIRE( obj.prop != nullptr ); 218 REQUIRE( is_true<true>::value == true ); 219 REQUIRE( true == is_true<true>::value ); 223 REQUIRE( is_true<false>::value == false ); 224 REQUIRE( false == is_true<false>::value ); [all …]
|
D | ToStringVector.tests.cpp | 9 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ); 11 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" ); 13 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" ); 19 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ); 21 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" ); 23 REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" ); 53 REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ); 55 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" ); 57 REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" ); 64 REQUIRE( ::Catch::Detail::stringify(v) == "{ }" ); [all …]
|
D | Generators.tests.cpp | 11 REQUIRE(j < i); 17 REQUIRE(4u * i > str.size()); 29 REQUIRE(x < z); 53 REQUIRE(strlen(std::get<0>(data)) == static_cast<size_t>(std::get<1>(data))); 68 REQUIRE( test_input.size() == expected ); 84 REQUIRE( data.str.size() == data.len ); 111 REQUIRE( eatCucumbers( start, eat ) == left ); 124 REQUIRE(i % 2 == 0); 134 REQUIRE(i < 4); 140 REQUIRE(i % 2 == 0); [all …]
|
D | Compilation.tests.cpp | 82 REQUIRE(a == t); in templated_tests() 128 REQUIRE(42 == f); 138 REQUIRE(templated_tests<int>(3)); 149 REQUIRE (x == 4); 155 REQUIRE(y.v == 0); 156 REQUIRE(0 == y.v); 163 REQUIRE(t1 == t2); 164 REQUIRE(t1 != t2); 165 REQUIRE(t1 < t2); 166 REQUIRE(t1 > t2); [all …]
|
D | ToStringGeneral.tests.cpp | 31 REQUIRE(c == chars[i]); 39 REQUIRE(c == i); 49 REQUIRE(true); 54 REQUIRE(true); 63 REQUIRE( Catch::Detail::stringify( emptyMap ) == "{ }" ); 69 REQUIRE( Catch::Detail::stringify( map ) == "{ { \"one\", 1 } }" ); 79 …REQUIRE( Catch::Detail::stringify( map ) == "{ { \"abc\", 1 }, { \"def\", 2 }, { \"ghi\", 3 } }" ); 88 REQUIRE( Catch::Detail::stringify( emptySet ) == "{ }" ); 94 REQUIRE( Catch::Detail::stringify( set ) == "{ \"one\" }" ); 100 REQUIRE( Catch::Detail::stringify( set ) == "{ \"abc\", \"def\", \"ghi\" }" ); [all …]
|
D | BDD.tests.cpp | 46 REQUIRE(itDoesThis()); 47 AND_THEN("do that")REQUIRE(itDoesThat()); 57 REQUIRE(v.size() == 0); 62 REQUIRE(v.size() == 10); 63 REQUIRE(v.capacity() >= 10); 68 REQUIRE(v.size() == 5); 69 REQUIRE(v.capacity() >= 10); 78 REQUIRE(v.capacity() >= 10); 79 REQUIRE(v.size() == 0); 100 REQUIRE(before == 0); [all …]
|
/external/bcc/tests/cc/ |
D | test_c_api.cc | 43 REQUIRE(c); 44 REQUIRE(string(c).compare("c") == 0); 49 REQUIRE(libm); 50 REQUIRE(libm[0] == '/'); 51 REQUIRE(string(libm).find("libm.so") != string::npos); 57 REQUIRE(libelf); 58 REQUIRE(libelf[0] == '/'); 59 REQUIRE(string(libelf).find("libelf") != string::npos); 65 REQUIRE(ld); 66 REQUIRE(ld[0] == '/'); [all …]
|
D | test_usdt_probes.cc | 40 REQUIRE(ctx.num_probes() >= 1); 44 REQUIRE(probe); 46 REQUIRE(probe->in_shared_object(probe->bin_path()) == false); 47 REQUIRE(probe->name() == "sample_probe_1"); 48 REQUIRE(probe->provider() == "libbcc_test"); 49 REQUIRE(probe->bin_path().find("/test_libbcc") != std::string::npos); 51 REQUIRE(probe->num_locations() == 1); 52 REQUIRE(probe->num_arguments() == 2); 53 REQUIRE(probe->need_enable() == false); 55 REQUIRE(a_probed_function() != 0); [all …]
|
D | test_bpf_table.cc | 33 REQUIRE(res.code() == 0); 40 REQUIRE(res.code() == 0); 42 REQUIRE(res.code() == 0); 43 REQUIRE(value == "0x42"); 47 REQUIRE(res.code() == 0); 49 REQUIRE(res.code() == 0); 50 REQUIRE(value == "0x777"); 54 REQUIRE(res.code() == 0); 56 REQUIRE(res.code() != 0); 59 REQUIRE(res.code() == 0); [all …]
|
D | test_hash_table.cc | 31 REQUIRE(res.code() == 0); 50 REQUIRE(res.code() == 0); 52 REQUIRE(res.code() == 0); 53 REQUIRE(v2 == 42); 58 REQUIRE(res.code() == 0); 60 REQUIRE(res.code() == 0); 61 REQUIRE(v2 == 69); 65 REQUIRE(res.code() == 0); 69 REQUIRE(res.code() != 0); 73 REQUIRE(res.code() != 0); [all …]
|
D | test_perf_event.cc | 61 REQUIRE(res.code() == 0); 64 REQUIRE(res.code() == 0); 67 REQUIRE(res.code() == 0); 68 REQUIRE(getuid() >= 0); 70 REQUIRE(res.code() == 0); 72 REQUIRE(res.code() == 0); 75 REQUIRE(val[0] >= 0); 83 REQUIRE(ret[0] == 0); 84 REQUIRE(counter.counter >= 0); 85 REQUIRE(counter.enabled > 0); [all …]
|
D | test_array_table.cc | 36 REQUIRE(res.code() == 0); 55 REQUIRE(res.code() == 0); 57 REQUIRE(res.code() == 0); 58 REQUIRE(v2 == 42); 64 REQUIRE(res.code() == 0); 66 REQUIRE(res.code() == 0); 67 REQUIRE(v2 == 69); 72 REQUIRE(res.code() != 0); 87 REQUIRE(res.code() == 0); 94 REQUIRE(localtable == offlinetable); [all …]
|
D | test_shared_table.cc | 38 REQUIRE(res.code() == 0); 41 REQUIRE(res.code() == 0); 44 REQUIRE(res.code() == 0); 47 REQUIRE(res.code() == 0); 58 REQUIRE(res.code() == 0); 61 REQUIRE(res.code() == 0); 62 REQUIRE(v1 == 42); 66 REQUIRE(res.code() == 0); 69 REQUIRE(res.code() == 0); 70 REQUIRE(v2 == 69); [all …]
|
/external/Reactive-Extensions/RxCpp/Rx/v2/test/subscriptions/ |
D | observer.cpp | 29 REQUIRE(rx::is_observer<decltype(scrb)>::value); 32 REQUIRE(rx::is_subscription<decltype(scrb)>::value); 37 REQUIRE(result == 0); 43 REQUIRE(result == 1); 49 REQUIRE(result == 10); 55 REQUIRE(result == 100); 69 REQUIRE(rx::is_observer<decltype(dob)>::value); 72 REQUIRE(rx::is_observer<decltype(so)>::value); 75 REQUIRE(rx::is_observer<decltype(eo)>::value); 89 REQUIRE(!rx::is_observer<decltype(ss)>::value); [all …]
|
/external/python/pybind11/tests/test_embed/ |
D | test_interpreter.cpp | 55 REQUIRE(py::hasattr(module, "DerivedWidget")); 62 REQUIRE(locals["message"].cast<std::string>() == "Hello, World! - 5"); 66 REQUIRE(message.cast<std::string>() == "The question"); 69 REQUIRE(cpp_widget.the_answer() == 42); 110 REQUIRE(py::module::import("widget_module").attr("add")(1, 2).cast<int>() == 3); 111 REQUIRE(has_pybind11_internals_builtin()); 112 REQUIRE(has_pybind11_internals_static()); 113 REQUIRE(py::module::import("external_module").attr("A")(123).attr("value").cast<int>() == 123); 116 REQUIRE(reinterpret_cast<uintptr_t>(*py::detail::get_internals_pp()) == 121 REQUIRE(Py_IsInitialized() == 0); [all …]
|
/external/catch2/examples/ |
D | 100-Fix-Section.cpp | 17 REQUIRE( v.size() == 5 ); 18 REQUIRE( v.capacity() >= 5 ); 23 REQUIRE( v.size() == 10 ); 24 REQUIRE( v.capacity() >= 10 ); 29 REQUIRE( v.size() == 0 ); 30 REQUIRE( v.capacity() >= 5 ); 35 REQUIRE( v.size() == 5 ); 36 REQUIRE( v.capacity() >= 10 ); 41 REQUIRE( v.size() == 5 ); 42 REQUIRE( v.capacity() >= 5 );
|
D | 120-Bdd-ScenarioGivenWhenThen.cpp | 12 REQUIRE( v.size() == 5 ); 13 REQUIRE( v.capacity() >= 5 ); 19 REQUIRE( v.size() == 10 ); 20 REQUIRE( v.capacity() >= 10 ); 27 REQUIRE( v.size() == 0 ); 28 REQUIRE( v.capacity() >= 5 ); 35 REQUIRE( v.size() == 5 ); 36 REQUIRE( v.capacity() >= 10 ); 43 REQUIRE( v.size() == 5 ); 44 REQUIRE( v.capacity() >= 5 );
|
/external/Reactive-Extensions/RxCpp/Rx/v2/test/operators/ |
D | zip.cpp | 37 REQUIRE(required == actual); 45 REQUIRE(required == actual); 53 REQUIRE(required == actual); 95 REQUIRE(required == actual); 105 REQUIRE(required == actual); in __anon43e5c2a80502() 146 REQUIRE(required == actual); 154 REQUIRE(required == actual); 162 REQUIRE(required == actual); 202 REQUIRE(required == actual); 210 REQUIRE(required == actual); [all …]
|
D | amb.cpp | 44 REQUIRE(required == actual); 52 REQUIRE(required == actual); 60 REQUIRE(required == actual); 68 REQUIRE(required == actual); 76 REQUIRE(required == actual); 120 REQUIRE(required == actual); 128 REQUIRE(required == actual); 136 REQUIRE(required == actual); 144 REQUIRE(required == actual); 204 REQUIRE(required == actual); [all …]
|
1234567