Searched refs:test (Results 26 - 50 of 4153) sorted by relevance

1234567891011>>

/external/v8/test/mjsunit/regress/
H A Dregress-6-9-regexp.js30 assertFalse(/[6-9]/.test('2'));
H A Dregress-1592.js34 function test(a) { function
39 test(1);
40 test(1);
42 %OptimizeFunctionOnNextCall(test);
45 test(1);
H A Dregress-2032.js31 assertTrue(/[@-A]/i.test("a"));
32 assertTrue(/[@-A]/i.test("A"));
33 assertTrue(/[@-A]/i.test("@"));
35 assertFalse(/[@-A]/.test("a"));
36 assertTrue(/[@-A]/.test("A"));
37 assertTrue(/[@-A]/.test("@"));
39 assertFalse(/[¿-À]/i.test('¾'));
40 assertTrue(/[¿-À]/i.test('¿'));
41 assertTrue(/[¿-À]/i.test('À'));
42 assertTrue(/[¿-À]/i.test('à'));
[all...]
/external/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/
H A Dhas_denorm_loss.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::has_denorm_loss == expected, "has_denorm_loss test 1");
21 static_assert(std::numeric_limits<const T>::has_denorm_loss == expected, "has_denorm_loss test 2");
22 static_assert(std::numeric_limits<volatile T>::has_denorm_loss == expected, "has_denorm_loss test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_denorm_loss == expected, "has_denorm_loss test 4");
28 test<bool, false>();
29 test<char, false>();
30 test<signed char, false>();
31 test<unsigne
[all...]
H A Dhas_infinity.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::has_infinity == expected, "has_infinity test 1");
21 static_assert(std::numeric_limits<const T>::has_infinity == expected, "has_infinity test 2");
22 static_assert(std::numeric_limits<volatile T>::has_infinity == expected, "has_infinity test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_infinity == expected, "has_infinity test 4");
28 test<bool, false>();
29 test<char, false>();
30 test<signed char, false>();
31 test<unsigne
[all...]
H A Dhas_quiet_NaN.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::has_quiet_NaN == expected, "has_quiet_NaN test 1");
21 static_assert(std::numeric_limits<const T>::has_quiet_NaN == expected, "has_quiet_NaN test 2");
22 static_assert(std::numeric_limits<volatile T>::has_quiet_NaN == expected, "has_quiet_NaN test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_quiet_NaN == expected, "has_quiet_NaN test 4");
28 test<bool, false>();
29 test<char, false>();
30 test<signed char, false>();
31 test<unsigne
[all...]
H A Dhas_signaling_NaN.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::has_signaling_NaN == expected, "has_signaling_NaN test 1");
21 static_assert(std::numeric_limits<const T>::has_signaling_NaN == expected, "has_signaling_NaN test 2");
22 static_assert(std::numeric_limits<volatile T>::has_signaling_NaN == expected, "has_signaling_NaN test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_signaling_NaN == expected, "has_signaling_NaN test 4");
28 test<bool, false>();
29 test<char, false>();
30 test<signed char, false>();
31 test<unsigne
[all...]
H A Dis_bounded.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::is_bounded == expected, "is_bounded test 1");
21 static_assert(std::numeric_limits<const T>::is_bounded == expected, "is_bounded test 2");
22 static_assert(std::numeric_limits<volatile T>::is_bounded == expected, "is_bounded test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_bounded == expected, "is_bounded test 4");
28 test<bool, true>();
29 test<char, true>();
30 test<signed char, true>();
31 test<unsigne
[all...]
H A Dis_exact.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::is_exact == expected, "is_exact test 1");
21 static_assert(std::numeric_limits<const T>::is_exact == expected, "is_exact test 2");
22 static_assert(std::numeric_limits<volatile T>::is_exact == expected, "is_exact test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_exact == expected, "is_exact test 4");
28 test<bool, true>();
29 test<char, true>();
30 test<signed char, true>();
31 test<unsigne
[all...]
H A Dis_integer.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::is_integer == expected, "is_integer test 1");
21 static_assert(std::numeric_limits<const T>::is_integer == expected, "is_integer test 2");
22 static_assert(std::numeric_limits<volatile T>::is_integer == expected, "is_integer test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_integer == expected, "is_integer test 4");
28 test<bool, true>();
29 test<char, true>();
30 test<signed char, true>();
31 test<unsigne
[all...]
H A Dis_signed.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::is_signed == expected, "is_signed test 1");
21 static_assert(std::numeric_limits<const T>::is_signed == expected, "is_signed test 2");
22 static_assert(std::numeric_limits<volatile T>::is_signed == expected, "is_signed test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_signed == expected, "is_signed test 4");
28 test<bool, false>();
29 test<char, char(-1) < char(0)>();
30 test<signed char, true>();
31 test<unsigne
[all...]
H A Dtinyness_before.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::tinyness_before == expected, "tinyness_before test 1");
21 static_assert(std::numeric_limits<const T>::tinyness_before == expected, "tinyness_before test 2");
22 static_assert(std::numeric_limits<volatile T>::tinyness_before == expected, "tinyness_before test 3");
23 static_assert(std::numeric_limits<const volatile T>::tinyness_before == expected, "tinyness_before test 4");
28 test<bool, false>();
29 test<char, false>();
30 test<signed char, false>();
31 test<unsigne
[all...]
H A Dis_modulo.pass.cpp10 // test numeric_limits
18 test() function
20 static_assert(std::numeric_limits<T>::is_modulo == expected, "is_modulo test 1");
21 static_assert(std::numeric_limits<const T>::is_modulo == expected, "is_modulo test 2");
22 static_assert(std::numeric_limits<volatile T>::is_modulo == expected, "is_modulo test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_modulo == expected, "is_modulo test 4");
28 test<bool, false>();
29 // test<char, false>(); // don't know
30 test<signed char, false>();
31 test<unsigne
[all...]
/external/libcxx/test/std/utilities/ratio/ratio.ratio/
H A Dratio.pass.cpp10 // test ratio: The static data members num and den shall have thcommon
16 void test() function
24 test<1, 1, 1, 1>();
25 test<1, 10, 1, 10>();
26 test<10, 10, 1, 1>();
27 test<10, 1, 10, 1>();
28 test<12, 4, 3, 1>();
29 test<12, -4, -3, 1>();
30 test<-12, 4, -3, 1>();
31 test<
[all...]
/external/libcxx/test/std/strings/basic.string/string.ops/string_substr/
H A Dsubstr.pass.cpp23 test(const S& s, typename S::size_type pos, typename S::size_type n) function
44 test(S(""), 0, 0);
45 test(S(""), 1, 0);
46 test(S("pniot"), 0, 0);
47 test(S("htaob"), 0, 1);
48 test(S("fodgq"), 0, 2);
49 test(S("hpqia"), 0, 4);
50 test(S("qanej"), 0, 5);
51 test(S("dfkap"), 1, 0);
52 test(
[all...]
/external/libcxx/test/std/experimental/string.view/string.view.find/
H A Dfind_last_not_of_pointer_size_size.pass.cpp21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, function
32 test(S(""), "", 0, 0, S::npos);
33 test(S(""), "irkhs", 0, 0, S::npos);
34 test(S(""), "kante", 0, 1, S::npos);
35 test(S(""), "oknlr", 0, 2, S::npos);
36 test(S(""), "pcdro", 0, 4, S::npos);
37 test(S(""), "bnrpe", 0, 5, S::npos);
38 test(S(""), "jtdaefblso", 0, 0, S::npos);
39 test(S(""), "oselktgbca", 0, 1, S::npos);
40 test(
[all...]
H A Drfind_pointer_size_size.pass.cpp20 test(const S& s, const typename S::value_type* str, typename S::size_type pos, function
31 test(S(""), "", 0, 0, 0);
32 test(S(""), "abcde", 0, 0, 0);
33 test(S(""), "abcde", 0, 1, S::npos);
34 test(S(""), "abcde", 0, 2, S::npos);
35 test(S(""), "abcde", 0, 4, S::npos);
36 test(S(""), "abcde", 0, 5, S::npos);
37 test(S(""), "abcdeabcde", 0, 0, 0);
38 test(S(""), "abcdeabcde", 0, 1, S::npos);
39 test(
[all...]
/external/libcxx/test/std/strings/basic.string/string.ops/string_find.last.not.of/
H A Dpointer_size_size.pass.cpp21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, function
32 test(S(""), "", 0, 0, S::npos);
33 test(S(""), "irkhs", 0, 0, S::npos);
34 test(S(""), "kante", 0, 1, S::npos);
35 test(S(""), "oknlr", 0, 2, S::npos);
36 test(S(""), "pcdro", 0, 4, S::npos);
37 test(S(""), "bnrpe", 0, 5, S::npos);
38 test(S(""), "jtdaefblso", 0, 0, S::npos);
39 test(S(""), "oselktgbca", 0, 1, S::npos);
40 test(
[all...]
/external/libcxx/test/std/strings/basic.string/string.ops/string_rfind/
H A Dpointer_size_size.pass.cpp21 test(const S& s, const typename S::value_type* str, typename S::size_type pos, function
32 test(S(""), "", 0, 0, 0);
33 test(S(""), "abcde", 0, 0, 0);
34 test(S(""), "abcde", 0, 1, S::npos);
35 test(S(""), "abcde", 0, 2, S::npos);
36 test(S(""), "abcde", 0, 4, S::npos);
37 test(S(""), "abcde", 0, 5, S::npos);
38 test(S(""), "abcdeabcde", 0, 0, 0);
39 test(S(""), "abcdeabcde", 0, 1, S::npos);
40 test(
[all...]
/external/libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iter.ops/reverse.iter.cons/
H A Ddefault.pass.cpp22 test() function
29 test<bidirectional_iterator<const char*> >();
30 test<random_access_iterator<char*> >();
31 test<char*>();
32 test<const char*>();
/external/v8/test/mjsunit/
H A Darray-shift3.js8 function test(a) { function
12 assertEquals(["element 1",{}], test([0,,{}]));
13 assertEquals(["element 1",10], test([9,,10]));
14 %OptimizeFunctionOnNextCall(test);
15 assertEquals(["element 1",10], test([9,,10]));
H A Dcompare-nil.js30 function test(v) { function
33 assertFalse(test(true));
34 assertFalse(test(true));
35 assertTrue(test(null));
36 assertTrue(test(null));
H A Dglobal-load-from-eval-in-with.js32 function test(obj, source) { function
39 test({ x: 42 }, "assertEquals(42, x)");
40 test({ y: 42 }, "assertEquals(27, x)");
43 test({ x: 42 }, "function f() { assertEquals(42, x) }; f();");
44 test({ y: 42 }, "function f() { assertEquals(27, x) }; f();");
48 test({ x: 42 }, "function f() { function g() { assertEquals(42, x) }; g() }; f();");
49 test({ y: 42 }, "function f() { function g() { assertEquals(27, x) }; g() }; f();");
52 test({ x: 42 }, "function f() { eval('1'); assertEquals(42, x) }; f();");
53 test({ y: 42 }, "function f() { eval('1'); assertEquals(27, x) }; f();");
57 test({
[all...]
/external/libcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/
H A Datomic_is_lock_free.pass.cpp26 test() function
42 test<A>();
43 test<char>();
44 test<signed char>();
45 test<unsigned char>();
46 test<short>();
47 test<unsigned short>();
48 test<int>();
49 test<unsigned int>();
50 test<lon
[all...]
/external/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/
H A Dsize_pointer_size.pass.cpp23 test(S s, typename S::size_type pos, const typename S::value_type* str, function
46 test(S(""), 0, "", 0, S(""));
47 test(S(""), 0, "12345", 0, S(""));
48 test(S(""), 0, "12345", 1, S("1"));
49 test(S(""), 0, "12345", 2, S("12"));
50 test(S(""), 0, "12345", 4, S("1234"));
51 test(S(""), 0, "12345", 5, S("12345"));
52 test(S(""), 0, "1234567890", 0, S(""));
53 test(S(""), 0, "1234567890", 1, S("1"));
54 test(
[all...]

Completed in 567 milliseconds

1234567891011>>