Home
last modified time | relevance | path

Searched refs:two (Results 1 - 25 of 426) sorted by relevance

12345678910>>...18

/third_party/typescript/tests/baselines/reference/
H A DreadonlyPropertySubtypeRelationDirected.js6 const two: { a: string } = { a: 'two' };
11 // only treated as readonly (i.e. it will produce a diagnostic if you try to assign to it) based on the order of declarations of `one` and `two` above
12 const three = (condition) ? one : two;
17 // when `two` comes first, the displayed type is `string`, but the diagnostic will always correctly find that it's string
22 //// [two.ts]
25 const two: { a: string } = { a: 'two' };
29 // when `two` comes first in the conditional check, the return type of `doSomething` is inferred as not readonly but produces the same diagnostics as above
30 // based on the declaration order of `one` and `two`
[all...]
H A DrelationalOperatorComparable.js2 function f(onethree: 1 | 3, two: 2) {
5 let a1 = onethree < two; // ok
11 let a7 = false < two; // error, boolean and number
14 let a10 = 1 < two; // ok
20 function f(onethree, two) {
23 var a1 = onethree < two; // ok
29 var a7 = false < two; // error, boolean and number
32 var a10 = 1 < two; // ok
H A DnonNullParameterExtendingStringAssignableToString.js4 function fn<T extends string | undefined, U extends string>(one: T, two: U) {
5 let three = Boolean() ? one : two;
7 foo(two!);
13 function fn(one, two) {
14 var three = Boolean() ? one : two;
16 foo(two);
H A DinferObjectTypeFromStringLiteralToKeyof.js4 declare var two: "a" | "d";
5 const x = inference1(two);
6 const y = inference2({ a: 1, b: 2, c: 3, d(n) { return n } }, two);
10 var x = inference1(two);
11 var y = inference2({ a: 1, b: 2, c: 3, d: function (n) { return n; } }, two);
/third_party/python/Lib/test/test_importlib/
H A Dtest_namespace_pkgs.py80 import foo.two namespace
99 import foo.two namespace
104 # And make sure foo.two is now importable
105 import foo.two namespace
106 self.assertEqual(foo.two.attr, 'portion2 foo two')
114 import foo.two namespace
116 self.assertEqual(foo.two.attr, 'both_portions foo two')
124 import foo.two namespace
168 import foo.two global() namespace
175 import foo.two global() namespace
180 import foo.two global() namespace
195 import foo.two global() namespace
203 import foo.two global() namespace
219 import foo.two global() namespace
227 import foo.two global() namespace
241 import foo.two global() namespace
253 import parent.child.two global() namespace
270 import parent.child.two global() namespace
312 import bar.two global() namespace
337 import foo.two global() namespace
340 import foo.two global() namespace
345 import foo.two global() namespace
352 import foo.two global() namespace
[all...]
/third_party/skia/src/pathops/
H A DSkIntersections.cpp34 int SkIntersections::insert(double one, double two, const SkDPoint& pt) { in insert() argument
44 if (one == oldOne && two == oldTwo) { in insert()
47 if (more_roughly_equal(oldOne, one) && more_roughly_equal(oldTwo, two)) { in insert()
50 && (!precisely_zero(two) || precisely_zero(oldTwo)) in insert()
51 && (!precisely_equal(two, 1) || precisely_equal(oldTwo, 1))) { in insert()
55 SkASSERT(two >= 0 && two <= 1); in insert()
97 if (two < 0 || two > 1) { in insert()
101 fT[1][index] = two; in insert()
107 insertNear(double one, double two, const SkDPoint& pt1, const SkDPoint& pt2) insertNear() argument
116 insertCoincident(double one, double two, const SkDPoint& pt) insertCoincident() argument
[all...]
/third_party/protobuf/src/google/protobuf/stubs/
H A Dint128_unittest.cc49 uint128 two(0, 2); in TEST()
57 EXPECT_LT(one, two); in TEST()
58 EXPECT_GT(two, one); in TEST()
62 EXPECT_NE(one, two); in TEST()
64 EXPECT_GE(big, two); in TEST()
127 EXPECT_EQ(one + one, two); in TEST()
156 EXPECT_EQ(test, two); in TEST()
159 EXPECT_EQ(test += 2, two); in TEST()
160 EXPECT_EQ(test, two); in TEST()
167 EXPECT_EQ(test ^= three, two); in TEST()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dlistformattertest.cpp114 one("Alice", -1, US_INV), two("Bob", -1, US_INV), in ListFormatterTest()
129 void ListFormatterTest::CheckFourCases(const char* locale_string, UnicodeString one, UnicodeString two, in CheckFourCases() argument
140 UnicodeString input2[] = {one, two}; in CheckFourCases()
143 UnicodeString input3[] = {one, two, three}; in CheckFourCases()
146 UnicodeString input4[] = {one, two, three, four}; in CheckFourCases()
150 UBool ListFormatterTest::RecordFourCases(const Locale& locale, UnicodeString one, UnicodeString two, in RecordFourCases() argument
160 UnicodeString input2[] = {one, two}; in RecordFourCases()
162 UnicodeString input3[] = {one, two, three}; in RecordFourCases()
164 UnicodeString input4[] = {one, two, three, four}; in RecordFourCases()
176 one + ", " + two, in TestRoot()
[all...]
/third_party/jerryscript/jerry-libm/
H A Dtanh.c58 #define two 2.0 macro
98 t = expm1 (two * fabs (x)); in tanh()
99 z = one - two / (t + two); in tanh()
103 t = expm1 (-two * fabs (x)); in tanh()
104 z = -t / (t + two); in tanh()
116 #undef two macro
/third_party/python/Lib/distutils/tests/
H A Dtest_dep_util.py38 two = os.path.join(sources, 'two')
42 self.write_file(two)
45 self.assertEqual(newer_pairwise([one, two], [three, four]),
53 two = os.path.join(sources, 'two')
60 self.write_file(two)
62 self.assertTrue(newer_group([one, two, three], old_file))
63 self.assertFalse(newer_group([one, two, old_file], three))
67 self.assertRaises(OSError, newer_group, [one, two, old_fil
[all...]
/third_party/node/deps/v8/tools/clusterfuzz/foozzie/
H A Dv8_foozzie_test.py118 def diff_fun(one, two, skip=False):
120 return suppress.diff_lines(one.splitlines(), two.splitlines())
123 two = ''
125 self.assertEqual(diff, diff_fun(one, two))
128 two = 'a \n b\nc();'
130 self.assertEqual(diff, diff_fun(one, two))
140 two = """
148 self.assertEqual(diff, diff_fun(one, two))
154 two = """
158 self.assertEqual(diff, diff_fun(one, two))
[all...]
/third_party/rust/crates/proc-macro-error/tests/ui/
H A Dabort.rs4 abort_from!(one, two);
5 abort_to_string!(one, two);
6 abort_format!(one, two);
7 direct_abort!(one, two);
8 abort_notes!(one, two);
9 abort_call_site_test!(one, two);
/third_party/skia/docs/examples/
H A DRegion_notequal1_operator.cpp8 SkDebugf("%s one %c= two\n", prefix, a != b ? '!' : '='); in REG_FIDDLE()
11 SkRegion two; in REG_FIDDLE() local
12 debugster("empty", one, two); in REG_FIDDLE()
14 two.setRect({1, 2, 3, 3}); in REG_FIDDLE()
15 debugster("set rect", one, two); in REG_FIDDLE()
16 two.op({1, 3, 3, 4}, SkRegion::kUnion_Op); in REG_FIDDLE()
17 debugster("union rect", one, two); in REG_FIDDLE()
H A Dpathops.cpp11 SkColor blend(SkColor one, SkColor two) { in REG_FIDDLE() argument
16 canvas.drawColor(two); in REG_FIDDLE()
40 SkPath one, two; in REG_FIDDLE() local
56 two.reset(); in REG_FIDDLE()
57 two.setFillType(twoF); in REG_FIDDLE()
58 two.addRect(40, 40, 100, 100); in REG_FIDDLE()
64 canvas->drawPath(two, fTwoPaint); in REG_FIDDLE()
65 canvas->drawPath(two, fOutlinePaint); in REG_FIDDLE()
70 Op(one, two, (SkPathOp)op, &result); in REG_FIDDLE()
H A DPath_equal_operator.cpp8 SkDebugf("%s one %c= two\n", prefix, a == b ? '=' : '!'); in REG_FIDDLE()
11 SkPath two; in REG_FIDDLE() local
12 debugster("empty", one, two); in REG_FIDDLE()
14 debugster("moveTo", one, two); in REG_FIDDLE()
16 debugster("rewind", one, two); in REG_FIDDLE()
19 debugster("reset", one, two); in REG_FIDDLE()
/third_party/musl/libc-test/src/functionalext/supplement/string/
H A Dmemmove.c20 char two[50]; variable
46 memset(two, 0, sizeof(two)); in memmove_0200()
49 strcpy(two, "foo"); in memmove_0200()
50 memmove(two, one, 11); in memmove_0200()
54 if (strcmp(two, "helloWorld")) { in memmove_0200()
/third_party/gn/src/gn/
H A Dmetadata_walk_unittest.cc29 TestTarget two(setup, "//foo:two", Target::SOURCE_SET); in TEST()
32 two.metadata().contents().insert( in TEST()
37 two.metadata().contents().insert( in TEST()
40 two.metadata().set_source_dir(SourceDir("/usr/home/files/inner")); in TEST()
44 targets.push_back(&two); in TEST()
67 expected_walked_targets.insert(&two); in TEST()
85 TestTarget two(setup, "//foo:two", Target::SOURCE_SET); in TEST()
88 two in TEST()
[all...]
/third_party/mesa3d/src/compiler/glsl/glcpp/tests/
H A D054-if-with-macros.c2 #define two 2 macro
5 #if five < two
10 #if three >= two
15 #if two + three <= five
20 #if five - two == three
/third_party/skia/src/utils/
H A DSkBase64.cpp28 #if defined _WIN32 // disable 'two', etc. may be used without having been initialized
74 int two = 0; in Decode() local
78 two = bytes[1]; in Decode()
79 one |= two >> 4; in Decode()
80 two = (uint8_t) ((two << 4) & 0xFF); in Decode()
82 two |= three >> 2; in Decode()
85 SkASSERT(one < 256 && two < 256 && three < 256); in Decode()
92 dst[i] = (unsigned char) two; in Decode()
/third_party/googletest/googletest/src/hwext/
H A Dgtest-utils.cc11 * Description: Ignore case to compare two strings
13 * two: second string
18 bool compareStringsByIgnoreCase(const char* one, const char* two) { in compareStringsByIgnoreCase() argument
19 if (one == NULL && two == NULL) { in compareStringsByIgnoreCase()
23 if (one == NULL || two == NULL) { in compareStringsByIgnoreCase()
27 if (strcmp(one, two) == 0) { in compareStringsByIgnoreCase()
32 const int len_two = strlen(two); in compareStringsByIgnoreCase()
43 if (tolower(one[i]) != tolower(two[i])) { in compareStringsByIgnoreCase()
/third_party/skia/gm/
H A Dpathopsinverse.cpp44 SkColor blend(SkColor one, SkColor two) { in blend() argument
49 canvas.drawColor(two); in blend()
69 SkPath one, two; variable
80 two.reset();
81 two.setFillType(twoF);
82 two.addRect(40, 40, 100, 100);
88 canvas->drawPath(two, fTwoPaint);
89 canvas->drawPath(two, fOutlinePaint);
94 Op(one, two, (SkPathOp) op, &result);
156 // The blue draw should (nearly) overdraw all of the red (except where the two path in DEF_SIMPLE_GM()
[all...]
/third_party/icu/icu4c/source/i18n/
H A Dlistformatter.cpp47 PatternHandler(const UnicodeString& two, const UnicodeString& end, UErrorCode& errorCode) : in PatternHandler() argument
48 twoPattern(two, 2, 2, errorCode), in PatternHandler()
51 PatternHandler(const SimpleFormatter& two, const SimpleFormatter& end) : in PatternHandler() argument
52 twoPattern(two), in PatternHandler()
174 const char* lang, const UnicodeString& two, const UnicodeString& end, in createPatternHandler()
179 bool twoIsY = two == spanishYStr; in createPatternHandler()
185 twoIsY ? replacement : two, two, in createPatternHandler()
189 bool twoIsO = two == spanishOStr; in createPatternHandler()
195 twoIsO ? replacement : two, tw in createPatternHandler()
173 createPatternHandler( const char* lang, const UnicodeString& two, const UnicodeString& end, UErrorCode& status) createPatternHandler() argument
407 UnicodeString two, start, middle, end; global() member
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Dlistformatter.cpp47 PatternHandler(const UnicodeString& two, const UnicodeString& end, UErrorCode& errorCode) : in PatternHandler() argument
48 twoPattern(two, 2, 2, errorCode), in PatternHandler()
51 PatternHandler(const SimpleFormatter& two, const SimpleFormatter& end) : in PatternHandler() argument
52 twoPattern(two), in PatternHandler()
174 const char* lang, const UnicodeString& two, const UnicodeString& end, in createPatternHandler()
179 bool twoIsY = two == spanishYStr; in createPatternHandler()
185 twoIsY ? replacement : two, two, in createPatternHandler()
189 bool twoIsO = two == spanishOStr; in createPatternHandler()
195 twoIsO ? replacement : two, tw in createPatternHandler()
173 createPatternHandler( const char* lang, const UnicodeString& two, const UnicodeString& end, UErrorCode& status) createPatternHandler() argument
407 UnicodeString two, start, middle, end; global() member
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dlistformatter.cpp47 PatternHandler(const UnicodeString& two, const UnicodeString& end, UErrorCode& errorCode) : in PatternHandler() argument
48 twoPattern(two, 2, 2, errorCode), in PatternHandler()
51 PatternHandler(const SimpleFormatter& two, const SimpleFormatter& end) : in PatternHandler() argument
52 twoPattern(two), in PatternHandler()
174 const char* lang, const UnicodeString& two, const UnicodeString& end, in createPatternHandler()
179 bool twoIsY = two == spanishYStr; in createPatternHandler()
185 twoIsY ? replacement : two, two, in createPatternHandler()
189 bool twoIsO = two == spanishOStr; in createPatternHandler()
195 twoIsO ? replacement : two, tw in createPatternHandler()
173 createPatternHandler( const char* lang, const UnicodeString& two, const UnicodeString& end, UErrorCode& status) createPatternHandler() argument
407 UnicodeString two, start, middle, end; global() member
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DListFormatter.java273 * @param two
274 * string for two items, containing {0} for the first, and {1}
289 public ListFormatter(String two, String start, String middle, String end) { in ListFormatter() argument
291 compilePattern(two, new StringBuilder()), in ListFormatter()
298 private ListFormatter(String two, String start, String middle, String end, ULocale locale) { in ListFormatter() argument
302 this.patternHandler = createPatternHandler(two, end); in ListFormatter()
451 StaticHandler(String two, String end) { in StaticHandler() argument
452 twoPattern = two; in StaticHandler()
466 // A contextual handler returns one of the two patterns depending on whether the text matched the regexp.
534 private PatternHandler createPatternHandler(String two, Strin argument
[all...]

Completed in 12 milliseconds

12345678910>>...18