HomeSort by relevance Sort by last modified time
    Searched refs:assertEquals (Results 51 - 75 of 5832) sorted by null

1 23 4 5 6 7 8 91011>>

  /libcore/luni/src/test/java/libcore/java/text/
OldDecimalFormatTestICU.java 44 assertEquals("sigDigit doesn't work", "12300", format.format(12345));
45 assertEquals("sigDigit doesn't work", "0.123", format.format(0.12345));
48 assertEquals("sigDigit doesn't work", "3.142", format.format(3.14159));
49 assertEquals("sigDigit doesn't work", "1.23", format.format(1.23004));
52 assertEquals("1.23E1", format.format(12.3));
54 assertEquals("1.23E1", format.format(12.3));
76 assertEquals("xxxxxxxxx123.0", format.format(123));
77 assertEquals(123, format.parse("xxxxxxxxx123.0").intValue());
80 assertEquals("$xx123.00", format.format(123));
81 assertEquals("$1,234.00", format.format(1234))
    [all...]
  /external/chromium_org/tools/json_schema_compiler/
schema_util_test.py 12 self.assertEquals('Bar', StripNamespace('foo.Bar'))
13 self.assertEquals('Baz', StripNamespace('Baz'))
16 self.assertEquals('FooBar', JsFunctionNameToClassName('foo', 'bar'))
17 self.assertEquals('FooBar',
19 self.assertEquals('FooBarBaz',
21 self.assertEquals('FooBarBaz',
  /external/dexmaker/src/test/java/com/google/dexmaker/
TypeIdTest.java 23 assertEquals("Ljava/lang/String;", TypeId.get(String.class).getName());
24 assertEquals("[Ljava/lang/String;", TypeId.get(String[].class).getName());
25 assertEquals("[[Ljava/lang/String;", TypeId.get(String[][].class).getName());
26 assertEquals("I", TypeId.get(int.class).getName());
27 assertEquals("[I", TypeId.get(int[].class).getName());
28 assertEquals("[[I", TypeId.get(int[][].class).getName());
  /libcore/luni/src/test/java/tests/api/org/xml/sax/helpers/
AttributesImplTest.java 44 assertEquals(0, empty.getLength());
45 assertEquals(5, multi.getLength());
51 assertEquals(0, ai.getLength());
55 assertEquals(5, ai.getLength());
60 assertEquals(0, ai.getLength());
69 assertEquals(0, ai.getLength());
72 assertEquals(5, ai.getLength());
76 assertEquals(i, ai.getLength());
82 assertEquals("http://some.uri", multi.getURI(0));
83 assertEquals("http://some.uri", multi.getURI(1))
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_AudioTest.java 34 assertEquals(mKeyForBeatles, Audio.keyFor("[beatles]"));
35 assertEquals(mKeyForBeatles, Audio.keyFor("(beatles)"));
36 assertEquals(mKeyForBeatles, Audio.keyFor("beatles!"));
37 assertEquals(mKeyForBeatles, Audio.keyFor("beatles?"));
38 assertEquals(mKeyForBeatles, Audio.keyFor("'beatles'"));
39 assertEquals(mKeyForBeatles, Audio.keyFor("beatles."));
40 assertEquals(mKeyForBeatles, Audio.keyFor("beatles,"));
42 assertEquals(mKeyForBeatles, Audio.keyFor(" beatles "));
44 assertEquals(mKeyForBeatles, Audio.keyFor("BEATLES"));
46 assertEquals(mKeyForBeatles, Audio.keyFor("the beatles"))
    [all...]
  /external/guava/guava-tests/test/com/google/common/base/
DefaultsTest.java 28 assertEquals(false, Defaults.defaultValue(boolean.class).booleanValue());
29 assertEquals('\0', Defaults.defaultValue(char.class).charValue());
30 assertEquals(0, Defaults.defaultValue(byte.class).byteValue());
31 assertEquals(0, Defaults.defaultValue(short.class).shortValue());
32 assertEquals(0, Defaults.defaultValue(int.class).intValue());
33 assertEquals(0, Defaults.defaultValue(long.class).longValue());
34 assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue());
35 assertEquals(0.0d, Defaults.defaultValue(double.class).doubleValue());
  /frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
RenameClassAdapterTest.java 57 assertEquals("I", mOuter.renameTypeDesc("I"));
58 assertEquals("D", mOuter.renameTypeDesc("D"));
59 assertEquals("V", mOuter.renameTypeDesc("V"));
62 assertEquals("Lcom.package.MyClass;", mOuter.renameTypeDesc("Lcom.package.MyClass;"));
63 assertEquals("Lcom.package.MyClass;", mInner.renameTypeDesc("Lcom.package.MyClass;"));
66 assertEquals("Lorg.blah.New;", mOuter.renameTypeDesc("Lcom.pack.Old;"));
67 assertEquals("Lorg.blah.New$Inner;", mInner.renameTypeDesc("Lcom.pack.Old$Inner;"));
69 assertEquals("Lorg.blah.New$Other;", mOuter.renameTypeDesc("Lcom.pack.Old$Other;"));
70 assertEquals("Lorg.blah.New$Other;", mInner.renameTypeDesc("Lcom.pack.Old$Other;"));
73 assertEquals("[Lorg.blah.New;", mOuter.renameTypeDesc("[Lcom.pack.Old;"))
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/cts/
CameraTest.java 53 assertEquals(0.22291021f, f[0]);
54 assertEquals(0.0f, f[1]);
55 assertEquals(2.2291021f, f[2]);
56 assertEquals(0.0f, f[3]);
57 assertEquals(0.22291021f, f[4]);
58 assertEquals(-6.241486f, f[5]);
59 assertEquals(0.0f, f[6]);
60 assertEquals(0.0f, f[7]);
61 assertEquals(1.0f, f[8]);
75 assertEquals(1.0f, f[0])
    [all...]
  /libcore/luni/src/test/java/libcore/icu/
LocaleDataTest.java 32 assertEquals("AM", l.amPm[0]);
33 assertEquals("BC", l.eras[0]);
35 assertEquals("January", l.longMonthNames[0]);
36 assertEquals("Jan", l.shortMonthNames[0]);
37 assertEquals("J", l.tinyMonthNames[0]);
39 assertEquals("January", l.longStandAloneMonthNames[0]);
40 assertEquals("Jan", l.shortStandAloneMonthNames[0]);
41 assertEquals("J", l.tinyStandAloneMonthNames[0]);
43 assertEquals("Sunday", l.longWeekdayNames[1]);
44 assertEquals("Sun", l.shortWeekdayNames[1])
    [all...]
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/
EmailAddressTest.java 27 assertEquals("", email.getName());
32 assertEquals("john doe", nameKnown.getName());
38 assertEquals("john doe", withQuotes.getName());
43 assertEquals("john doe", noSpace.getName());
49 assertEquals("john doe", noSpaceWithQuotes.getName());
59 assertEquals("test name", address.getName());
60 assertEquals("test@localhost.com", address.getAddress());
63 assertEquals("test name", address.getName());
64 assertEquals("test@localhost.com", address.getAddress());
67 assertEquals("", address.getName())
    [all...]
  /cts/tests/tests/hardware/src/android/hardware/cts/helpers/
SensorCtsHelperTest.java 40 assertEquals(95, (int) SensorCtsHelper.get95PercentileValue(values));
46 assertEquals(950, (int) SensorCtsHelper.get95PercentileValue(values));
52 assertEquals(95 * 95, (int) SensorCtsHelper.get95PercentileValue(values));
63 assertEquals(1, means.length);
64 assertEquals(2.0, means[0], 0.00001);
71 assertEquals(3, means.length);
72 assertEquals(2.0, means[0], 0.00001);
73 assertEquals(3.0, means[1], 0.00001);
74 assertEquals(6.0, means[2], 0.00001);
85 assertEquals(1, variances.length)
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
SplitTest.java 57 assertEquals(expected.length, actual.length);
59 assertEquals(Integer.toString(i), expected[i], actual[i]);
70 assertEquals(1, tokens.length);
73 assertEquals(2, tokens.length);
74 assertEquals("poodle", tokens[0]);
75 assertEquals("zoo", tokens[1]);
77 assertEquals(2, tokens.length);
78 assertEquals("poodle", tokens[0]);
79 assertEquals("zoo", tokens[1]);
81 assertEquals(2, tokens.length)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
SplitTest.java 35 assertEquals(expected.length, results.length);
37 assertEquals(results[i], expected[i]);
48 assertEquals(1, tokens.length);
51 assertEquals(2, tokens.length);
52 assertEquals("poodle", tokens[0]);
53 assertEquals("zoo", tokens[1]);
55 assertEquals(2, tokens.length);
56 assertEquals("poodle", tokens[0]);
57 assertEquals("zoo", tokens[1]);
59 assertEquals(2, tokens.length)
    [all...]
  /libcore/luni/src/test/java/tests/api/org/xml/sax/ext/
Attributes2ImplTest.java 70 assertEquals(0, attrs.getLength());
74 assertEquals(multi.getURI(i), attrs.getURI(i));
75 assertEquals(multi.getLocalName(i), attrs.getLocalName(i));
76 assertEquals(multi.getQName(i), attrs.getQName(i));
77 assertEquals(multi.getType(i), attrs.getType(i));
78 assertEquals(multi.getValue(i), attrs.getValue(i));
79 assertEquals(multi.isDeclared(i), attrs.isDeclared(i));
80 assertEquals(multi.isSpecified(i), attrs.isSpecified(i));
84 assertEquals(0, attrs.getLength());
88 assertEquals(multi.getLength(), attrs.getLength())
    [all...]
  /cts/tests/tests/util/src/android/util/cts/
FloatMathTest.java 24 assertEquals(8.0f, FloatMath.ceil(7.2f));
25 assertEquals(-6.0f, FloatMath.ceil(-6.3f));
28 assertEquals(7.0f, FloatMath.floor(7.2f));
29 assertEquals(-7.0f, FloatMath.floor(-6.3f));
32 assertEquals(-0.26237485f, FloatMath.sin(50));
33 assertEquals(-0.71487643f, FloatMath.sin(150));
34 assertEquals(0.26237485f, FloatMath.sin(-50));
37 assertEquals(0.964966f, FloatMath.cos(50));
38 assertEquals(0.69925081f, FloatMath.cos(150));
39 assertEquals(0.964966f, FloatMath.cos(-50))
    [all...]
  /external/chromium_org/v8/test/mjsunit/
new-string-add.js 30 assertEquals("ab", "a" + "b", "ll");
32 assertEquals("12", "1" + "2", "dd");
33 assertEquals("123", "1" + "2" + "3", "ddd");
34 assertEquals("123", 1 + "2" + "3", "ndd");
35 assertEquals("123", "1" + 2 + "3", "dnd");
36 assertEquals("123", "1" + "2" + 3, "ddn");
38 assertEquals("123", "1" + 2 + 3, "dnn");
39 assertEquals("123", 1 + "2" + 3, "ndn");
40 assertEquals("33", 1 + 2 + "3", "nnd");
43 assertEquals("12", x + 2, "vn")
    [all...]
string-add.js 28 assertEquals("ab", "a" + "b", "ll");
30 assertEquals("12", "1" + "2", "dd");
31 assertEquals("123", "1" + "2" + "3", "ddd");
32 assertEquals("123", 1 + "2" + "3", "ndd");
33 assertEquals("123", "1" + 2 + "3", "dnd");
34 assertEquals("123", "1" + "2" + 3, "ddn");
36 assertEquals("123", "1" + 2 + 3, "dnn");
37 assertEquals("123", 1 + "2" + 3, "ndn");
38 assertEquals("33", 1 + 2 + "3", "nnd");
41 assertEquals("12", x + 2, "vn")
    [all...]
  /external/v8/test/mjsunit/
string-add.js 28 assertEquals("ab", "a" + "b", "ll");
30 assertEquals("12", "1" + "2", "dd");
31 assertEquals("123", "1" + "2" + "3", "ddd");
32 assertEquals("123", 1 + "2" + "3", "ndd");
33 assertEquals("123", "1" + 2 + "3", "dnd");
34 assertEquals("123", "1" + "2" + 3, "ddn");
36 assertEquals("123", "1" + 2 + 3, "dnn");
37 assertEquals("123", 1 + "2" + 3, "ndn");
38 assertEquals("33", 1 + 2 + "3", "nnd");
41 assertEquals("12", x + 2, "vn")
    [all...]
  /frameworks/base/tests/WebViewTests/src/com/android/webviewtests/
JavaBridgeFieldsTest.java 77 assertEquals("undefined",
79 assertEquals("undefined",
81 assertEquals("undefined",
83 assertEquals("undefined",
85 assertEquals("undefined",
87 assertEquals("undefined",
89 assertEquals("undefined",
91 assertEquals("undefined",
93 assertEquals("undefined",
95 assertEquals("undefined"
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
SelectionBuilderTest.java 28 assertEquals(null, new SelectionBuilder(null).build());
29 assertEquals(null, new SelectionBuilder("").build());
30 assertEquals(null, new SelectionBuilder("").addClause(null).build());
31 assertEquals(null, new SelectionBuilder(null).addClause("").build());
32 assertEquals(null, new SelectionBuilder(null).addClause("").addClause(null).build());
36 assertEquals("(A)", new SelectionBuilder("A").build());
37 assertEquals("(A) AND (B=bar) AND (C='1')", new SelectionBuilder("A")
43 assertEquals("(A) AND (B) AND (C)", new SelectionBuilder("A")
52 assertEquals("(A)", new SelectionBuilder(null).addClause("A").build());
53 assertEquals("(A)", new SelectionBuilder("").addClause("A").build())
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
OldAndroidStreamTokenizerTest.java 37 assertEquals(1, a.lineno());
38 assertEquals(StreamTokenizer.TT_WORD, a.nextToken());
39 assertEquals("Token[Testing], line 1", a.toString());
40 assertEquals(StreamTokenizer.TT_NUMBER, a.nextToken());
41 assertEquals("Token[n=12345.0], line 1", a.toString());
42 assertEquals(StreamTokenizer.TT_WORD, a.nextToken());
43 assertEquals("Token[alpha], line 2", a.toString());
44 assertEquals(StreamTokenizer.TT_WORD, a.nextToken());
45 assertEquals("Token[omega], line 3", a.toString());
46 assertEquals(StreamTokenizer.TT_EOF, a.nextToken())
    [all...]
  /libcore/luni/src/test/java/libcore/java/lang/
FloatTest.java 26 assertEquals(2358.166016f, Float.valueOf("2358.166016"));
32 assertEquals(-2.14748365E9f, Float.valueOf(String.valueOf(Integer.MIN_VALUE)));
36 assertEquals(Float.NaN, Float.parseFloat("NaN"));
37 assertEquals(Float.NaN, Float.parseFloat("-NaN"));
38 assertEquals(Float.NaN, Float.parseFloat("+NaN"));
50 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("+Infinity"));
51 assertEquals(Float.POSITIVE_INFINITY, Float.parseFloat("Infinity"));
52 assertEquals(Float.NEGATIVE_INFINITY, Float.parseFloat("-Infinity"));
74 assertEquals(1.0f, Float.parseFloat("1f"));
75 assertEquals(1.0f, Float.parseFloat("1d"))
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
CurrencyTest.java 122 assertEquals("currK.getSymbol()", "\u20a9", currK.getSymbol());
124 assertEquals("currI.getSymbol()", "Rs", currI
126 assertEquals("currUS.getSymbol()", "$", currUS.getSymbol());
129 assertEquals("currK.getSymbol()", "\u20a9", currK.getSymbol());
130 assertEquals("currI.getSymbol()", "Rs", currI
132 assertEquals("currUS.getSymbol()", "US$", currUS.getSymbol());
138 assertEquals("currK.getSymbol()", "\u20a9", currK.getSymbol());
139 assertEquals("currI.getSymbol()", "Rs", currI
141 assertEquals("currUS.getSymbol()", "US$", currUS.getSymbol());
151 assertEquals("\u20ac", currE.getSymbol(Locale.JAPAN))
    [all...]
  /packages/apps/Email/tests/src/com/android/emailcommon/mail/
PackedStringTests.java 43 assertEquals("val1", ps.get("tag1"));
44 assertEquals("val2", ps.get("tag2"));
45 assertEquals("val3", ps.get("tag3"));
46 assertEquals("val4", ps.get("tag4"));
61 assertEquals("value1", b2.get("tag1"));
62 assertEquals("value2", b2.get("tag2"));
63 assertEquals("value3", b2.get("tag3"));
64 assertEquals("value4", b2.get("tag4"));
73 assertEquals("val1", b.get("tag1"));
74 assertEquals("val2", b.get("tag2"))
    [all...]
  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
StringCharacterIteratorTest.java 122 assertEquals(sci0, sci0);
127 assertEquals(sci0, sci1);
132 assertEquals(sci0, sci1);
153 assertEquals(sci0, sci1);
166 assertEquals('f', fixture.current());
168 assertEquals('i', fixture.current());
172 assertEquals("Wrong current char", 'i', it.current());
180 assertEquals('f', fixture.first());
182 assertEquals('f', fixture.first());
184 assertEquals('f', fixture.first())
    [all...]

Completed in 1953 milliseconds

1 23 4 5 6 7 8 91011>>