Home
last modified time | relevance | path

Searched refs:test (Results 1 - 25 of 6341) sorted by relevance

12345678910>>...254

/third_party/rust/crates/serde/test_suite/tests/
H A Dtest_de.rs156 fn test<'de, T>(value: T, tokens: &'de [Token]) in test() functions
214 #[test]
216 test(true, &[Token::Bool(true)]); in test_bool()
217 test(false, &[Token::Bool(false)]); in test_bool()
220 #[test]
222 let test = test::<i8>; in test_i8()
225 test(-128, &[Token::I8(-128)]); in test_i8()
226 test(-128, &[Token::I16(-128)]); in test_i8()
227 test( in test_i8()
2321 fn test<L, A, T>(load: L, val: T) test_atomics() functions
[all...]
H A Dtest_de_error.rs71 #[test]
73 let test = assert_de_tokens_error::<i8>; in test_i8()
76 test( in test_i8()
80 test( in test_i8()
84 test( in test_i8()
88 test( in test_i8()
92 test( in test_i8()
96 test( in test_i8()
102 test( in test_i8()
106 test( in test_i8()
[all...]
/third_party/ffmpeg/libavformat/tests/
H A Durl.c50 static void test(const char *base, const char *rel) in test() function
105 test_decompose("test?url=http://server/path"); in main()
109 test(NULL, "baz"); in main()
110 test("/foo/bar", "baz"); in main()
111 test("/foo/bar", "../baz"); in main()
112 test("/foo/bar", "/baz"); in main()
113 test("/foo/bar", "../../../baz"); in main()
114 test("http://server/foo/", "baz"); in main()
115 test("http://server/foo/bar", "baz"); in main()
116 test("htt in main()
[all...]
/third_party/typescript/tests/baselines/reference/
H A DcontrolFlowManyCallExpressionStatementsPerf.js2 function test(x: boolean): boolean { return x; }
7 test(state as any && state);
8 test(state as any && state);
9 test(state as any && state);
10 test(state as any && state);
11 test(state as any && state);
12 test(state as any && state);
13 test(state as any && state);
14 test(state as any && state);
15 test(stat
68 function test(x) { return x; } global() function
[all...]
H A DtypeParameterConstraints1.js2 function foo1<T extends any>(test: T) { }
3 function foo2<T extends number>(test: T) { }
4 function foo3<T extends string>(test: T) { }
5 function foo4<T extends Date>(test: T) { } // valid
6 function foo5<T extends RegExp>(test: T) { } // valid
7 function foo6<T extends hm>(test: T) { }
8 function foo7<T extends Object>(test: T) { } // valid
9 function foo8<T extends "">(test: T) { }
10 function foo9<T extends 1 > (test: T) { }
11 function foo10<T extends (1)> (test
[all...]
H A DprivateNameFieldUnaryMutation.js3 #test: number = 24;
5 this.#test++;
6 this.#test--;
7 ++this.#test;
8 --this.#test;
9 const a = this.#test++;
10 const b = this.#test--;
11 const c = ++this.#test;
12 const d = --this.#test;
13 for (this.#test
[all...]
H A DtruthinessCallExpressionCoercion.js17 function test() { return Math.random() > 0.5; }
19 if (test) { // error
20 console.log('test');
23 if (test) { // ok
24 console.log(test);
27 if (test) { // ok
28 test();
31 if (test) { // ok
33 test();
37 if (test) { // erro
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/
H A DUCharacterSurrogateTest.java11 package ohos.global.icu.dev.test.lang;
17 import ohos.global.icu.dev.test.TestFmwk;
243 void test(String s, int start, int limit, int expected) { in TestCodePointCount()
271 Test test = new Test(); in TestCodePointCount()
272 test.fail(null, 0, 1, NullPointerException.class); in TestCodePointCount()
273 test.fail("a", -1, 0, IndexOutOfBoundsException.class); in TestCodePointCount()
274 test.fail("a", 1, 2, IndexOutOfBoundsException.class); in TestCodePointCount()
275 test.fail("a", 1, 0, IndexOutOfBoundsException.class); in TestCodePointCount()
276 test.test("", in TestCodePointCount()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
H A DUCharacterSurrogateTest.java10 package com.ibm.icu.dev.test.lang;
16 import com.ibm.icu.dev.test.TestFmwk;
168 // Also test with int values. in TestToCodePoint()
251 void test(String s, int start, int limit, int expected) { in TestCodePointCount()
279 Test test = new Test(); in TestCodePointCount()
280 test.fail(null, 0, 1, NullPointerException.class); in TestCodePointCount()
281 test.fail("a", -1, 0, IndexOutOfBoundsException.class); in TestCodePointCount()
282 test.fail("a", 1, 2, IndexOutOfBoundsException.class); in TestCodePointCount()
283 test.fail("a", 1, 0, IndexOutOfBoundsException.class); in TestCodePointCount()
284 test in TestCodePointCount()
[all...]
/third_party/rust/crates/os_str_bytes/tests/
H A Draw_integration.rs8 #[test]
11 fn test(result: bool, suffix: &[u8]) { in test_ends_with() functions
16 test(true, b""); in test_ends_with()
17 test(true, b"r"); in test_ends_with()
18 test(true, b"ar"); in test_ends_with()
19 test(true, b"bar"); in test_ends_with()
21 test(true, b"\xA9bar"); in test_ends_with()
22 test(true, b"\x92\xA9bar"); in test_ends_with()
23 test(true, b"\x9F\x92\xA9bar"); in test_ends_with()
25 test(cf in test_ends_with()
39 fn test(result: bool, suffix: &str) { test_empty_ends_with() functions
54 fn test(result: bool, prefix: &[u8]) { test_starts_with() functions
82 fn test(result: bool, prefix: &str) { test_empty_starts_with() functions
[all...]
/third_party/node/test/cctest/
H A Dtest_base64.cc12 auto test = [](const char* string, const char* base64_string) { in TEST() local
21 test("a", "YQ=="); in TEST()
22 test("ab", "YWI="); in TEST()
23 test("abc", "YWJj"); in TEST()
24 test("abcd", "YWJjZA=="); in TEST()
25 test("abcde", "YWJjZGU="); in TEST()
26 test("abcdef", "YWJjZGVm"); in TEST()
28 test("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do " in TEST()
48 auto test = [](const char* string, const char* base64_string) { in TEST() local
57 test("\x6 in TEST()
62 auto test = [](const char* base64_string, const char* string) { TEST() local
[all...]
/third_party/rust/crates/os_str_bytes/src/windows/
H A Dtests.rs3 #[test]
10 fn test(error: EncodingError, string: &[u8]) { in test_invalid() functions
14 test(Byte(b'\x83'), b"\x0C\x83\xD7\x3E"); in test_invalid()
15 test(Byte(b'\x52'), b"\x19\xF7\x52\x84"); in test_invalid()
16 test(Byte(b'\xB8'), b"\x70\xB8\x1F\x66"); in test_invalid()
17 test(CodePoint(0x34_0388), b"\x70\xFD\x80\x8E\x88"); in test_invalid()
18 test(Byte(b'\x80'), b"\x80"); in test_invalid()
19 test(Byte(b'\x80'), b"\x80\x80"); in test_invalid()
20 test(Byte(b'\x80'), b"\x80\x80\x80"); in test_invalid()
21 test(Byt in test_invalid()
[all...]
/third_party/skia/tests/
H A DPathOpsAsWindingTest.cpp54 SkPath test, result; in DEF_TEST() local
55 test.addRect({1, 2, 3, 4}); in DEF_TEST()
56 // if test is winding in DEF_TEST()
57 REPORTER_ASSERT(reporter, AsWinding(test, &result)); in DEF_TEST()
58 REPORTER_ASSERT(reporter, test == result); in DEF_TEST()
59 // if test is empty in DEF_TEST()
60 test.reset(); in DEF_TEST()
61 test.setFillType(SkPathFillType::kEvenOdd); in DEF_TEST()
62 REPORTER_ASSERT(reporter, AsWinding(test, &result)); in DEF_TEST()
65 // if test i in DEF_TEST()
[all...]
/third_party/openssl/test/
H A Dgenerate_ssl_tests.pl46 my $source = srctop_file("test", "ssl_test.tmpl");
54 foreach my $test (@ssltests::tests) {
55 $test->{"server"} = { (%ssltests::base_server, %{$test->{"server"}}) };
56 if (defined $test->{"server2"}) {
57 $test->{"server2"} = { (%ssltests::base_server, %{$test->{"server2"}}) };
59 if ($test->{"server"}->{"extra"} &&
60 defined $test->{"server"}->{"extra"}->{"ServerNameCallback"}) {
62 $test
[all...]
H A Dhmactest.c41 } test[8] = { variable
43 "", 0, "More text test vectors to stuff up EBCDIC machines :-)", 54,
66 "", 0, "My test data", 12,
70 "", 0, "My test data", 12,
74 "123456", 6, "My test data", 12,
78 "12345", 5, "My test data again", 18,
92 ebcdic2ascii(test[0].data, test[0].data, test[0].data_len); in test_hmac_md5()
93 ebcdic2ascii(test[ in test_hmac_md5()
[all...]
/third_party/rust/crates/memchr/src/tests/memchr/
H A Dmemchr.rs10 #[test]
12 for test in memchr_tests() { in memchr1_find()
13 test.one(false, memchr); in memchr1_find()
17 #[test]
19 for test in memchr_tests() { in memchr1_fallback_find()
20 test.one(false, fallback::memchr); in memchr1_fallback_find()
24 #[test]
26 for test in memchr_tests() { in memchr2_find()
27 test.two(false, memchr2); in memchr2_find()
31 #[test]
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Ditmajor.cpp10 * MajorTestLevel is the top level test class for everything in the directory "IntlWork".
47 suite test; \
48 callTest(test, par); \
58 IntlTestUtilities test; in runIndexedTest() local
59 callTest( test, par ); in runIndexedTest()
67 IntlTestNormalize test; in runIndexedTest() local
68 callTest( test, par ); in runIndexedTest()
77 IntlTestCollator test; in runIndexedTest() local
78 callTest( test, par ); in runIndexedTest()
87 RegexTest test; in runIndexedTest() local
97 IntlTestFormat test; runIndexedTest() local
107 IntlTestTransliterator test; runIndexedTest() local
117 IntlTestRBBI test; runIndexedTest() local
126 IntlTestRBNF test; runIndexedTest() local
135 RbnfRoundTripTest test; runIndexedTest() local
145 ICUServiceTest test; runIndexedTest() local
154 TestIDNA test; runIndexedTest() local
163 ConversionTest test; runIndexedTest() local
173 IntlTestRBNFParse test; runIndexedTest() local
182 CharsetDetectionTest test; runIndexedTest() local
193 IntlTestSpoof test; runIndexedTest() local
[all...]
/third_party/node/test/parallel/
H A Dtest-console-table.js14 function test(data, only, expected) { function
30 test(null, 'null\n');
31 test(undefined, 'undefined\n');
32 test(false, 'false\n');
33 test('hi', 'hi\n');
34 test(Symbol(), 'Symbol()\n');
35 test(function() {}, '[Function (anonymous)]\n');
37 test([1, 2, 3], `
47 test([Symbol(), 5, [10]], `
57 test([nul
[all...]
H A Dtest-whatwg-url-custom-parsing.js18 const originalFailures = tests.filter((test) => test.failure);
22 { input: 'test' },
30 { input: 'test', base: null },
41 .map((test) => ({
43 base: test.input,
53 for (const test of failureTests) {
55 () => new URL(test.input, test.base),
67 for (const test o
[all...]
/third_party/protobuf/js/binary/
H A Dproto_test.js38 // CommonJS-LoadFromFile: ../testbinary_pb proto.jspb.test
39 goog.require('proto.jspb.test.ExtendsWithMessage');
40 goog.require('proto.jspb.test.ForeignEnum');
41 goog.require('proto.jspb.test.ForeignMessage');
42 goog.require('proto.jspb.test.TestAllTypes');
43 goog.require('proto.jspb.test.TestExtendable');
44 goog.require('proto.jspb.test.extendOptionalBool');
45 goog.require('proto.jspb.test.extendOptionalBytes');
46 goog.require('proto.jspb.test.extendOptionalDouble');
47 goog.require('proto.jspb.test
[all...]
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
H A Dproto_test.js37 // CommonJS-LoadFromFile: ../testbinary_pb proto.jspb.test
38 goog.require('proto.jspb.test.ExtendsWithMessage');
39 goog.require('proto.jspb.test.ForeignEnum');
40 goog.require('proto.jspb.test.ForeignMessage');
41 goog.require('proto.jspb.test.TestAllTypes');
42 goog.require('proto.jspb.test.TestExtendable');
43 goog.require('proto.jspb.test.extendOptionalBool');
44 goog.require('proto.jspb.test.extendOptionalBytes');
45 goog.require('proto.jspb.test.extendOptionalDouble');
46 goog.require('proto.jspb.test
[all...]
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
H A Dproto_test.js37 // CommonJS-LoadFromFile: ../testbinary_pb proto.jspb.test
38 goog.require('proto.jspb.test.ExtendsWithMessage');
39 goog.require('proto.jspb.test.ForeignEnum');
40 goog.require('proto.jspb.test.ForeignMessage');
41 goog.require('proto.jspb.test.TestAllTypes');
42 goog.require('proto.jspb.test.TestExtendable');
43 goog.require('proto.jspb.test.extendOptionalBool');
44 goog.require('proto.jspb.test.extendOptionalBytes');
45 goog.require('proto.jspb.test.extendOptionalDouble');
46 goog.require('proto.jspb.test
[all...]
/third_party/python/Lib/unittest/test/
H A Dtest_skipping.py3 from unittest.test.support import LoggingResult
16 test = Foo("test_skip_me")
17 self.assertIs(test.run(result), result)
19 self.assertEqual(result.skipped, [(test, "skip")])
22 result = test.run()
25 self.assertEqual(result.skipped, [(test, "skip")])
28 # Try letting setUp skip the test now.
37 test = Foo("test_nothing")
38 self.assertIs(test.run(result), result)
40 self.assertEqual(result.skipped, [(test, "testin
497 def test(self): global() member in Test_TestSkipping.test_debug_skipping_class.Foo
513 def test(self): global() member in Test_TestSkipping.test_debug_skipping_subtests.Foo
[all...]
/third_party/skia/third_party/externals/tint/src/reader/spirv/
H A Dparser_impl_module_var_test.cc117 auto p = parser(test::Assemble(assembly)); in TEST_F()
120 const auto module_ast = test::ToString(p->program()); in TEST_F()
125 auto p = parser(test::Assemble(Preamble() + FragMain() + R"( in TEST_F()
141 auto p = parser(test::Assemble(Preamble() + FragMain() + R"( in TEST_F()
159 auto p = parser(test::Assemble(Preamble() + FragMain() + R"( in TEST_F()
177 auto p = parser(test::Assemble(Preamble() + FragMain() + R"( in TEST_F()
193 auto p = parser(test::Assemble(Preamble() + FragMain() + R"( in TEST_F()
203 const auto module_str = test::ToString(p->program()); in TEST_F()
208 auto p = parser(test::Assemble(Preamble() + FragMain() + R"( in TEST_F()
219 const auto module_str = test in TEST_F()
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
H A Dutils_module_tests.c57 const struct printf_test_data *test = &printf_tests[i]; in printf_encode_decode_tests() local
58 printf_encode(buf, sizeof(buf), test->data, test->len); in printf_encode_decode_tests()
62 if (binlen != test->len || in printf_encode_decode_tests()
63 os_memcmp(bin, test->data, binlen) != 0) { in printf_encode_decode_tests()
69 binlen = printf_decode(bin, sizeof(bin), test->encoded); in printf_encode_decode_tests()
70 if (binlen != test->len || in printf_encode_decode_tests()
71 os_memcmp(bin, test->data, binlen) != 0) { in printf_encode_decode_tests()
120 wpa_printf(MSG_ERROR, "%d printf test(s) failed", errors); in printf_encode_decode_tests()
214 wpa_printf(MSG_ERROR, "%d bitfield test( in bitfield_tests()
897 const struct json_test_data *test = &json_test_cases[i]; json_tests() local
1071 struct const_time_fill_msb_test *test; const_time_tests() local
1083 struct const_time_is_zero_test *test; const_time_tests() local
1095 struct const_time_eq_test *test; const_time_tests() local
1113 struct const_time_eq_bin_test *test; const_time_tests() local
1126 struct const_time_select_test *test; const_time_tests() local
1139 struct const_time_select_int_test *test; const_time_tests() local
1152 struct const_time_select_u8_test *test; const_time_tests() local
1165 struct const_time_select_s8_test *test; const_time_tests() local
1178 struct const_time_select_bin_test *test; const_time_tests() local
1193 struct const_time_memcmp_test *test; const_time_tests() local
[all...]

Completed in 13 milliseconds

12345678910>>...254