Home
last modified time | relevance | path

Searched refs:checkequal (Results 1 – 25 of 162) sorted by relevance

1234567

/dports/databases/py-sqlite3/Python-3.8.12/Lib/test/
H A Dstring_tests.py117 self.checkequal(1, '', 'count', '')
182 self.checkequal(0, '', 'find', '')
413 self.checkequal(['a', 'b|c|d'],
415 self.checkequal(['a', 'b|c|d'],
417 self.checkequal(['a', 'b|c|d'],
419 self.checkequal(['a', 'b c d'],
483 self.checkequal(['a|b|c', 'd'],
485 self.checkequal(['a|b|c', 'd'],
487 self.checkequal(['a|b|c', 'd'],
489 self.checkequal(['a b c', 'd'],
[all …]
/dports/databases/py-gdbm/Python-3.8.12/Lib/test/
H A Dstring_tests.py117 self.checkequal(1, '', 'count', '')
182 self.checkequal(0, '', 'find', '')
413 self.checkequal(['a', 'b|c|d'],
415 self.checkequal(['a', 'b|c|d'],
417 self.checkequal(['a', 'b|c|d'],
419 self.checkequal(['a', 'b c d'],
483 self.checkequal(['a|b|c', 'd'],
485 self.checkequal(['a|b|c', 'd'],
487 self.checkequal(['a|b|c', 'd'],
489 self.checkequal(['a b c', 'd'],
[all …]
/dports/lang/python-tools/Python-3.8.12/Lib/test/
H A Dstring_tests.py117 self.checkequal(1, '', 'count', '')
182 self.checkequal(0, '', 'find', '')
413 self.checkequal(['a', 'b|c|d'],
415 self.checkequal(['a', 'b|c|d'],
417 self.checkequal(['a', 'b|c|d'],
419 self.checkequal(['a', 'b c d'],
483 self.checkequal(['a|b|c', 'd'],
485 self.checkequal(['a|b|c', 'd'],
487 self.checkequal(['a|b|c', 'd'],
489 self.checkequal(['a b c', 'd'],
[all …]
/dports/lang/python37/Python-3.7.12/Lib/test/
H A Dstring_tests.py117 self.checkequal(1, '', 'count', '')
182 self.checkequal(0, '', 'find', '')
413 self.checkequal(['a', 'b|c|d'],
415 self.checkequal(['a', 'b|c|d'],
417 self.checkequal(['a', 'b|c|d'],
419 self.checkequal(['a', 'b c d'],
483 self.checkequal(['a|b|c', 'd'],
485 self.checkequal(['a|b|c', 'd'],
487 self.checkequal(['a|b|c', 'd'],
489 self.checkequal(['a b c', 'd'],
[all …]
/dports/lang/python38/Python-3.8.12/Lib/test/
H A Dstring_tests.py117 self.checkequal(1, '', 'count', '')
182 self.checkequal(0, '', 'find', '')
413 self.checkequal(['a', 'b|c|d'],
415 self.checkequal(['a', 'b|c|d'],
417 self.checkequal(['a', 'b|c|d'],
419 self.checkequal(['a', 'b c d'],
483 self.checkequal(['a|b|c', 'd'],
485 self.checkequal(['a|b|c', 'd'],
487 self.checkequal(['a|b|c', 'd'],
489 self.checkequal(['a b c', 'd'],
[all …]
/dports/x11-toolkits/py-tkinter/Python-3.8.12/Lib/test/
H A Dstring_tests.py117 self.checkequal(1, '', 'count', '')
182 self.checkequal(0, '', 'find', '')
413 self.checkequal(['a', 'b|c|d'],
415 self.checkequal(['a', 'b|c|d'],
417 self.checkequal(['a', 'b|c|d'],
419 self.checkequal(['a', 'b c d'],
483 self.checkequal(['a|b|c', 'd'],
485 self.checkequal(['a|b|c', 'd'],
487 self.checkequal(['a|b|c', 'd'],
489 self.checkequal(['a b c', 'd'],
[all …]
/dports/lang/python310/Python-3.10.1/Lib/test/
H A Dstring_tests.py118 self.checkequal(1, '', 'count', '')
183 self.checkequal(0, '', 'find', '')
452 self.checkequal(['a', 'b|c|d'],
454 self.checkequal(['a', 'b|c|d'],
456 self.checkequal(['a', 'b|c|d'],
458 self.checkequal(['a', 'b c d'],
522 self.checkequal(['a|b|c', 'd'],
524 self.checkequal(['a|b|c', 'd'],
526 self.checkequal(['a|b|c', 'd'],
528 self.checkequal(['a b c', 'd'],
[all …]
/dports/lang/python311/Python-3.11.0a3/Lib/test/
H A Dstring_tests.py121 self.checkequal(1, '', 'count', '')
186 self.checkequal(0, '', 'find', '')
455 self.checkequal(['a', 'b|c|d'],
457 self.checkequal(['a', 'b|c|d'],
459 self.checkequal(['a', 'b|c|d'],
461 self.checkequal(['a', 'b c d'],
525 self.checkequal(['a|b|c', 'd'],
527 self.checkequal(['a|b|c', 'd'],
529 self.checkequal(['a|b|c', 'd'],
531 self.checkequal(['a b c', 'd'],
[all …]
/dports/lang/python39/Python-3.9.9/Lib/test/
H A Dstring_tests.py117 self.checkequal(1, '', 'count', '')
182 self.checkequal(0, '', 'find', '')
413 self.checkequal(['a', 'b|c|d'],
415 self.checkequal(['a', 'b|c|d'],
417 self.checkequal(['a', 'b|c|d'],
419 self.checkequal(['a', 'b c d'],
483 self.checkequal(['a|b|c', 'd'],
485 self.checkequal(['a|b|c', 'd'],
487 self.checkequal(['a|b|c', 'd'],
489 self.checkequal(['a b c', 'd'],
[all …]
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dstring_tests.py102 self.checkequal(3, 'aaa', 'count', 'a')
103 self.checkequal(0, 'aaa', 'count', 'b')
104 self.checkequal(3, 'aaa', 'count', 'a')
123 self.checkequal(1, '', 'count', '')
127 self.checkequal(0, '', 'count', 'xx')
180 self.checkequal(0, '', 'find', '')
184 self.checkequal(-1, '', 'find', 'xx')
572 EQ = self.checkequal
1127 self.checkequal('a', 'A', 'lower')
1129 self.checkequal('A', 'a', 'upper')
[all …]
/dports/games/emptyepsilon/SeriousProton-EE-2021.06.23/src/
H A DstringImproved.cpp6 #define checkequal(a, b) { \ macro
29 checkequal(3, string("aaa").count("a")); in __stringTest()
30 checkequal(0, string("aaa").count("b")); in __stringTest()
31 checkequal(3, string("aaa").count("a")); in __stringTest()
32 checkequal(0, string("aaa").count("b")); in __stringTest()
33 checkequal(3, string("aaa").count("a")); in __stringTest()
34 checkequal(0, string("aaa").count("b")); in __stringTest()
37 checkequal(1, string("").count("")); in __stringTest()
39 checkequal(0, string("").count("xx")); in __stringTest()
50 checkequal(0, string("").find("")); in __stringTest()
[all …]
/dports/lang/python-legacy/Python-2.7.18/Lib/test/
H A Dstring_tests.py103 self.checkequal(3, 'aaa', 'count', 'a')
104 self.checkequal(0, 'aaa', 'count', 'b')
124 self.checkequal(1, '', 'count', '')
128 self.checkequal(0, '', 'count', 'xx')
181 self.checkequal(0, '', 'find', '')
185 self.checkequal(-1, '', 'find', 'xx')
541 self.checkequal('abc', b, 'strip')
621 EQ = self.checkequal
1205 self.checkequal('a', 'A', 'lower')
1207 self.checkequal('A', 'a', 'upper')
[all …]
/dports/lang/python27/Python-2.7.18/Lib/test/
H A Dstring_tests.py103 self.checkequal(3, 'aaa', 'count', 'a')
104 self.checkequal(0, 'aaa', 'count', 'b')
124 self.checkequal(1, '', 'count', '')
128 self.checkequal(0, '', 'count', 'xx')
181 self.checkequal(0, '', 'find', '')
185 self.checkequal(-1, '', 'find', 'xx')
541 self.checkequal('abc', b, 'strip')
621 EQ = self.checkequal
1205 self.checkequal('a', 'A', 'lower')
1207 self.checkequal('A', 'a', 'upper')
[all …]
/dports/devel/swig/swig-4.0.2/Examples/test-suite/scilab/
H A Dli_typemaps_runme.sci5 checkequal(in_double(22.22), 22.22, "in_double");
13 checkequal(in_schar(22), 22, "in_schar");
14 checkequal(inr_schar(22), 22, "inr_schar");
15 checkequal(out_schar(22), 22, "out_schar");
29 checkequal(in_short(22), 22, "in_short");
45 checkequal(in_int(22), 22, "in_int");
46 checkequal(inr_int(22), 22, "inr_int");
47 checkequal(out_int(22), 22, "out_int");
61 checkequal(in_long(22), 22, "in_long");
112 //checkequal(a<>1 || b<>2), "");
[all …]
H A Dprimitive_types_runme.sci5 checkequal(val_double(42), 42, "val_double() test fails.");
6 checkequal(val_float(42), 42, "val_float() test fails.");
8 checkequal(val_char('a'), 'a', "val_char() test fails.");
9 checkequal(val_schar(42), 42, "val_schar() test fails.");
13 checkequal(val_short(42), 42, "val_short() test fails.");
17 checkequal(val_int(42), 42, "val_int() test fails.");
21 checkequal(val_long(42), 42, "val_long() test fails.");
25 checkequal(val_bool(%t), %t, "val_bool() test fails.");
42 checkequal(ref_int(42), 42, "ref_int() test fails.");
46 checkequal(ref_long(42), 42, "ref_long() test fails.");
[all …]
H A Ddefault_args_runme.sci3 checkequal(anonymous(), 7771, "anonymous()");
6 checkequal(booltest(), %T, "booltest()");
7 checkequal(booltest(%T), %T, "booltest(%T)");
8 checkequal(booltest(%F), %F, "booltest(%T)");
13 checkequal(casts1(), [], "casts1()");
15 checkequal(casts2(), "Hello", "casts2()");
17 checkequal(chartest2(), '', "chartest2()");
19 checkequal(reftest1(), 42, "reftest1()");
62 checkequal(cfunc1(1), 2, "cfunc1(1)");
63 checkequal(cfunc2(1), 3, "cfunc2(1)");
[all …]
H A Dscilab_multivalue_runme.sci6 checkequal(a, 1, "[a, b] = output2(): a");
7 checkequal(b, 2, "[a, b] = output2(): b");
10 checkequal(ret, 3, "[a, b] = output2Ret(): b");
11 checkequal(a, 1, "[a, b] = output2Ret(): a");
12 checkequal(b, 2, "[a, b] = output2Ret(): b");
15 checkequal(c, 2, "[c, d] = output2Input2(1, 2): c");
16 checkequal(d, 4, "[c, d] = output2Input2(1, 2): d");
39 checkequal(a, 2, "[a, b] = output2(1, 2): a");
40 checkequal(b, 4, "[a, b] = output2(1, 2): b");
44 checkequal(a, 2, "[a, b] = inout2Ret(1, 2): a");
[all …]
H A Dscilab_consts_runme.sci3 checkequal(ICONST0_get(), 42, "ICONST0_get()");
4 checkequal(FCONST0_get(), 2.1828, "FCONST0_get()");
5 checkequal(CCONST0_get(), "x", "CCONST0_get()");
10 checkequal(iconst0_get(), 37, "iconst0_get()");
19 checkequal(ICONST1, int32(42), "ICONST1");
20 checkequal(FCONST1, 2.1828, "FCONST1");
21 checkequal(CCONST1, "x", "CCONST1");
22 //checkequal(CCONST1_2, "\n", "CCONST1_2");
25 checkequal(EXPR1, 48.5484, "EXPR1");
26 checkequal(iconst1, int32(37), "iconst1");
[all …]
H A Doverload_null_runme.sci8 checkequal(1, Overload_byval1(o, x), "test 1");
9 checkequal(2, Overload_byval1(o, NULL), "test 2");
11 checkequal(3, Overload_byval2(o, NULL), "test 3");
12 checkequal(4, Overload_byval2(o, x), "test 4");
14 checkequal(5, Overload_byref1(o, x), "test 5");
15 checkequal(6, Overload_byref1(o, NULL), "test 6");
17 checkequal(7, Overload_byref2(o, NULL), "test 7");
18 checkequal(8, Overload_byref2(o, x), "test 8");
20 checkequal(9, Overload_byconstref1(o, x), "test 9");
27 checkequal(13, Overload_byval1cpr(o, x), "test 13");
[all …]
H A Dli_std_string_extra_runme.sci9 checkequal(test_ccvalue(x), x, "test_ccvalue()");
10 checkequal(test_cvalue(x), x, "test_cvalue(x)");
11 checkequal(test_value(x), x, "test_value()");
13 checkequal(test_const_reference(x), x, "test_const_reference(x)");
14 checkequal(test_reference_input(x), x, "test_reference_input(x)");
26 checkequal(GlobalString2_get(), s, "GlobalString2_get()");
48 checkequal(stdstring_empty(), "", "stdstring_empty()");
49 checkequal(c_empty(), "", "c_empty()");
54 //checkequal(test_value_basic1(x), x, "");
55 //checkequal(test_value_basic2(x), x, "");
[all …]
H A Darrays_dimensionless_runme.sci4 checkequal(arr_bool([%T %F %F %T %F %T %T %T], 8), 5, "arr_bool");
7 checkequal(arr_char(["charptr"], 7), 756, "arr_char");
10 checkequal(arr_schar([1, 2, 3, 4], 4), 10, "arr_schar");
14 checkequal(arr_uchar([1, 2, 3, 4], 4), 10, "arr_uchar");
18 checkequal(arr_short([1, 2, 3, 4], 4), 10, "arr_short");
26 checkequal(arr_int([1, 2, 3, 4], 4), 10, "arr_int");
30 checkequal(arr_uint([1, 2, 3, 4], 4), 10, "");
31 checkequal(arr_uint(uint32([1, 2, 3, 4]), 4), 10, "");
34 checkequal(arr_long([1, 2, 3, 4], 4), 10, "arr_long");
49 checkequal(arr_float(a, 4), 10, "arr_float");
[all …]
H A Dvarargs_overload_runme.sci3 checkequal(vararg_over1("Hello"), "Hello", "vararg_over1(""Hello"")");
5 checkequal(vararg_over1(2), "2", "vararg_over1(2)");
7 checkequal(vararg_over2("Hello"), "Hello", "vararg_over2(""Hello"")");
9 checkequal(vararg_over2(2, 2.2), "2 2.2", "vararg_over2(2, 2.2)")
11 checkequal(vararg_over3("Hello"), "Hello", "vararg_over3(""Hello"")");
15 checkequal(vararg_over4("Hello"), "Hello", "vararg_over4(""Hello"")");
17 checkequal(vararg_over4(123), "123", "vararg_over4(123)");
24 checkequal(vararg_over6("Hello"), "Hello", "vararg_over6(""Hello"")");
26 checkequal(vararg_over6(2), "2", "vararg_over6(2)");
30 checkequal(vararg_over7(2, 2.2), "2 2.2", "vararg_over7(2, 2.2)")
[all …]
H A Doverload_simple_runme.sci9 checkequal(foo(int32(3)), "foo:int", "foo(int)");
10 checkequal(foo(3), "foo:double", "foo(double)");
11 checkequal(foo("hello"), "foo:char *", "foo(char* )");
12 checkequal(foo(f), "foo:Foo *", "foo(Foo *)");
13 checkequal(foo(b), "foo:Bar *", "foo(Bar *)");
14 checkequal(foo(v), "foo:void *", "foo(void *)");
22 checkequal(Spam_foo(s, f), "foo:Foo *", "Spam::foo(Foo *)");
32 checkequal(Spam_bar(f), "bar:Foo *", "Spam::bar(Foo *)");
33 checkequal(Spam_bar(b), "bar:Bar *", "Spam::bar(Bar *)");
39 checkequal(Spam_type_get(s), "none", "Spam::Spam()");
[all …]
/dports/lang/cython/Cython-0.29.24/tests/run/
H A Dtest_unicode_string_tests.pxi117 self.checkequal(1, '', 'count', '')
182 self.checkequal(0, '', 'find', '')
413 self.checkequal(['a', 'b|c|d'],
415 self.checkequal(['a', 'b|c|d'],
417 self.checkequal(['a', 'b|c|d'],
419 self.checkequal(['a', 'b c d'],
483 self.checkequal(['a|b|c', 'd'],
485 self.checkequal(['a|b|c', 'd'],
487 self.checkequal(['a|b|c', 'd'],
489 self.checkequal(['a b c', 'd'],
[all …]
/dports/lang/cython-devel/cython-2b1e743/tests/run/
H A Dtest_unicode_string_tests.pxi117 self.checkequal(1, '', 'count', '')
182 self.checkequal(0, '', 'find', '')
413 self.checkequal(['a', 'b|c|d'],
415 self.checkequal(['a', 'b|c|d'],
417 self.checkequal(['a', 'b|c|d'],
419 self.checkequal(['a', 'b c d'],
483 self.checkequal(['a|b|c', 'd'],
485 self.checkequal(['a|b|c', 'd'],
487 self.checkequal(['a|b|c', 'd'],
489 self.checkequal(['a b c', 'd'],
[all …]

1234567