/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ |
IntegerTest.java | 41 assertEquals("Returned incorrect byte value", -1, new Integer(65535) 43 assertEquals("Returned incorrect byte value", 127, new Integer(127) 54 assertEquals("-2 compared to -2 gave non-zero answer", 0, new Integer(-2) 72 assertEquals("Failed for 132233", 74 assertEquals("Failed for 07654321", 80 assertEquals("Failed for -23", -23, Integer.decode("-23").intValue()); 81 assertEquals("Returned incorrect value for 0 decimal", 0, Integer 83 assertEquals("Returned incorrect value for 0 hex", 0, Integer.decode("0x0") 205 assertEquals("Returned incorrect double value", 2147483647.0, new Integer(2147483647) 207 assertEquals("Returned incorrect double value", -2147483647.0, new Integer(-2147483647 [all...] |
LongTest.java | 42 assertEquals("Returned incorrect byte value", 127, l.byteValue()); 43 assertEquals("Returned incorrect byte value", -1, new Long(Long.MAX_VALUE) 54 assertEquals("-2 compared to -2 gave non-zero answer", 0, new Long(-2L) 72 assertEquals("Returned incorrect value for hex string", 255L, Long.decode( 74 assertEquals("Returned incorrect value for dec string", -89000L, Long.decode( 76 assertEquals("Returned incorrect value for 0 decimal", 0, Long.decode("0") 78 assertEquals("Returned incorrect value for 0 hex", 0, Long.decode("0x0") 204 assertEquals("Parsed to incorrect long value", 89000000005L, l); 205 assertEquals("Returned incorrect value for 0", 0, Long.parseLong("0")); 235 assertEquals("Returned incorrect value" [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
GravityTest.java | 52 assertEquals(19, mOutRect.left); 53 assertEquals(21, mOutRect.right); 54 assertEquals(20, mOutRect.top); 55 assertEquals(23, mOutRect.bottom); 57 assertEquals(24, mOutRect.left); 58 assertEquals(26, mOutRect.right); 59 assertEquals(25, mOutRect.top); 60 assertEquals(28, mOutRect.bottom); 62 assertEquals(19, mOutRect.left); 63 assertEquals(21, mOutRect.right) [all...] |
ViewGroup_MarginLayoutParamsTest.java | 79 assertEquals(20, mMarginLayoutParams.leftMargin); 80 assertEquals(30, mMarginLayoutParams.topMargin); 81 assertEquals(120, mMarginLayoutParams.rightMargin); 82 assertEquals(140, mMarginLayoutParams.bottomMargin); 84 assertEquals(20, mMarginLayoutParams.getMarginStart()); 85 assertEquals(120, mMarginLayoutParams.getMarginEnd()); 87 assertEquals(false, mMarginLayoutParams.isMarginRelative()); 94 assertEquals(20, mMarginLayoutParams.getMarginStart()); 95 assertEquals(30, mMarginLayoutParams.topMargin); 96 assertEquals(120, mMarginLayoutParams.getMarginEnd()) [all...] |
/libcore/luni/src/test/java/libcore/xml/ |
PullParserDtdTest.java | 64 assertEquals(XmlPullParser.START_TAG, parser.next()); 65 assertEquals(XmlPullParser.TEXT, parser.next()); 66 assertEquals("aaa", parser.getText()); 67 assertEquals(XmlPullParser.END_TAG, parser.next()); 68 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); 76 assertEquals(XmlPullParser.START_TAG, parser.next()); 77 assertEquals(XmlPullParser.TEXT, parser.next()); 78 assertEquals("android", parser.getText()); 79 assertEquals(XmlPullParser.END_TAG, parser.next()); 80 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()) [all...] |
/external/chromium_org/v8/test/mjsunit/ |
toint32.js | 32 assertEquals(0, toInt32(Infinity), "Inf"); 33 assertEquals(0, toInt32(-Infinity), "-Inf"); 34 assertEquals(0, toInt32(NaN), "NaN"); 35 assertEquals(0, toInt32(0.0), "zero"); 36 assertEquals(0, toInt32(-0.0), "-zero"); 38 assertEquals(0, toInt32(Number.MIN_VALUE)); 39 assertEquals(0, toInt32(-Number.MIN_VALUE)); 40 assertEquals(0, toInt32(0.1)); 41 assertEquals(0, toInt32(-0.1)); 42 assertEquals(1, toInt32(1), "one") [all...] |
constant-folding-2.js | 41 assertEquals(2, 1 + 1); 42 assertEquals(2.5, 1.25 + 1.25); 43 assertEquals("Infinity", String(Infinity + Infinity)); 44 assertEquals("Infinity", String(Infinity + 3)); 45 assertEquals("NaN", String(Infinity + (-Infinity))); 46 assertEquals("NaN", String(NaN + 2)); 47 assertEquals("-Infinity", String(1 / (-0.0 + (-0.0)))); 48 assertEquals("Infinity", String(1 / (-0.0 + 0.0))); 56 assertEquals(2, ++a); 57 assertEquals("Infinity", String(++b)) [all...] |
/external/v8/test/mjsunit/ |
toint32.js | 32 assertEquals(0, toInt32(Infinity), "Inf"); 33 assertEquals(0, toInt32(-Infinity), "-Inf"); 34 assertEquals(0, toInt32(NaN), "NaN"); 35 assertEquals(0, toInt32(0.0), "zero"); 36 assertEquals(0, toInt32(-0.0), "-zero"); 38 assertEquals(0, toInt32(Number.MIN_VALUE)); 39 assertEquals(0, toInt32(-Number.MIN_VALUE)); 40 assertEquals(0, toInt32(0.1)); 41 assertEquals(0, toInt32(-0.1)); 42 assertEquals(1, toInt32(1), "one") [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
CsvUtilsTests.java | 29 assertEquals("", CsvUtils.unescapeField("")); 30 assertEquals("text", CsvUtils.unescapeField("text")); // text 31 assertEquals("", CsvUtils.unescapeField("\"\"")); // "" 32 assertEquals("\"", CsvUtils.unescapeField("\"\"\"\"")); // """" -> " 33 assertEquals("text", CsvUtils.unescapeField("\"text\"")); // "text" -> text 34 assertEquals("\"text", CsvUtils.unescapeField("\"\"\"text\"")); // """text" -> "text 35 assertEquals("text\"", CsvUtils.unescapeField("\"text\"\"\"")); // "text""" -> text" 36 assertEquals("te\"xt", CsvUtils.unescapeField("\"te\"\"xt\"")); // "te""xt" -> te"xt 37 assertEquals("\"text\"", 39 assertEquals("t\"e\"x\"t" [all...] |
/dalvik/dx/tests/116-leb128/com/android/dx/util/ |
Leb128UtilsTest.java | 28 assertEquals(0, Leb128.readUnsignedLeb128(new ByteArrayByteInput((byte) 0))); 29 assertEquals(1, Leb128.readUnsignedLeb128(new ByteArrayByteInput((byte) 1))); 30 assertEquals(127, Leb128.readUnsignedLeb128(new ByteArrayByteInput((byte) 0x7f))); 31 assertEquals(16256, Leb128.readUnsignedLeb128( 36 assertEquals(new byte[] { 0 }, encodeUnsignedLeb(0)); 37 assertEquals(new byte[] { 1 }, encodeUnsignedLeb(1)); 38 assertEquals(new byte[] { 0x7f }, encodeUnsignedLeb(127)); 39 assertEquals(new byte[] { (byte) 0x80, 0x7f }, encodeUnsignedLeb(16256)); 40 assertEquals(new byte[] { (byte) 0xb4, 0x07 }, encodeUnsignedLeb(0x3b4)); 41 assertEquals(new byte[] { (byte) 0x8c, 0x08 }, encodeUnsignedLeb(0x40c)) [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ForwardingMultimapTest.java | 50 assertEquals("[size]", getCalls()); 55 assertEquals("[isEmpty]", getCalls()); 60 assertEquals("[containsKey(Object)]", getCalls()); 65 assertEquals("[containsValue(Object)]", getCalls()); 70 assertEquals("[containsEntry(Object,Object)]", getCalls()); 75 assertEquals("[put(Object,Object)]", getCalls()); 80 assertEquals("[remove(Object,Object)]", getCalls()); 85 assertEquals("[remove(Object,Object)]", getCalls()); 90 assertEquals("[putAll(Multimap)]", getCalls()); 95 assertEquals("[replaceValues(Object,Iterable)]", getCalls()) [all...] |
ForwardingTableTest.java | 47 assertEquals("[hashCode]", getCalls()); 52 assertEquals("[cellSet]", getCalls()); 57 assertEquals("[clear]", getCalls()); 62 assertEquals("[column(Object)]", getCalls()); 67 assertEquals("[columnKeySet]", getCalls()); 72 assertEquals("[columnMap]", getCalls()); 77 assertEquals("[contains(Object,Object)]", getCalls()); 82 assertEquals("[containsColumn(Object)]", getCalls()); 87 assertEquals("[containsRow(Object)]", getCalls()); 92 assertEquals("[containsValue(Object)]", getCalls()) [all...] |
CountTest.java | 29 assertEquals(20, new Count(20).get()); 34 assertEquals(20, holder.getAndAdd(1)); 35 assertEquals(21, holder.get()); 40 assertEquals(21, holder.addAndGet(1)); 45 assertEquals(10, holder.getAndSet(20)); 46 assertEquals(20, holder.get()); 52 assertEquals(20, holder.get());
|
/cts/tests/tests/net/src/android/net/cts/ |
Uri_BuilderTest.java | 28 assertEquals("http", uri.getScheme()); 29 assertEquals("google.com", uri.getAuthority()); 30 assertEquals("/p1/p2", uri.getPath()); 31 assertEquals("query", uri.getQuery()); 32 assertEquals("fragment", uri.getFragment()); 33 assertEquals(uri.toString(), builder.toString()); 38 assertEquals("mailto", uri.getScheme()); 39 assertEquals("nobody", uri.getSchemeSpecificPart()); 40 assertEquals(uri.toString(), builder.toString()); 51 assertEquals("http", uri.getScheme()) [all...] |
/external/android-mock/tests/com/google/android/testing/mocking/ |
FileUtilsTest.java | 28 assertEquals(convertPathToNative("java/lang/Object.class"), 30 assertEquals(convertPathToNative( 36 assertEquals(convertPathToNative("java/lang/Object.class"), 38 assertEquals(convertPathToNative( 44 assertEquals("v15.genmocks.java.util.VectorDelegateInterface", 46 assertEquals("v16.genmocks.java.util.VectorDelegateInterface", 48 assertEquals("v201.genmocks.java.util.VectorDelegateInterface", 50 assertEquals("v21.genmocks.java.util.VectorDelegateInterface", 52 assertEquals("v22.genmocks.java.util.VectorDelegateInterface", 54 assertEquals("genmocks.java.util.VectorDelegateInterface" [all...] |
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
LogTest.java | 41 assertEquals("", mLog.getOut()); 42 assertEquals("", mLog.getErr()); 46 assertEquals("", mLog.getOut()); 51 assertEquals("Test 42\n", mLog.getOut()); 52 assertEquals("", mLog.getErr()); 57 assertEquals("", mLog.getOut()); 58 assertEquals("", mLog.getErr()); 62 assertEquals("Test 43\n", mLog.getOut()); 63 assertEquals("", mLog.getErr()); 68 assertEquals("", mLog.getOut()) [all...] |
/libcore/luni/src/test/java/tests/api/org/xml/sax/ |
SAXParseExceptionTest.java | 49 assertEquals(ERR, e.getMessage()); 50 assertEquals(c, e.getException()); 52 assertEquals(PUB, e.getPublicId()); 53 assertEquals(SYS, e.getSystemId()); 54 assertEquals(ROW, e.getLineNumber()); 55 assertEquals(COL, e.getColumnNumber()); 61 assertEquals(c, e.getException()); 63 assertEquals(PUB, e.getPublicId()); 64 assertEquals(SYS, e.getSystemId()); 65 assertEquals(ROW, e.getLineNumber()) [all...] |
/packages/apps/Settings/tests/src/com/android/settings/ |
DeviceInfoSettingsTest.java | 32 assertEquals("Unavailable", DeviceInfoSettings.formatKernelVersion("")); 33 assertEquals("2.6.38.8-gg784\n" + 40 assertEquals("3.0.31-g6fb96c9\n" + 47 assertEquals("2.6.38.8-a-b-jellybean+\n" +
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
BidiTest.java | 31 assertEquals("different length", expected.length, bidi.getRunCount()); 149 assertEquals(0, bd.getBaseLevel()); 150 assertEquals(0, bd.getLength()); 151 assertEquals(0, bd.getLevelAt(0)); 152 assertEquals(0, bd.getLevelAt(1000)); 153 assertEquals(1, bd.getRunCount()); 161 assertEquals(1, bd.getBaseLevel()); 162 assertEquals(0, bd.getLength()); 163 assertEquals(1, bd.getLevelAt(0)); 164 assertEquals(1, bd.getLevelAt(1000)) [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
Interpolator_ResultTest.java | 27 assertEquals(Result.FREEZE_START, Result.valueOf("FREEZE_START")); 28 assertEquals(Result.FREEZE_END, Result.valueOf("FREEZE_END")); 29 assertEquals(Result.NORMAL, Result.valueOf("NORMAL")); 34 assertEquals(3, result.length); 35 assertEquals(Result.NORMAL, result[0]); 36 assertEquals(Result.FREEZE_START, result[1]); 37 assertEquals(Result.FREEZE_END, result[2]);
|
Shader_TileModeTest.java | 26 assertEquals(TileMode.CLAMP, TileMode.valueOf("CLAMP")); 27 assertEquals(TileMode.MIRROR, TileMode.valueOf("MIRROR")); 28 assertEquals(TileMode.REPEAT, TileMode.valueOf("REPEAT")); 33 assertEquals(3, tileMode.length); 34 assertEquals(TileMode.CLAMP, tileMode[0]); 35 assertEquals(TileMode.REPEAT, tileMode[1]); 36 assertEquals(TileMode.MIRROR, tileMode[2]);
|
/external/chromium_org/tools/json_schema_compiler/ |
cpp_util_test.py | 11 self.assertEquals('Permissions', cpp_util.Classname('permissions')) 12 self.assertEquals('UpdateAllTheThings', 14 self.assertEquals('Aa_Bb_Cc', cpp_util.Classname('aa.bb.cc')) 17 self.assertEquals('namespace extensions {', 19 self.assertEquals('} // namespace extensions', 21 self.assertEquals('namespace extensions {\n' 25 self.assertEquals('} // namespace api\n'
|
/libcore/luni/src/test/java/libcore/java/awt/font/ |
TextAttributeTest.java | 25 assertEquals("java.awt.font.TextAttribute(kerning)", 27 assertEquals("java.awt.font.TextAttribute(ligatures)", 29 assertEquals("java.awt.font.TextAttribute(tracking)", 34 assertEquals(new Integer(1), TextAttribute.KERNING_ON); 35 assertEquals(new Integer(1), TextAttribute.LIGATURES_ON); 36 assertEquals(new Float(0.04f), TextAttribute.TRACKING_LOOSE); 37 assertEquals(new Float(-0.04f), TextAttribute.TRACKING_TIGHT);
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
AttachmentUtilitiesTests.java | 59 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", null)); 60 assertEquals("message/rfc822", AttachmentUtilities.inferMimeType("a.eml", "")); 61 assertEquals("message/rfc822", 63 assertEquals("message/rfc822", 65 assertEquals("message/rfc822", 69 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_PNG, "Mime/TyPe")); 70 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_ABC, "Mime/TyPe")); 71 assertEquals("mime/type", 73 assertEquals("mime/type", AttachmentUtilities.inferMimeType(null, "Mime/TyPe")); 74 assertEquals("mime/type", AttachmentUtilities.inferMimeType("", "Mime/TyPe")) [all...] |
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/ |
MimeTypeTest.java | 14 assertEquals(MimeType.EML_ATTACHMENT_CONTENT_TYPE, 18 assertEquals("video/mp4", MimeType.inferMimeType("video.mp4", MimeType.GENERIC_MIMETYPE)); 21 assertEquals(TEST_MIME_TYPE, MimeType.inferMimeType("filename", TEST_MIME_TYPE)); 25 assertEquals("video/mp4", MimeType.inferMimeType("video.mp4", "")); 29 assertEquals(MimeType.GENERIC_MIMETYPE, MimeType.inferMimeType("video.foo", "")); 32 assertEquals("text/rtf", MimeType.inferMimeType("filename.rtf", MimeType.GENERIC_MIMETYPE)); 35 assertEquals("application/rtf", MimeType.inferMimeType("filename.rtf", "application/rtf"));
|