Home
last modified time | relevance | path

Searched refs:check (Results 1 – 25 of 8866) sorted by relevance

12345678910>>...355

/external/python/cpython3/Lib/lib2to3/tests/
Dtest_fixers.py35 def check(self, before, after, ignore_warnings=False): member in FixerTestCase
79 self.check(b, a)
87 self.check(b, a)
95 self.check(b, a)
103 self.check(b, a)
108 self.check(b, a)
113 self.check(b, a)
118 self.check(b, a)
123 self.check(b, a)
128 self.check(b, a)
[all …]
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_fixers.py36 def check(self, before, after, ignore_warnings=False): member in FixerTestCase
80 self.check(b, a)
88 self.check(b, a)
96 self.check(b, a)
104 self.check(b, a)
109 self.check(b, a)
114 self.check(b, a)
119 self.check(b, a)
124 self.check(b, a)
129 self.check(b, a)
[all …]
/external/python/cpython3/Lib/test/
Dtest_fnmatch.py22 check = self.check_match
23 check('abc', 'abc')
24 check('abc', '?*?')
25 check('abc', '???*')
26 check('abc', '*???')
27 check('abc', '???')
28 check('abc', '*')
29 check('abc', 'ab[cd]')
30 check('abc', 'ab[!de]')
31 check('abc', 'ab[de]', False)
[all …]
Dtest_tcl.py255 def check(expr, expected): function
264 check('', '0')
265 check('8.2 + 6', '14.2')
266 check('3.1 + $a', '6.1')
267 check('2 + "$a.$b"', '5.6')
268 check('4*[llength "6 2"]', '8')
269 check('{word one} < "word $a"', '0')
270 check('4*2 < 7', '0')
271 check('hypot($a, 4)', '5.0')
272 check('5 / 4', '1')
[all …]
Dtest_html.py21 def check(text, expected): function
30 check('no character references', 'no character references')
32 check('&\n&\t& &&', '&\n&\t& &&')
34 check('&0 &9 &a &0; &9; &a;', '&0 &9 &a &0; &9; &a;')
37 check(x, x)
38 check(x+';', x+';')
47 check(s % num, char)
49 check((s+end) % num, char+end)
66 check(e, '";')
69 check(e, '"quot;')
[all …]
Dtest_locale.py385 def check(self, localename, expected): member in NormalizeTest
391 self.check(localename, alias)
394 self.check('', '')
397 self.check('c', 'C')
398 self.check('posix', 'C')
401 self.check('en', 'en_US.ISO8859-1')
402 self.check('EN', 'en_US.ISO8859-1')
403 self.check('en.iso88591', 'en_US.ISO8859-1')
404 self.check('en_US', 'en_US.ISO8859-1')
405 self.check('en_us', 'en_US.ISO8859-1')
[all …]
/external/jsmn/test/
Dtests.c10 check(parse("{}", 1, 1, in test_empty()
12 check(parse("[]", 1, 1, in test_empty()
14 check(parse("[{},{}]", 3, 3, in test_empty()
22 check(parse("{\"a\":0}", 3, 3, in test_object()
26 check(parse("{\"a\":[]}", 3, 3, in test_object()
30 check(parse("{\"a\":{},\"b\":{}}", 5, 5, in test_object()
36 check(parse("{\n \"Day\": 26,\n \"Month\": 9,\n \"Year\": 12\n }", 7, 7, in test_object()
44 check(parse("{\"a\": 0, \"b\": \"c\"}", 5, 5, in test_object()
52 check(parse("{\"a\"\n0}", JSMN_ERROR_INVAL, 3)); in test_object()
53 check(parse("{\"a\", 0}", JSMN_ERROR_INVAL, 3)); in test_object()
[all …]
/external/clang/test/Lexer/
Dcxx-features.cpp13 #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx98 == 0 ? defined(__cpp_##macro) : __cpp_##macr… macro
15 #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx11 == 0 ? defined(__cpp_##macro) : __cpp_##macr… macro
17 #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx14 == 0 ? defined(__cpp_##macro) : __cpp_##macr… macro
19 #define check(macro, cxx98, cxx11, cxx14, cxx1z) cxx1z == 0 ? defined(__cpp_##macro) : __cpp_##macr… macro
22 #if check(binary_literals, 0, 0, 201304, 201304)
26 #if check(digit_separators, 0, 0, 201309, 201309)
30 #if check(init_captures, 0, 0, 201304, 201304)
34 #if check(generic_lambdas, 0, 0, 201304, 201304)
38 #if check(sized_deallocation, 0, 0, 201309, 201309)
42 #if check(constexpr, 0, 200704, 201304, 201304)
[all …]
/external/python/cpython2/Lib/test/
Dtest_fnmatch.py27 check = self.check_match
28 check('abc', 'abc')
29 check('abc', '?*?')
30 check('abc', '???*')
31 check('abc', '*???')
32 check('abc', '???')
33 check('abc', '*')
34 check('abc', 'ab[cd]')
35 check('abc', 'ab[!de]')
36 check('abc', 'ab[de]', False)
[all …]
Dtest_tcl.py280 def check(expr, expected): function
288 check('', '0')
289 check('8.2 + 6', '14.2')
290 check('3.1 + $a', '6.1')
291 check('2 + "$a.$b"', '5.6')
292 check('4*[llength "6 2"]', '8')
293 check('{word one} < "word $a"', '0')
294 check('4*2 < 7', '0')
295 check('hypot($a, 4)', '5.0')
296 check('5 / 4', '1')
[all …]
Dtest_sys.py544 check = self.check_sizeof
546 check(True, size('l'))
549 check(buffer(''), size('2P2Pil'))
551 check(len, size('3P'))
556 check(x, vsize('iPP') + x.__alloc__())
558 check(iter(bytearray()), size('PP'))
565 check(get_cell().func_closure[0], size('P'))
570 check(class_oldstyle, size('7P'))
572 check(class_oldstyle(), size('3P'))
574 check(class_oldstyle().method, size('4P'))
[all …]
/external/curl/tests/libtest/
Dmk-lib1521.pl181 my $check = " if(UNEX(res)) {\n err(\"$name\", res, __LINE__); goto test_cleanup; }\n";
183 print "${pref} \"string\");\n$check";
184 print "${pref} NULL);\n$check";
187 print "${pref} 0L);\n$check";
188 print "${pref} 22L);\n$check";
189 print "${pref} LO);\n$check";
190 print "${pref} HI);\n$check";
194 print "${pref} dep);\n$check";
197 print "${pref} share);\n$check";
200 print "${pref} errorbuffer);\n$check";
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dhsa-note-no-func.ll1 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=gfx600 | FileCheck --check-prefix=HSA --check-prefix=…
2 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=gfx601 | FileCheck --check-prefix=HSA --check-prefix=…
3 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=gfx700 | FileCheck --check-prefix=HSA --check-prefix=…
4 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=gfx701 | FileCheck --check-prefix=HSA --check-prefix=…
5 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=gfx702 | FileCheck --check-prefix=HSA --check-prefix=…
6 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=gfx703 | FileCheck --check-prefix=HSA --check-prefix=…
7 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=gfx704 | FileCheck --check-prefix=HSA --check-prefix=…
8 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=bonaire | FileCheck --check-prefix=HSA --check-prefix…
9 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=mullins | FileCheck --check-prefix=HSA --check-prefix…
10 ; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=hawaii | FileCheck --check-prefix=HSA --check-prefix=…
[all …]
/external/libcxx/test/std/utilities/function.objects/refwrap/
Dunwrap_ref_decay.pass.cpp25 void check() { in check() function
33 check<T, T>(); in main()
34 check<T&, T>(); in main()
35 check<T const, T>(); in main()
36 check<T const&, T>(); in main()
37 check<T*, T*>(); in main()
38 check<T const*, T const*>(); in main()
39 check<T[3], T*>(); in main()
40 check<T const [3], T const*>(); in main()
41 check<T (), T (*)()>(); in main()
[all …]
/external/clang/test/Analysis/
Dtemporaries.cpp119 extern bool check(const Dtor &);
124 if (coin() && (coin() || coin() || check(Dtor()))) { in testPR16664andPR18159Crash()
149 extern bool check(const NoReturnDtor &);
154 if (i == 5 && (i == 4 || check(NoReturnDtor()) || i == 5)) { in testConsistencyIf()
160 (i == 5 && (i == 4 || check(NoReturnDtor()) || i == 5)) ? 1 : 0; in testConsistencyTernary()
167 (i == 5 && (i == 4 || check(NoReturnDtor()) || i == 5)) ? 1 : 0; in testConsistencyTernary()
177 if (i == 5 && (i == 4 || i == 5 || check(NoReturnDtor()))) in testConsistencyNested()
180 if (i == 5 && (i == 4 || i == 5 || check(NoReturnDtor()))) in testConsistencyNested()
188 compute(i == 5 && (i == 4 || check(NoReturnDtor()))))) || in testConsistencyNested()
195 compute(i == 5 && (i == 4 || check(NoReturnDtor()))))) || in testConsistencyNested()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/FileCheck/
Dimplicit-check-not.txt1 ; RUN: sed 's#^;.*##' %s | FileCheck -check-prefix=CHECK-PASS -implicit-check-not=warning: %s
2 …sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not=warning: %s 2>&1 |…
3 …sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL2 -implicit-check-not=warning: %s 2>&1 |…
4 …sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL3 -implicit-check-not=warning: %s 2>&1 |…
5 …s#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not='{{aaa|bbb|ccc}}' %s 2>…
6 …t FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not=aaa -implicit-check-not=bbb -implicit-ch…
7 …t FileCheck -check-prefix=CHECK-FAIL2 -implicit-check-not=aaa -implicit-check-not=bbb -implicit-ch…
8 …t FileCheck -check-prefix=CHECK-FAIL3 -implicit-check-not=aaa -implicit-check-not=bbb -implicit-ch…
13 ; CHECK-ERROR1-NEXT: -implicit-check-not='warning:'
18 ; CHECK-ERROR4-NEXT: {{-implicit-check-not='\{\{aaa\|bbb\|ccc\}\}'}}
[all …]
/external/llvm/test/FileCheck/
Dimplicit-check-not.txt1 ; RUN: sed 's#^;.*##' %s | FileCheck -check-prefix=CHECK-PASS -implicit-check-not=warning: %s
2 …sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not=warning: %s 2>&1 |…
3 …sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL2 -implicit-check-not=warning: %s 2>&1 |…
4 …sed 's#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL3 -implicit-check-not=warning: %s 2>&1 |…
5 …s#^;.*##' %s | not FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not='{{aaa|bbb|ccc}}' %s 2>…
6 …t FileCheck -check-prefix=CHECK-FAIL1 -implicit-check-not=aaa -implicit-check-not=bbb -implicit-ch…
7 …t FileCheck -check-prefix=CHECK-FAIL2 -implicit-check-not=aaa -implicit-check-not=bbb -implicit-ch…
8 …t FileCheck -check-prefix=CHECK-FAIL3 -implicit-check-not=aaa -implicit-check-not=bbb -implicit-ch…
14 ; CHECK-ERROR1-NEXT: -implicit-check-not='warning:'
19 ; CHECK-ERROR4-NEXT: {{-implicit-check-not='\{\{aaa\|bbb\|ccc\}\}'}}
[all …]
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/
Drx-predef.hpp36 static typename C::worker_tag* check(int);
38 static not_void check(...);
40 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_worker*>::v…
49 static typename C::scheduler_tag* check(int);
51 static not_void check(...);
53 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_scheduler*>…
62 static typename C::schedulable_tag* check(int);
64 static not_void check(...);
66 …static const bool value = std::is_convertible<decltype(check<rxu::decay_t<T>>(0)), tag_schedulable…
93 static typename C::observer_tag* check(int);
[all …]
/external/clang/test/Sema/
Darm-layout.c5 #define check(name, cond) int _##name##_check[(cond) ? 1 : -1] macro
9 check(s0_size, sizeof(struct s0) == 16);
11 check(s0_size, sizeof(struct s0) == 12);
16 check(s1_size, sizeof(struct s1) == 16);
18 check(s1_size, sizeof(struct s1) == 12);
27 check(s2_size, sizeof(struct s2) == 8);
28 check(s2_offset_0, __builtin_offsetof(struct s2, field0) == 0);
29 check(s2_offset_1, __builtin_offsetof(struct s2, field2) == 7);
31 check(s2_size, sizeof(struct s2) == 6);
32 check(s2_offset_0, __builtin_offsetof(struct s2, field0) == 0);
[all …]
Dbuiltin-unary-fp.c2 void check(int);
4 check(__builtin_isfinite(1.0f)); in a()
5 check(__builtin_isinf(1.0)); in a()
6 check(__builtin_isinf_sign(1.0L)); in a()
7 check(__builtin_isnan(1.0f)); in a()
8 check(__builtin_isnormal(1.0f)); in a()
9 check(__builtin_isfinite(1)); // expected-error{{requires argument of floating point type}} in a()
10 check(__builtin_isinf()); // expected-error{{too few arguments}} in a()
11 check(__builtin_isnan(1,2)); // expected-error{{too many arguments}} in a()
12 check(__builtin_fpclassify(0, 0, 0, 0, 0, 1.0)); in a()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/switch_endian/
Dcheck.S14 cmpd r9,r3 # check r3
16 addi r9,r15,4 # check r4
19 lis r9,0x00FF # check CR
26 addi r9,r15,32 # check LR
30 addi r9,r15,5 # check r5
33 addi r9,r15,6 # check r6
36 addi r9,r15,7 # check r7
39 addi r9,r15,8 # check r8
42 addi r9,r15,13 # check r13
45 addi r9,r15,14 # check r14
[all …]
/external/elfutils/tests/
Delfshphehdr.c34 check (const char *msg, bool statement) in check() function
70 check ("e_shnum == 0", ehdr.e_shnum == 0); in test()
71 check ("e_phnum == 0", ehdr.e_phnum == 0); in test()
72 check ("e_shoff == 0", ehdr.e_shoff == 0); in test()
73 check ("e_phoff == 0", ehdr.e_phoff == 0); in test()
77 check ("shnum == 0", shnum == 0); in test()
81 check ("phnum == 0", phnum == 0); in test()
93 check ("EI_DATA", ehdr.e_ident[EI_DATA] != ELFDATANONE); in test()
94 check ("e_version", ehdr.e_version == EV_CURRENT); in test()
97 check ("e_shnum == 0", ehdr.e_shnum == 0); in test()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dprefer-avx256-trunc.ll2 …n -mattr=+avx512vl,+prefer-256-bit | FileCheck %s --check-prefix=CHECK --check-prefix=AVX256 --che…
3 …512vl,-prefer-256-bit | FileCheck %s --check-prefix=CHECK --check-prefix=AVX512 --check-prefix=AVX…
4 …x512f,+prefer-256-bit | FileCheck %s --check-prefix=CHECK --check-prefix=AVX512 --check-prefix=AVX…
5 …x512f,-prefer-256-bit | FileCheck %s --check-prefix=CHECK --check-prefix=AVX512 --check-prefix=AVX…
6 …n -mattr=+avx512bw,+prefer-256-bit | FileCheck %s --check-prefix=CHECK --check-prefix=AVX512 --che…
7 …n -mattr=+avx512bw,-prefer-256-bit | FileCheck %s --check-prefix=CHECK --check-prefix=AVX512 --che…
8 …avx512bw,+avx512vl,+prefer-256-bit | FileCheck %s --check-prefix=CHECK --check-prefix=AVX256 --che…
9 …avx512bw,+avx512vl,-prefer-256-bit | FileCheck %s --check-prefix=CHECK --check-prefix=AVX256 --che…
/external/eigen/test/
Dfastmath.cpp12 void check(bool b, bool ref) in check() function
37 …"std::isfinite(" << m(3) << ") = "; check((std::isfinite)(m(3)),false); std::cout << " ; numext::… in check_inf_nan()
38 …"std::isinf(" << m(3) << ") = "; check((std::isinf)(m(3)),false); std::cout << " ; numext::… in check_inf_nan()
39 …"std::isnan(" << m(3) << ") = "; check((std::isnan)(m(3)),true); std::cout << " ; numext::… in check_inf_nan()
40 std::cout << "allFinite: "; check(m.allFinite(), 0); std::cout << "\n"; in check_inf_nan()
41 std::cout << "hasNaN: "; check(m.hasNaN(), 1); std::cout << "\n"; in check_inf_nan()
56 …"std::isfinite(" << m(4) << ") = "; check((std::isfinite)(m(4)),false); std::cout << " ; numext::… in check_inf_nan()
57 …"std::isinf(" << m(4) << ") = "; check((std::isinf)(m(4)),true); std::cout << " ; numext::… in check_inf_nan()
58 …"std::isnan(" << m(4) << ") = "; check((std::isnan)(m(4)),false); std::cout << " ; numext::… in check_inf_nan()
59 std::cout << "allFinite: "; check(m.allFinite(), 0); std::cout << "\n"; in check_inf_nan()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckerDocumentation.cpp37 class CheckerDocumentation : public Checker< check::PreStmt<ReturnStmt>,
38 check::PostStmt<DeclStmt>,
39 check::PreObjCMessage,
40 check::PostObjCMessage,
41 check::ObjCMessageNil,
42 check::PreCall,
43 check::PostCall,
44 check::BranchCondition,
45 check::Location,
46 check::Bind,
[all …]

12345678910>>...355