Home
last modified time | relevance | path

Searched refs:LIBCPP_ASSERT (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multiset/
H A Dbucket_size.pass.cpp39 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
40 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
41 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
42 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
43 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
44 LIBCPP_ASSERT(c.bucket_size(5) == 0); in main()
45 LIBCPP_ASSERT(c.bucket_size(6) == 0); in main()
63 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
64 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
65 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
[all …]
H A Drehash.pass.cpp58 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
63 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
67 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
89 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
94 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
98 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
H A Dreserve.pass.cpp66 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
70 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
94 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
98 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multimap/
H A Dbucket_size.pass.cpp41 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
42 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
43 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
44 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
45 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
46 LIBCPP_ASSERT(c.bucket_size(5) == 0); in main()
47 LIBCPP_ASSERT(c.bucket_size(6) == 0); in main()
65 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
66 LIBCPP_ASSERT(c.bucket_size(1) == 2); in main()
67 LIBCPP_ASSERT(c.bucket_size(2) == 2); in main()
[all …]
H A Drehash.pass.cpp103 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
108 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
112 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
134 LIBCPP_ASSERT(c.bucket_count() == 7); in main()
139 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
143 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.set/
H A Dbucket_size.pass.cpp39 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
40 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
41 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
42 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
43 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
60 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
61 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
62 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
63 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
64 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
H A Drehash.pass.cpp58 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
63 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
67 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
89 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
94 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
98 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/
H A Dbucket_size.pass.cpp41 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
42 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
43 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
44 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
45 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
63 LIBCPP_ASSERT(c.bucket_size(0) == 0); in main()
64 LIBCPP_ASSERT(c.bucket_size(1) == 1); in main()
65 LIBCPP_ASSERT(c.bucket_size(2) == 1); in main()
66 LIBCPP_ASSERT(c.bucket_size(3) == 1); in main()
67 LIBCPP_ASSERT(c.bucket_size(4) == 1); in main()
H A Drehash.pass.cpp59 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
64 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
68 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
90 LIBCPP_ASSERT(c.bucket_count() == 5); in main()
95 LIBCPP_ASSERT(c.bucket_count() == 3); in main()
99 LIBCPP_ASSERT(c.bucket_count() == 31); in main()
/llvm-project-15.0.7/libcxx/test/std/re/re.badexp/
H A Dregex_error.pass.cpp28 …LIBCPP_ASSERT(e.what() == std::string("The expression contained an invalid collating element name.… in main()
33 …LIBCPP_ASSERT(e.what() == std::string("The expression contained an invalid character class name.")… in main()
38 …LIBCPP_ASSERT(e.what() == std::string("The expression contained an invalid escaped character, or a… in main()
44 … LIBCPP_ASSERT(e.what() == std::string("The expression contained an invalid back reference.")); in main()
49 LIBCPP_ASSERT(e.what() == std::string("The expression contained mismatched [ and ].")); in main()
54 LIBCPP_ASSERT(e.what() == std::string("The expression contained mismatched ( and ).")); in main()
59 LIBCPP_ASSERT(e.what() == std::string("The expression contained mismatched { and }.")); in main()
69 … LIBCPP_ASSERT(e.what() == std::string("The expression contained an invalid character range, " in main()
75 …LIBCPP_ASSERT(e.what() == std::string("There was insufficient memory to convert the expression int… in main()
81 …LIBCPP_ASSERT(e.what() == std::string("One of *?+{ was not preceded by a valid regular expression.… in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.modifiers/
H A Demplace_hint.pass.cpp46 LIBCPP_ASSERT(r == std::next(c.begin())); in main()
53 LIBCPP_ASSERT(r == std::next(c.begin())); in main()
56 LIBCPP_ASSERT(r->second == Emplaceable()); in main()
59 LIBCPP_ASSERT(r->second == Emplaceable(5, 6)); in main()
77 LIBCPP_ASSERT(r == std::next(c.begin())); in main()
84 LIBCPP_ASSERT(r == std::next(c.begin())); in main()
87 LIBCPP_ASSERT(r->second == Emplaceable()); in main()
90 LIBCPP_ASSERT(r->second == Emplaceable(5, 6)); in main()
/llvm-project-15.0.7/libcxx/test/std/re/re.const/re.err/
H A Derror_type.pass.cpp39 LIBCPP_ASSERT(std::regex_constants::error_collate != 0); in main()
40 LIBCPP_ASSERT(std::regex_constants::error_ctype != 0); in main()
41 LIBCPP_ASSERT(std::regex_constants::error_escape != 0); in main()
42 LIBCPP_ASSERT(std::regex_constants::error_backref != 0); in main()
43 LIBCPP_ASSERT(std::regex_constants::error_brack != 0); in main()
44 LIBCPP_ASSERT(std::regex_constants::error_paren != 0); in main()
45 LIBCPP_ASSERT(std::regex_constants::error_brace != 0); in main()
46 LIBCPP_ASSERT(std::regex_constants::error_badbrace != 0); in main()
47 LIBCPP_ASSERT(std::regex_constants::error_range != 0); in main()
48 LIBCPP_ASSERT(std::regex_constants::error_space != 0); in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector/vector.cons/
H A Dconstruct_default.pass.cpp33 LIBCPP_ASSERT(c.__invariants()); in test0()
36 LIBCPP_ASSERT(is_contiguous_container_asan_correct(c)); in test0()
39 LIBCPP_ASSERT(c1.__invariants()); in test0()
42 LIBCPP_ASSERT(is_contiguous_container_asan_correct(c1)); in test0()
55 LIBCPP_ASSERT(c.__invariants()); in test1()
58 LIBCPP_ASSERT(is_contiguous_container_asan_correct(c)); in test1()
H A Dconstruct_size.pass.cpp32 LIBCPP_ASSERT(c.__invariants()); in test()
35 LIBCPP_ASSERT(is_contiguous_container_asan_correct(c)); in test()
46 LIBCPP_ASSERT(c.__invariants()); in test()
49 LIBCPP_ASSERT(is_contiguous_container_asan_correct(c)); in test()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/vector/vector.modifiers/
H A Dclear.pass.cpp28 LIBCPP_ASSERT(c.__invariants()); in tests()
29 LIBCPP_ASSERT(is_contiguous_container_asan_correct(c)); in tests()
38 LIBCPP_ASSERT(c.__invariants()); in tests()
39 LIBCPP_ASSERT(is_contiguous_container_asan_correct(c)); in tests()
/llvm-project-15.0.7/libcxx/test/std/thread/futures/futures.future_error/
H A Dwhat.pass.cpp32 LIBCPP_ASSERT(std::strcmp(f.what(), "The associated promise has been destructed prior " in main()
37 LIBCPP_ASSERT(std::strcmp(f.what(), "The future has already been retrieved from " in main()
42 LIBCPP_ASSERT(std::strcmp(f.what(), "The state of the promise has already been set.") == 0); in main()
46 LIBCPP_ASSERT(std::strcmp(f.what(), "Operation not permitted on an object without " in main()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/map/map.cons/
H A Dassign_initializer_list.pass.cpp80 LIBCPP_ASSERT(alloc_stats.alloc_count == 0); in duplicate_keys_test()
82 LIBCPP_ASSERT(alloc_stats.alloc_count == 3); in duplicate_keys_test()
84 LIBCPP_ASSERT(alloc_stats.alloc_count == 1); in duplicate_keys_test()
88 LIBCPP_ASSERT(alloc_stats.alloc_count == 0); in duplicate_keys_test()
/llvm-project-15.0.7/libcxx/test/std/containers/associative/set/set.cons/
H A Dassign_initializer_list.pass.cpp61 LIBCPP_ASSERT(alloc_stats.alloc_count == 0); in duplicate_keys_test()
63 LIBCPP_ASSERT(alloc_stats.alloc_count == 3); in duplicate_keys_test()
65 LIBCPP_ASSERT(alloc_stats.alloc_count == 1); in duplicate_keys_test()
69 LIBCPP_ASSERT(alloc_stats.alloc_count == 0); in duplicate_keys_test()
/llvm-project-15.0.7/libcxx/test/std/re/re.grammar/
H A Dexcessive_brace_min_max.pass.cpp29 LIBCPP_ASSERT(e.code() == std::regex_constants::error_badbrace); in main()
40 LIBCPP_ASSERT(e.code() == std::regex_constants::error_badbrace); in main()
52 LIBCPP_ASSERT(e.code() == std::regex_constants::error_badbrace); in main()
63 LIBCPP_ASSERT(e.code() == std::regex_constants::error_badbrace); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/
H A Ddefault.pass.cpp36 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
54 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
73 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
86 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
99 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/
H A Ddefault.pass.cpp36 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
54 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
73 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
86 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
99 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
/llvm-project-15.0.7/libcxx/test/std/re/re.traits/
H A Dlookup_classname.pass.cpp47 LIBCPP_ASSERT((expected | std::regex_traits<char_type>::__regex_word) == result); in test_w()
60 LIBCPP_ASSERT((std::ctype_base::space & std::regex_traits<char>::__regex_word) == 0); in main()
61 LIBCPP_ASSERT((std::ctype_base::print & std::regex_traits<char>::__regex_word) == 0); in main()
62 LIBCPP_ASSERT((std::ctype_base::cntrl & std::regex_traits<char>::__regex_word) == 0); in main()
63 LIBCPP_ASSERT((std::ctype_base::upper & std::regex_traits<char>::__regex_word) == 0); in main()
64 LIBCPP_ASSERT((std::ctype_base::lower & std::regex_traits<char>::__regex_word) == 0); in main()
65 LIBCPP_ASSERT((std::ctype_base::alpha & std::regex_traits<char>::__regex_word) == 0); in main()
66 LIBCPP_ASSERT((std::ctype_base::digit & std::regex_traits<char>::__regex_word) == 0); in main()
67 LIBCPP_ASSERT((std::ctype_base::punct & std::regex_traits<char>::__regex_word) == 0); in main()
68 LIBCPP_ASSERT((std::ctype_base::xdigit & std::regex_traits<char>::__regex_word) == 0); in main()
[all …]
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.cnstr/
H A Ddefault.pass.cpp37 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
57 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
77 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
90 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
103 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/unord.map.cnstr/
H A Ddefault.pass.cpp37 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
57 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
77 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
90 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
103 LIBCPP_ASSERT(c.bucket_count() == 0); in main()
/llvm-project-15.0.7/libcxx/test/std/containers/views/views.span/span.sub/
H A Dsubspan.pass.cpp31 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset, Count>()))); in testConstexprSpan()
32 LIBCPP_ASSERT((noexcept(sp.subspan(Offset, Count)))); in testConstexprSpan()
50 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset>()))); in testConstexprSpan()
51 LIBCPP_ASSERT((noexcept(sp.subspan(Offset)))); in testConstexprSpan()
70 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset, Count>()))); in testRuntimeSpan()
71 LIBCPP_ASSERT((noexcept(sp.subspan(Offset, Count)))); in testRuntimeSpan()
89 LIBCPP_ASSERT((noexcept(sp.template subspan<Offset>()))); in testRuntimeSpan()
90 LIBCPP_ASSERT((noexcept(sp.subspan(Offset)))); in testRuntimeSpan()

12345678910>>...13