Home
last modified time | relevance | path

Searched refs:REQUIRE (Results 1 – 25 of 195) sorted by relevance

12345678

/external/catch2/projects/SelfTest/IntrospectiveTests/
DGeneratorsImpl.tests.cpp9 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 …]
DPartTracker.tests.cpp29 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 …]
DString.tests.cpp13 REQUIRE( empty.empty() );
14 REQUIRE( empty.size() == 0 );
15 REQUIRE( empty.isNullTerminated() );
16 REQUIRE( std::strcmp( empty.c_str(), "" ) == 0 );
21 REQUIRE( s.empty() == false );
22 REQUIRE( s.size() == 5 );
23 REQUIRE( s.isNullTerminated() );
26 REQUIRE( std::strcmp( rawChars, "hello" ) == 0 );
29 REQUIRE(s.c_str() == rawChars);
30 REQUIRE(s.data() == rawChars);
[all …]
DRandomNumberGeneration.tests.cpp15 REQUIRE(rng() == 0xfcdb943b);
16 REQUIRE(rng() == 0x6f55b921);
17 REQUIRE(rng() == 0x4c17a916);
18 REQUIRE(rng() == 0x71eae25f);
19 REQUIRE(rng() == 0x6ce7909c);
23 REQUIRE(rng() == 0x57c08495);
24 REQUIRE(rng() == 0x33c956ac);
25 REQUIRE(rng() == 0x2206fd76);
26 REQUIRE(rng() == 0x3501a35b);
27 REQUIRE(rng() == 0xfdffb30f);
[all …]
/external/catch2/projects/SelfTest/UsageTests/
DApprox.tests.cpp42 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 …]
DCondition.tests.cpp60 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 …]
DMisc.tests.cpp83 REQUIRE( a != b );
84 REQUIRE( b != a );
88 REQUIRE( a != b);
97 REQUIRE( a != b );
98 REQUIRE( b != a );
101 REQUIRE( a != b);
112 REQUIRE( a == b );
116 REQUIRE( a != b );
119 REQUIRE( a < b );
166 REQUIRE( makeString( false ) != static_cast<char*>(nullptr));
[all …]
DGenerators.tests.cpp11 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 …]
DTricky.tests.cpp84 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 …]
DToStringVector.tests.cpp9 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 …]
DCompilation.tests.cpp82 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 …]
DBDD.tests.cpp46 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 …]
DToStringGeneral.tests.cpp31 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 } }" );
79REQUIRE( 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 …]
/external/bcc/tests/cc/
Dtest_c_api.cc43 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 …]
Dtest_usdt_probes.cc40 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 …]
Dtest_bpf_table.cc33 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 …]
Dtest_hash_table.cc31 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 …]
Dtest_perf_event.cc61 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 …]
Dtest_array_table.cc36 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 …]
Dtest_shared_table.cc38 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/
Dobserver.cpp29 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/
Dtest_interpreter.cpp55 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/
D100-Fix-Section.cpp17 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 );
D120-Bdd-ScenarioGivenWhenThen.cpp12 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/libabigail/tests/
Dtest-kmi-whitelist.cc65 REQUIRE(suppr.size() == 2); in test_suppressions_are_consistent()
71 REQUIRE(left); in test_suppressions_are_consistent()
72 REQUIRE(right); in test_suppressions_are_consistent()
74 REQUIRE(left->get_label() == right->get_label()); in test_suppressions_are_consistent()
76 REQUIRE(left->get_drops_artifact_from_ir() in test_suppressions_are_consistent()
79 REQUIRE(left->get_symbol_name_not_regex_str() in test_suppressions_are_consistent()
82 REQUIRE(left->get_symbol_name_not_regex_str() == expr); in test_suppressions_are_consistent()
90 REQUIRE(suppr.empty());
99 REQUIRE(!suppr.empty());
109 REQUIRE(!suppr.empty());
[all …]

12345678