/external/libcxx/test/std/experimental/simd/simd.traits/ |
D | is_simd_mask.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 15 // template <class T> struct ex::is_simd_mask; 16 // template <class T> inline constexpr bool ex::is_simd_mask_v = 17 // ex::is_simd_mask<T>::value; 23 namespace ex = std::experimental::parallelism_v2; 27 static_assert(ex::is_simd_mask<ex::native_simd_mask<int8_t>>::value, ""); 28 static_assert(ex::is_simd_mask<ex::native_simd_mask<int16_t>>::value, ""); 29 static_assert(ex::is_simd_mask<ex::native_simd_mask<int32_t>>::value, ""); 30 static_assert(ex::is_simd_mask<ex::native_simd_mask<int64_t>>::value, ""); [all …]
|
D | is_simd.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 15 // template <class T> struct ex::is_simd; 16 // template <class T> inline constexpr bool ex::is_simd_v = 17 // ex::is_simd<T>::value; 23 namespace ex = std::experimental::parallelism_v2; 27 static_assert(ex::is_simd<ex::native_simd<int8_t>>::value, ""); 28 static_assert(ex::is_simd<ex::native_simd<int16_t>>::value, ""); 29 static_assert(ex::is_simd<ex::native_simd<int32_t>>::value, ""); 30 static_assert(ex::is_simd<ex::native_simd<int64_t>>::value, ""); [all …]
|
D | is_abi_tag.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 16 // template <class T> inline constexpr bool ex::is_abi_tag_v = 17 // ex::is_abi_tag<T>::value; 23 namespace ex = std::experimental::parallelism_v2; 27 static_assert(ex::is_abi_tag<ex::simd_abi::native<int8_t>>::value, ""); 28 static_assert(ex::is_abi_tag<ex::simd_abi::native<int16_t>>::value, ""); 29 static_assert(ex::is_abi_tag<ex::simd_abi::native<int32_t>>::value, ""); 30 static_assert(ex::is_abi_tag<ex::simd_abi::native<int64_t>>::value, ""); 31 static_assert(ex::is_abi_tag<ex::simd_abi::native<uint8_t>>::value, ""); [all …]
|
D | is_simd_flag_type.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 16 // template <class T> inline constexpr bool ex::is_simd_flag_type_v = 17 // ex::is_simd_flag_type<T>::value; 23 namespace ex = std::experimental::parallelism_v2; 27 static_assert(ex::is_simd_flag_type<ex::element_aligned_tag>::value, ""); 28 static_assert(ex::is_simd_flag_type<ex::vector_aligned_tag>::value, ""); 29 static_assert(ex::is_simd_flag_type<ex::overaligned_tag<16>>::value, ""); 30 static_assert(ex::is_simd_flag_type<ex::overaligned_tag<32>>::value, ""); 32 static_assert(!ex::is_simd_flag_type<void>::value, ""); [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/ |
D | put2.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 49 std::string ex(str, iter.base()); in main() local 50 assert(ex == "Saturday"); in main() 54 std::string ex(str, iter.base()); in main() local 55 assert(ex == "Sat"); in main() 59 std::string ex(str, iter.base()); in main() local 60 assert(ex == "May"); in main() 64 std::string ex(str, iter.base()); in main() local 65 assert(ex == "May"); in main() [all …]
|
/external/cronet/stable/third_party/libc++/src/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/ |
D | put2.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 48 std::string ex(str, base(iter)); in main() local 49 assert(ex == "Saturday"); in main() 53 std::string ex(str, base(iter)); in main() local 54 assert(ex == "Sat"); in main() 58 std::string ex(str, base(iter)); in main() local 59 assert(ex == "May"); in main() 63 std::string ex(str, base(iter)); in main() local [all …]
|
/external/cronet/tot/third_party/libc++/src/test/std/localization/locale.categories/category.time/locale.time.put/locale.time.put.members/ |
D | put2.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 48 std::string ex(str, base(iter)); in main() local 49 assert(ex == "Saturday"); in main() 53 std::string ex(str, base(iter)); in main() local 54 assert(ex == "Sat"); in main() 58 std::string ex(str, base(iter)); in main() local 59 assert(ex == "May"); in main() 63 std::string ex(str, base(iter)); in main() local [all …]
|
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/ |
D | ValidateTest.java | 10 * http://www.apache.org/licenses/LICENSE-2.0 57 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithDefaultMessageForFalseExpression() local 58 assertEquals("The validated expression is false", ex.getMessage()); in shouldThrowExceptionWithDefaultMessageForFalseExpression() 73 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithGivenMessageForFalseExpression() local 74 assertEquals("MSG", ex.getMessage()); in shouldThrowExceptionWithGivenMessageForFalseExpression() 79 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithGivenMessageContainingSpecialCharacterForFalseExpression() local 80 assertEquals("%", ex.getMessage()); in shouldThrowExceptionWithGivenMessageContainingSpecialCharacterForFalseExpression() 94 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithLongInsertedIntoTemplateMessageForFalseExpression() local 95 assertEquals("MSG 6", ex.getMessage()); in shouldThrowExceptionWithLongInsertedIntoTemplateMessageForFalseExpression() 109 …final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class, () -> Validate.is… in shouldThrowExceptionWithDoubleInsertedIntoTemplateMessageForFalseExpression() local [all …]
|
/external/json-schema-validator/src/test/java/com/networknt/schema/regex/ |
D | Issue814Test.java | 11 …JDKRegularExpression ex = new JDKRegularExpression("^(list|date|time|string|enum|int|double|long|b… in jdkTypePattern() local 12 assertTrue(ex.matches("list")); in jdkTypePattern() 13 assertTrue(ex.matches("string")); in jdkTypePattern() 14 assertTrue(ex.matches("boolean")); in jdkTypePattern() 15 assertTrue(ex.matches("number")); in jdkTypePattern() 16 assertTrue(ex.matches("enum")); in jdkTypePattern() 17 assertFalse(ex.matches("listZ")); in jdkTypePattern() 18 assertFalse(ex.matches("AenumZ")); in jdkTypePattern() 19 assertFalse(ex.matches("Anumber")); in jdkTypePattern() 24 JDKRegularExpression ex = new JDKRegularExpression("^\\d|[a-zA-Z_]$"); in jdkOptionsPattern() local [all …]
|
/external/cronet/tot/third_party/libc++/src/test/std/experimental/simd/simd.traits/ |
D | memory_alignment.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 20 namespace ex = std::experimental::parallelism_v2; 27 …ex::memory_alignment<ex::simd_mask<T, SimdAbi>>::value == bit_ceil(sizeof(bool) * ex::simd_size_v<… in operator ()() 29 …ex::memory_alignment_v<ex::simd_mask<T, SimdAbi>> == bit_ceil(sizeof(bool) * ex::simd_size_v<T, Si… in operator ()() 38 // on i686-w64-mingw32-clang++, the size of long double is 12 bytes. Disambiguation is needed. in operator ()() 40 …ex::memory_alignment<ex::simd<T, SimdAbi>>::value == bit_ceil(sizeof(T) * ex::simd_size_v<T, SimdA… in operator ()() 41 …static_assert(ex::memory_alignment_v<ex::simd<T, SimdAbi>> == bit_ceil(sizeof(T) * ex::simd_size_v… in operator ()() 50 …static_assert(ex::memory_alignment_v<ex::simd<T, ex::simd_abi::fixed_size<N>>> == sizeof(T) * bit_… in check() [all …]
|
/external/cronet/stable/third_party/libc++/src/test/std/experimental/simd/simd.traits/ |
D | memory_alignment.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 20 namespace ex = std::experimental::parallelism_v2; 27 …ex::memory_alignment<ex::simd_mask<T, SimdAbi>>::value == bit_ceil(sizeof(bool) * ex::simd_size_v<… in operator ()() 29 …ex::memory_alignment_v<ex::simd_mask<T, SimdAbi>> == bit_ceil(sizeof(bool) * ex::simd_size_v<T, Si… in operator ()() 38 // on i686-w64-mingw32-clang++, the size of long double is 12 bytes. Disambiguation is needed. in operator ()() 40 …ex::memory_alignment<ex::simd<T, SimdAbi>>::value == bit_ceil(sizeof(T) * ex::simd_size_v<T, SimdA… in operator ()() 41 …static_assert(ex::memory_alignment_v<ex::simd<T, SimdAbi>> == bit_ceil(sizeof(T) * ex::simd_size_v… in operator ()() 50 …static_assert(ex::memory_alignment_v<ex::simd<T, ex::simd_abi::fixed_size<N>>> == sizeof(T) * bit_… in check() [all …]
|
/external/cronet/stable/third_party/libc++/src/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/ |
D | put_double.hex.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 // XFAIL: win32-broken-printf-a-precision 70 double v = -0.; in test1() 88 std::string ex(str, base(iter)); in test1() local 89 assert(ex == "-0x0" LC_SUFFIX "p+0"); in test1() 96 std::string ex(str, base(iter)); in test1() local 97 assert(ex == "-0x0" LC_SUFFIX "p+0" PADDING); in test1() 104 std::string ex(str, base(iter)); in test1() local [all …]
|
D | put_long_double.hex.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 // XFAIL: win32-broken-printf-a-precision 70 long double v = -0.; in test1() 88 std::string ex(str, base(iter)); in test1() local 89 assert(ex == "-0x0" LC_SUFFIX "p+0"); in test1() 96 std::string ex(str, base(iter)); in test1() local 97 assert(ex == "-0x0" LC_SUFFIX "p+0" PADDING); in test1() 104 std::string ex(str, base(iter)); in test1() local [all …]
|
D | put_long_double.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 // XFAIL: win32-broken-printf-g-precision 72 std::string ex(str, base(iter)); in test1() local 73 assert(ex == "0"); in test1() 80 std::string ex(str, base(iter)); in test1() local 81 assert(ex == "0************************"); in test1() 88 std::string ex(str, base(iter)); in test1() local 89 assert(ex == "************************0"); in test1() [all …]
|
/external/cronet/tot/third_party/libc++/src/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/ |
D | put_double.hex.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 // XFAIL: win32-broken-printf-a-precision 70 double v = -0.; in test1() 88 std::string ex(str, base(iter)); in test1() local 89 assert(ex == "-0x0" LC_SUFFIX "p+0"); in test1() 96 std::string ex(str, base(iter)); in test1() local 97 assert(ex == "-0x0" LC_SUFFIX "p+0" PADDING); in test1() 104 std::string ex(str, base(iter)); in test1() local [all …]
|
D | put_long_double.hex.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 // XFAIL: win32-broken-printf-a-precision 70 long double v = -0.; in test1() 88 std::string ex(str, base(iter)); in test1() local 89 assert(ex == "-0x0" LC_SUFFIX "p+0"); in test1() 96 std::string ex(str, base(iter)); in test1() local 97 assert(ex == "-0x0" LC_SUFFIX "p+0" PADDING); in test1() 104 std::string ex(str, base(iter)); in test1() local [all …]
|
D | put_long_double.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 // XFAIL: win32-broken-printf-g-precision 72 std::string ex(str, base(iter)); in test1() local 73 assert(ex == "0"); in test1() 80 std::string ex(str, base(iter)); in test1() local 81 assert(ex == "0************************"); in test1() 88 std::string ex(str, base(iter)); in test1() local 89 assert(ex == "************************0"); in test1() [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/ |
D | put_long_double.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 22 // XFAIL: linux-gnu 78 std::string ex(str, iter.base()); in test1() local 79 assert(ex == "0"); in test1() 86 std::string ex(str, iter.base()); in test1() local 87 assert(ex == "0************************"); in test1() 94 std::string ex(str, iter.base()); in test1() local 95 assert(ex == "************************0"); in test1() 102 std::string ex(str, iter.base()); in test1() local [all …]
|
D | put_double.pass.cpp | 1 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===// 73 std::string ex(str, iter.base()); in test1() local 74 assert(ex == "0"); in test1() 81 std::string ex(str, iter.base()); in test1() local 82 assert(ex == "0************************"); in test1() 89 std::string ex(str, iter.base()); in test1() local 90 assert(ex == "************************0"); in test1() 97 std::string ex(str, iter.base()); in test1() local 98 assert(ex == "************************0"); in test1() [all …]
|
/external/cronet/stable/third_party/libc++/src/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/ |
D | put_string_en_US.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 17 // XFAIL: LIBCXX-ANDROID-FIXME 19 // REQUIRES: locale.en_US.UTF-8 73 std::string ex(str, base(iter)); in main() local 74 assert(ex == "0.00"); in main() 77 std::string v = "-1"; in main() 80 std::string ex(str, base(iter)); in main() local 82 assert(ex == "(0.01)"); in main() [all …]
|
D | put_long_double_en_US.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 17 // XFAIL: LIBCXX-ANDROID-FIXME 19 // REQUIRES: locale.en_US.UTF-8 73 std::string ex(str, base(iter)); in main() local 74 assert(ex == "0.00"); in main() 77 long double v = -1; in main() 80 std::string ex(str, base(iter)); in main() local 82 assert(ex == "(0.01)"); in main() [all …]
|
/external/cronet/tot/third_party/libc++/src/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/ |
D | put_string_en_US.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 17 // XFAIL: LIBCXX-ANDROID-FIXME 19 // REQUIRES: locale.en_US.UTF-8 73 std::string ex(str, base(iter)); in main() local 74 assert(ex == "0.00"); in main() 77 std::string v = "-1"; in main() 80 std::string ex(str, base(iter)); in main() local 82 assert(ex == "(0.01)"); in main() [all …]
|
D | put_long_double_en_US.pass.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 17 // XFAIL: LIBCXX-ANDROID-FIXME 19 // REQUIRES: locale.en_US.UTF-8 73 std::string ex(str, base(iter)); in main() local 74 assert(ex == "0.00"); in main() 77 long double v = -1; in main() 80 std::string ex(str, base(iter)); in main() local 82 assert(ex == "(0.01)"); in main() [all …]
|
/external/cronet/tot/base/types/ |
D | expected_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 36 // NOLINTNEXTLINE(google-explicit-constructor) 57 // NOLINTNEXTLINE(google-explicit-constructor) 203 constexpr expected<int, Error> ex; in TEST() local 204 static_assert(ex.has_value()); in TEST() 205 EXPECT_EQ(ex.value(), 0); in TEST() 220 // [1] https://github.com/abseil/abseil-cpp/blob/50739/absl/types/internal/variant.h#L548 in TEST() 319 constexpr expected<Strong<int>, int> ex(42); in TEST() local 320 static_assert(!std::is_convertible_v<int, decltype(ex)>); in TEST() 321 static_assert(ex.has_value()); in TEST() [all …]
|
/external/cronet/stable/base/types/ |
D | expected_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 36 // NOLINTNEXTLINE(google-explicit-constructor) 57 // NOLINTNEXTLINE(google-explicit-constructor) 203 constexpr expected<int, Error> ex; in TEST() local 204 static_assert(ex.has_value()); in TEST() 205 EXPECT_EQ(ex.value(), 0); in TEST() 220 // [1] https://github.com/abseil/abseil-cpp/blob/50739/absl/types/internal/variant.h#L548 in TEST() 319 constexpr expected<Strong<int>, int> ex(42); in TEST() local 320 static_assert(!std::is_convertible_v<int, decltype(ex)>); in TEST() 321 static_assert(ex.has_value()); in TEST() [all …]
|