Home
last modified time | relevance | path

Searched refs:TestCase (Results 1 – 25 of 4950) sorted by relevance

12345678910>>...198

/external/pigweed/pw_tokenizer/py/
Dvarint_test_data.py24 def TestCase(*args): # pylint: disable=invalid-name function
32 TestCase("%d", "0", "%u", "0", b'\x00'),
33 TestCase("%d", "-32768", "%u", "4294934528", b'\xff\xff\x03'),
34 TestCase("%d", "-32767", "%u", "4294934529", b'\xfd\xff\x03'),
35 TestCase("%d", "32766", "%u", "32766", b'\xfc\xff\x03'),
36 TestCase("%d", "32767", "%u", "32767", b'\xfe\xff\x03'),
37 TestCase("%d", "-2147483648", "%u", "2147483648", b'\xff\xff\xff\xff\x0f'),
38 TestCase("%d", "-2147483647", "%u", "2147483649", b'\xfd\xff\xff\xff\x0f'),
39 TestCase("%d", "2147483646", "%u", "2147483646", b'\xfc\xff\xff\xff\x0f'),
40 TestCase("%d", "2147483647", "%u", "2147483647", b'\xfe\xff\xff\xff\x0f'),
[all …]
Dtokenized_string_decoding_test_data.py24 def TestCase(*args): # pylint: disable=invalid-name function
32 TestCase("%s", "SFO", b'\x03\x53\x46\x4f'),
33 TestCase("%s", "KSJC", b'\x04\x4b\x53\x4a\x43'),
34 TestCase("%s", "", b'\x00'),
35 TestCase("%5s%s", " nofun", b'\x02\x6e\x6f\x03\x66\x75\x6e'),
36 TestCase("%5s%s", "abcdef", b'\x06\x61\x62\x63\x64\x65\x66\x00'),
37 TestCase("%5s%s", " abcdef", b'\x00\x06\x61\x62\x63\x64\x65\x66'),
38 TestCase("%s %-6s%s%s%s", "Intel 80586 toaster oven", b'\x05\x49\x6e\x74\x65\x6c\x05\x38\x30\x35\x3…
39 TestCase("%s %-6s%s%s%s", "Apple automatic pencil sharpener", b'\x05\x41\x70\x70\x6c\x65\x09\x61\x7…
42 TestCase("%s-%s", "so-", b'\x02\x73\x6f\x00'),
[all …]
/external/pigweed/pw_tokenizer/pw_tokenizer_private/
Dvarint_decoding_test_data.h27 using TestCase = std::tuple<const char*, const char*, const char*, const char*, std::string_view>; variable
29 inline constexpr TestCase kTestData[] = {
32 TestCase("%d", "0", "%u", "0", "\x00"sv),
33 TestCase("%d", "-32768", "%u", "4294934528", "\xff\xff\x03"sv),
34 TestCase("%d", "-32767", "%u", "4294934529", "\xfd\xff\x03"sv),
35 TestCase("%d", "32766", "%u", "32766", "\xfc\xff\x03"sv),
36 TestCase("%d", "32767", "%u", "32767", "\xfe\xff\x03"sv),
37 TestCase("%d", "-2147483648", "%u", "2147483648", "\xff\xff\xff\xff\x0f"sv),
38 TestCase("%d", "-2147483647", "%u", "2147483649", "\xfd\xff\xff\xff\x0f"sv),
39 TestCase("%d", "2147483646", "%u", "2147483646", "\xfc\xff\xff\xff\x0f"sv),
[all …]
Dtokenized_string_decoding_test_data.h27 using TestCase = std::tuple<const char*, std::string_view, std::string_view>; variable
29 inline constexpr TestCase kTestData[] = {
32 TestCase("%s", "SFO", "\x03\x53\x46\x4f"sv),
33 TestCase("%s", "KSJC", "\x04\x4b\x53\x4a\x43"sv),
34 TestCase("%s", "", "\x00"sv),
35 TestCase("%5s%s", " nofun", "\x02\x6e\x6f\x03\x66\x75\x6e"sv),
36 TestCase("%5s%s", "abcdef", "\x06\x61\x62\x63\x64\x65\x66\x00"sv),
37 TestCase("%5s%s", " abcdef", "\x00\x06\x61\x62\x63\x64\x65\x66"sv),
38 TestCase("%s %-6s%s%s%s", "Intel 80586 toaster oven", "\x05\x49\x6e\x74\x65\x6c\x05\x38\x30\x35\x38…
39 TestCase("%s %-6s%s%s%s", "Apple automatic pencil sharpener", "\x05\x41\x70\x70\x6c\x65\x09\x61\x75…
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DJsonParserTest.cs62 [TestCase(" 1 ")]
63 [TestCase("+1")]
64 [TestCase("1,000")]
65 [TestCase("1.5")]
136 [TestCase(typeof(BoolValue), "true", true)]
137 [TestCase(typeof(Int32Value), "32", 32)]
138 [TestCase(typeof(Int64Value), "32", 32L)]
139 [TestCase(typeof(Int64Value), "\"32\"", 32L)]
140 [TestCase(typeof(UInt32Value), "32", 32U)]
141 [TestCase(typeof(UInt64Value), "\"32\"", 32UL)]
[all …]
DJsonTokenizerTest.cs53 [TestCase("foo", "foo")]
54 [TestCase("tab\\t", "tab\t")]
55 [TestCase("line\\nfeed", "line\nfeed")]
56 [TestCase("carriage\\rreturn", "carriage\rreturn")]
57 [TestCase("back\\bspace", "back\bspace")]
58 [TestCase("form\\ffeed", "form\ffeed")]
59 [TestCase("escaped\\/slash", "escaped/slash")]
60 [TestCase("escaped\\\\backslash", "escaped\\backslash")]
61 [TestCase("escaped\\\"quote", "escaped\"quote")]
62 [TestCase("foo {}[] bar", "foo {}[] bar")]
[all …]
DJsonFormatterTest.cs186 [TestCase(1.0, "1")]
187 [TestCase(double.NaN, "'NaN'")]
188 [TestCase(double.PositiveInfinity, "'Infinity'")]
189 [TestCase(double.NegativeInfinity, "'-Infinity'")]
227 [TestCase("a\u17b4b", "a\\u17b4b")] // Explicit
228 [TestCase("a\u0601b", "a\\u0601b")] // Ranged
229 [TestCase("a\u0605b", "a\u0605b")] // Passthrough (note lack of double backslash...)
259 [TestCase("foo_bar", "fooBar")]
260 [TestCase("bananaBanana", "bananaBanana")]
261 [TestCase("BANANABanana", "BANANABanana")]
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DJsonParserTest.cs62 [TestCase(" 1 ")]
63 [TestCase("+1")]
64 [TestCase("1,000")]
65 [TestCase("1.5")]
136 [TestCase(typeof(BoolValue), "true", true)]
137 [TestCase(typeof(Int32Value), "32", 32)]
138 [TestCase(typeof(Int64Value), "32", 32L)]
139 [TestCase(typeof(Int64Value), "\"32\"", 32L)]
140 [TestCase(typeof(UInt32Value), "32", 32U)]
141 [TestCase(typeof(UInt64Value), "\"32\"", 32UL)]
[all …]
DJsonTokenizerTest.cs53 [TestCase("foo", "foo")]
54 [TestCase("tab\\t", "tab\t")]
55 [TestCase("line\\nfeed", "line\nfeed")]
56 [TestCase("carriage\\rreturn", "carriage\rreturn")]
57 [TestCase("back\\bspace", "back\bspace")]
58 [TestCase("form\\ffeed", "form\ffeed")]
59 [TestCase("escaped\\/slash", "escaped/slash")]
60 [TestCase("escaped\\\\backslash", "escaped\\backslash")]
61 [TestCase("escaped\\\"quote", "escaped\"quote")]
62 [TestCase("foo {}[] bar", "foo {}[] bar")]
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DHebrewTest.java140 final TestCase[] testCases = { in TestCases()
150 new TestCase(1507231.5, 0, 3174, 12, 10, SUN, 0, 0, 0), in TestCases()
151 new TestCase(1660037.5, 0, 3593, 3, 25, WED, 0, 0, 0), in TestCases()
152 new TestCase(1746893.5, 0, 3831, 1, 3, WED, 0, 0, 0), in TestCases()
153 new TestCase(1770641.5, 0, 3896, 1, 9, SUN, 0, 0, 0), in TestCases()
154 new TestCase(1892731.5, 0, 4230, 4, 18, WED, 0, 0, 0), in TestCases()
155 new TestCase(1931579.5, 0, 4336, 10, 4, MON, 0, 0, 0), in TestCases()
156 new TestCase(1974851.5, 0, 4455, 2, 13, SAT, 0, 0, 0), in TestCases()
157 new TestCase(2091164.5, 0, 4773, 9, 6, SUN, 0, 0, 0), in TestCases()
158 new TestCase(2121509.5, 0, 4856, 9, 23, SUN, 0, 0, 0), in TestCases()
[all …]
DEthiopicTest.java128 final TestCase[] tests = { in TestCases()
137 … new TestCase(2401442.5, 1, 1855, 2, 20, WED, 0, 0, 0), // Gregorian: 29/10/1862 in TestCases()
138 … new TestCase(2402422.5, 1, 1857, 10, 29, WED, 0, 0, 0), // Gregorian: 05/07/1865 in TestCases()
139 … new TestCase(2402630.5, 1, 1858, 5, 22, MON, 0, 0, 0), // Gregorian: 29/01/1866 in TestCases()
140 … new TestCase(2402708.5, 1, 1858, 8, 10, TUE, 0, 0, 0), // Gregorian: 17/04/1866 in TestCases()
141 … new TestCase(2402971.5, 1, 1859, 4, 28, SAT, 0, 0, 0), // Gregorian: 05/01/1867 in TestCases()
142 … new TestCase(2403344.5, 1, 1860, 5, 5, MON, 0, 0, 0), // Gregorian: 13/01/1868 in TestCases()
148 … new TestCase(1721059.5, 0, 5492, 5, 7, SAT, 0, 0, 0), // Gregorian: 01/01/0000 in TestCases()
149 … new TestCase(1721425.5, 0, 5493, 5, 8, MON, 0, 0, 0), // Gregorian: 01/01/0001 in TestCases()
150 … new TestCase(1723854.5, 0, 5499, 13, 6, MON, 0, 0, 0), // Gregorian: 27/08/0007 in TestCases()
[all …]
DIndianTest.java60 final TestCase[] tests = { in TestCases()
66 new TestCase(1770641.5, 0, 57, ASVINA, 10, SUN, 0, 0, 0), in TestCases()
67 new TestCase(1892731.5, 0, 391, PAUSA, 18, WED, 0, 0, 0), in TestCases()
68 new TestCase(1931579.5, 0, 498, VAISAKHA, 30, MON, 0, 0, 0), in TestCases()
69 new TestCase(1974851.5, 0, 616, KARTIKA, 19, SAT, 0, 0, 0), in TestCases()
70 new TestCase(2091164.5, 0, 935, VAISAKHA, 5, SUN, 0, 0, 0), in TestCases()
71 new TestCase(2121509.5, 0, 1018, JYAISTHA, 3, SUN, 0, 0, 0), in TestCases()
72 new TestCase(2155779.5, 0, 1112, CHAITRA, 2, FRI, 0, 0, 0), in TestCases()
73 new TestCase(2174029.5, 0, 1161, PHALGUNA, 20, SAT, 0, 0, 0), in TestCases()
74 new TestCase(2191584.5, 0, 1210, CHAITRA, 13, FRI, 0, 0, 0), in TestCases()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DHebrewTest.java137 final TestCase[] testCases = { in TestCases()
147 new TestCase(1507231.5, 0, 3174, 12, 10, SUN, 0, 0, 0), in TestCases()
148 new TestCase(1660037.5, 0, 3593, 3, 25, WED, 0, 0, 0), in TestCases()
149 new TestCase(1746893.5, 0, 3831, 1, 3, WED, 0, 0, 0), in TestCases()
150 new TestCase(1770641.5, 0, 3896, 1, 9, SUN, 0, 0, 0), in TestCases()
151 new TestCase(1892731.5, 0, 4230, 4, 18, WED, 0, 0, 0), in TestCases()
152 new TestCase(1931579.5, 0, 4336, 10, 4, MON, 0, 0, 0), in TestCases()
153 new TestCase(1974851.5, 0, 4455, 2, 13, SAT, 0, 0, 0), in TestCases()
154 new TestCase(2091164.5, 0, 4773, 9, 6, SUN, 0, 0, 0), in TestCases()
155 new TestCase(2121509.5, 0, 4856, 9, 23, SUN, 0, 0, 0), in TestCases()
[all …]
DEthiopicTest.java125 final TestCase[] tests = { in TestCases()
134 … new TestCase(2401442.5, 1, 1855, 2, 20, WED, 0, 0, 0), // Gregorian: 29/10/1862 in TestCases()
135 … new TestCase(2402422.5, 1, 1857, 10, 29, WED, 0, 0, 0), // Gregorian: 05/07/1865 in TestCases()
136 … new TestCase(2402630.5, 1, 1858, 5, 22, MON, 0, 0, 0), // Gregorian: 29/01/1866 in TestCases()
137 … new TestCase(2402708.5, 1, 1858, 8, 10, TUE, 0, 0, 0), // Gregorian: 17/04/1866 in TestCases()
138 … new TestCase(2402971.5, 1, 1859, 4, 28, SAT, 0, 0, 0), // Gregorian: 05/01/1867 in TestCases()
139 … new TestCase(2403344.5, 1, 1860, 5, 5, MON, 0, 0, 0), // Gregorian: 13/01/1868 in TestCases()
145 … new TestCase(1721059.5, 0, 5492, 5, 7, SAT, 0, 0, 0), // Gregorian: 01/01/0000 in TestCases()
146 … new TestCase(1721425.5, 0, 5493, 5, 8, MON, 0, 0, 0), // Gregorian: 01/01/0001 in TestCases()
147 … new TestCase(1723854.5, 0, 5499, 13, 6, MON, 0, 0, 0), // Gregorian: 27/08/0007 in TestCases()
[all …]
DIndianTest.java57 final TestCase[] tests = { in TestCases()
63 new TestCase(1770641.5, 0, 57, ASVINA, 10, SUN, 0, 0, 0), in TestCases()
64 new TestCase(1892731.5, 0, 391, PAUSA, 18, WED, 0, 0, 0), in TestCases()
65 new TestCase(1931579.5, 0, 498, VAISAKHA, 30, MON, 0, 0, 0), in TestCases()
66 new TestCase(1974851.5, 0, 616, KARTIKA, 19, SAT, 0, 0, 0), in TestCases()
67 new TestCase(2091164.5, 0, 935, VAISAKHA, 5, SUN, 0, 0, 0), in TestCases()
68 new TestCase(2121509.5, 0, 1018, JYAISTHA, 3, SUN, 0, 0, 0), in TestCases()
69 new TestCase(2155779.5, 0, 1112, CHAITRA, 2, FRI, 0, 0, 0), in TestCases()
70 new TestCase(2174029.5, 0, 1161, PHALGUNA, 20, SAT, 0, 0, 0), in TestCases()
71 new TestCase(2191584.5, 0, 1210, CHAITRA, 13, FRI, 0, 0, 0), in TestCases()
[all …]
/external/pigweed/pw_tokenizer/
Dgenerate_decoding_test_data.cc170 void TestCase(TestDataFile* file, in TestCase() function
187 void TestCase(TestDataFile* file, in TestCase() function
191 TestCase(file, in TestCase()
206 TestCase(file, \
224 TestCase(file, "%s", "\3SFO", "SFO"); in GenerateEncodedStrings()
225 TestCase(file, "%s", "\4KSJC", "KSJC"); in GenerateEncodedStrings()
226 TestCase(file, "%s", "\0", ""); in GenerateEncodedStrings()
228 TestCase(file, "%5s%s", "\2no\3fun", " nofun"); in GenerateEncodedStrings()
229 TestCase(file, "%5s%s", "\6abcdef\0", "abcdef"); in GenerateEncodedStrings()
230 TestCase(file, "%5s%s", "\0\6abcdef", " abcdef"); in GenerateEncodedStrings()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Compatibility/
DTypeExtensionsTest.cs55 [TestCase(typeof(object), typeof(string), true)]
56 [TestCase(typeof(object), typeof(int), true)]
57 [TestCase(typeof(string), typeof(string), true)]
58 [TestCase(typeof(string), typeof(object), false)]
59 [TestCase(typeof(string), typeof(int), false)]
60 [TestCase(typeof(int), typeof(int), true)]
61 [TestCase(typeof(ValueType), typeof(int), true)]
62 [TestCase(typeof(long), typeof(int), false)] //
69 [TestCase(typeof(DerivedList), "Count")] // Go up the type hierarchy
70 [TestCase(typeof(List<string>), "Count")]
[all …]
DPropertyInfoExtensionsTest.cs50 [TestCase("PublicReadWrite")]
51 [TestCase("PublicReadPrivateWrite")]
52 [TestCase("PublicReadOnly")]
61 [TestCase("PrivateReadWrite")]
62 [TestCase("PrivateReadPublicWrite")]
63 [TestCase("PrivateReadOnly")]
64 [TestCase("PublicWriteOnly")]
65 [TestCase("PrivateWriteOnly")]
74 [TestCase("PublicReadWrite")]
75 [TestCase("PrivateReadPublicWrite")]
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Compatibility/
DTypeExtensionsTest.cs55 [TestCase(typeof(object), typeof(string), true)]
56 [TestCase(typeof(object), typeof(int), true)]
57 [TestCase(typeof(string), typeof(string), true)]
58 [TestCase(typeof(string), typeof(object), false)]
59 [TestCase(typeof(string), typeof(int), false)]
60 [TestCase(typeof(int), typeof(int), true)]
61 [TestCase(typeof(ValueType), typeof(int), true)]
62 [TestCase(typeof(long), typeof(int), false)] //
69 [TestCase(typeof(DerivedList), "Count")] // Go up the type hierarchy
70 [TestCase(typeof(List<string>), "Count")]
[all …]
DPropertyInfoExtensionsTest.cs50 [TestCase("PublicReadWrite")]
51 [TestCase("PublicReadPrivateWrite")]
52 [TestCase("PublicReadOnly")]
61 [TestCase("PrivateReadWrite")]
62 [TestCase("PrivateReadPublicWrite")]
63 [TestCase("PrivateReadOnly")]
64 [TestCase("PublicWriteOnly")]
65 [TestCase("PrivateWriteOnly")]
74 [TestCase("PublicReadWrite")]
75 [TestCase("PrivateReadPublicWrite")]
[all …]
/external/libchrome/base/test/android/junit/src/org/chromium/base/test/util/
DDisableIfTest.java9 import junit.framework.TestCase;
25 TestCase sdkIsLessThan = new TestCase("sdkIsLessThan") { in testSdkIsLessThanAndIsLessThan()
34 TestCase sdkIsEqual = new TestCase("sdkIsEqual") { in testSdkIsLessThanButIsEqual()
43 TestCase sdkIsGreaterThan = new TestCase("sdkIsGreaterThan") { in testSdkIsLessThanButIsGreaterThan()
52 TestCase sdkIsLessThan = new TestCase("sdkIsLessThan") { in testSdkIsGreaterThanButIsLessThan()
61 TestCase sdkIsEqual = new TestCase("sdkIsEqual") { in testSdkIsGreaterThanButIsEqual()
70 TestCase sdkIsGreaterThan = new TestCase("sdkIsGreaterThan") { in testSdkIsGreaterThanAndIsGreaterThan()
79 TestCase supportedAbisCpuAbiMatch = new TestCase("supportedAbisCpuAbiMatch") { in testSupportedAbiIncludesAndCpuAbiMatches()
95 TestCase supportedAbisCpuAbi2Match = new TestCase("supportedAbisCpuAbi2Match") { in testSupportedAbiIncludesAndCpuAbi2Matches()
111 TestCase supportedAbisNoMatch = new TestCase("supportedAbisNoMatch") { in testSupportedAbiIncludesButNoMatch()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/bidi/
DTestReorderRunsOnly.java24 static class TestCase { class in TestReorderRunsOnly
29 TestCase(String in, String[][] out, int[] nrd) { in TestCase() method in TestReorderRunsOnly.TestCase
36 static final TestCase testCases[] = {
37 new TestCase("ab 234 896 de", // 0
41 new TestCase("abcGHI", // 1
44 new TestCase("a.>67->", // 2
47 new TestCase("-=%$123/ *", // 3
51 new TestCase("abc->12..>JKL", // 4
55 new TestCase("JKL->12..>abc", // 5
59 new TestCase("123->abc", // 6
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/bidi/
DTestReorderRunsOnly.java27 static class TestCase { class in TestReorderRunsOnly
32 TestCase(String in, String[][] out, int[] nrd) { in TestCase() method in TestReorderRunsOnly.TestCase
39 static final TestCase testCases[] = {
40 new TestCase("ab 234 896 de", // 0
44 new TestCase("abcGHI", // 1
47 new TestCase("a.>67->", // 2
50 new TestCase("-=%$123/ *", // 3
54 new TestCase("abc->12..>JKL", // 4
58 new TestCase("JKL->12..>abc", // 5
62 new TestCase("123->abc", // 6
[all …]
/external/skqp/tests/
DGrShapeTest.cpp516 class TestCase { class
518 TestCase(const Geo& geo, const SkPaint& paint, skiatest::Reporter* r, in TestCase() function in __anon392b385c0111::TestCase
525 TestCase(skiatest::Reporter* r, ShapeArgs... shapeArgs) : fBase(new GrShape(shapeArgs...)) { in TestCase() function in __anon392b385c0111::TestCase
529 TestCase(const GrShape& shape, skiatest::Reporter* r, SkScalar scale = SK_Scalar1) in TestCase() function in __anon392b385c0111::TestCase
549 void compare(skiatest::Reporter*, const TestCase& that, ComparisonExpecation) const;
694 void TestCase::testExpectations(skiatest::Reporter* reporter, SelfExpectations expectations) const { in testExpectations()
720 void TestCase::compare(skiatest::Reporter* r, const TestCase& that, in compare()
763 static std::unique_ptr<TestCase> make_TestCase(Args&&... args) { in make_TestCase()
764 return std::unique_ptr<TestCase>{ new TestCase(std::forward<Args>(args)...) }; in make_TestCase()
770 TestCase::SelfExpectations expectations; in test_basic()
[all …]
/external/skia/tests/
DGrStyledShapeTest.cpp523 class TestCase { class
525 TestCase(const Geo& geo, const SkPaint& paint, skiatest::Reporter* r, in TestCase() function in __anonfa23bdba0111::TestCase
532 TestCase(skiatest::Reporter* r, ShapeArgs... shapeArgs) in TestCase() function in __anonfa23bdba0111::TestCase
537 TestCase(const GrStyledShape& shape, skiatest::Reporter* r, SkScalar scale = SK_Scalar1) in TestCase() function in __anonfa23bdba0111::TestCase
557 void compare(skiatest::Reporter*, const TestCase& that, ComparisonExpecation) const;
704 void TestCase::testExpectations(skiatest::Reporter* reporter, SelfExpectations expectations) const { in testExpectations()
730 void TestCase::compare(skiatest::Reporter* r, const TestCase& that, in compare()
773 static std::unique_ptr<TestCase> make_TestCase(Args&&... args) { in make_TestCase()
774 return std::make_unique<TestCase>( std::forward<Args>(args)... ); in make_TestCase()
780 TestCase::SelfExpectations expectations; in test_basic()
[all …]

12345678910>>...198