Home
last modified time | relevance | path

Searched refs:Assert (Results 1 – 25 of 3174) sorted by relevance

12345678910>>...127

/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java144 import junit.framework.Assert;
409 Assert.assertTrue(message.hasOptionalInt32 ()); in assertAllFieldsSet()
410 Assert.assertTrue(message.hasOptionalInt64 ()); in assertAllFieldsSet()
411 Assert.assertTrue(message.hasOptionalUint32 ()); in assertAllFieldsSet()
412 Assert.assertTrue(message.hasOptionalUint64 ()); in assertAllFieldsSet()
413 Assert.assertTrue(message.hasOptionalSint32 ()); in assertAllFieldsSet()
414 Assert.assertTrue(message.hasOptionalSint64 ()); in assertAllFieldsSet()
415 Assert.assertTrue(message.hasOptionalFixed32 ()); in assertAllFieldsSet()
416 Assert.assertTrue(message.hasOptionalFixed64 ()); in assertAllFieldsSet()
417 Assert.assertTrue(message.hasOptionalSfixed32()); in assertAllFieldsSet()
[all …]
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
DANTLRxxxxStreamFixture.cs79 Assert.AreEqual(0, inputStream.Count); in TestSizeOnEmptyANTLRInputStream()
90 Assert.AreEqual(grammarStr.Length, inputStream.Count); in TestSizeOnANTLRInputStream()
101 Assert.AreEqual(0, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream()
104 Assert.AreEqual(1, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream()
107 Assert.AreEqual(2, inputStream.Index); in TestConsumeAndIndexOnANTLRInputStream()
113 Assert.AreEqual(inputStream.Index, inputStream.Count); in TestConsumeAndIndexOnANTLRInputStream()
129 Assert.AreEqual(inputStream.Index, inputStream.Count); in TestConsumeAllCharactersInAnANTLRInputStream()
140 Assert.AreEqual(0, inputStream.Index); in TestConsumeOnANTLRInputStream()
141 Assert.AreEqual(0, inputStream.CharPositionInLine); in TestConsumeOnANTLRInputStream()
142 Assert.AreEqual(1, inputStream.Line); in TestConsumeOnANTLRInputStream()
[all …]
DRewriteRuleXxxxStreamFixture.cs100 Assert.IsFalse(tokenTest.HasNext, "tokenTest has to give back false here."); in CheckRRTokenStreamBehaviourWhileEmpty1()
101 Assert.AreEqual(description.ToString(), tokenTest.Description, in CheckRRTokenStreamBehaviourWhileEmpty1()
103 Assert.AreEqual(0, tokenTest.Count, "The number of elements should be zero."); in CheckRRTokenStreamBehaviourWhileEmpty1()
105 Assert.IsTrue(true, "Reset() shouldn't make any problems here."); in CheckRRTokenStreamBehaviourWhileEmpty1()
106 Assert.AreEqual(0, tokenTest.Count, in CheckRRTokenStreamBehaviourWhileEmpty1()
119 Assert.IsFalse(subtreeTest.HasNext, "HasNext has to give back false here."); in CheckRRSubtreeStreamBehaviourWhileEmpty1()
120 Assert.AreEqual(description.ToString(), subtreeTest.Description, in CheckRRSubtreeStreamBehaviourWhileEmpty1()
122 Assert.AreEqual(0, subtreeTest.Count, "The number of elements should be zero."); in CheckRRSubtreeStreamBehaviourWhileEmpty1()
124 Assert.IsTrue(true, "Reset() shouldn't make any problems here."); in CheckRRSubtreeStreamBehaviourWhileEmpty1()
125 Assert.AreEqual(0, subtreeTest.Count, in CheckRRSubtreeStreamBehaviourWhileEmpty1()
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTestUtil.java242 import junit.framework.Assert;
490 Assert.assertTrue(message.hasOptionalInt32()); in assertAllFieldsSet()
491 Assert.assertTrue(message.hasOptionalInt64()); in assertAllFieldsSet()
492 Assert.assertTrue(message.hasOptionalUint32()); in assertAllFieldsSet()
493 Assert.assertTrue(message.hasOptionalUint64()); in assertAllFieldsSet()
494 Assert.assertTrue(message.hasOptionalSint32()); in assertAllFieldsSet()
495 Assert.assertTrue(message.hasOptionalSint64()); in assertAllFieldsSet()
496 Assert.assertTrue(message.hasOptionalFixed32()); in assertAllFieldsSet()
497 Assert.assertTrue(message.hasOptionalFixed64()); in assertAllFieldsSet()
498 Assert.assertTrue(message.hasOptionalSfixed32()); in assertAllFieldsSet()
[all …]
/external/smali/dexlib2/src/test/java/org/jf/util/
DNumberUtilsTest.java34 import junit.framework.Assert;
40 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.23f))); in isLikelyFloatTest()
41 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.0f))); in isLikelyFloatTest()
42 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NaN))); in isLikelyFloatTest()
43Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NEGATIVE_INFINITY))); in isLikelyFloatTest()
44Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.POSITIVE_INFINITY))); in isLikelyFloatTest()
45 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1e-30f))); in isLikelyFloatTest()
46 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1000f))); in isLikelyFloatTest()
47 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1f))); in isLikelyFloatTest()
48 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(-1f))); in isLikelyFloatTest()
[all …]
/external/testng/src/test/java/test/mannotation/
DMAnnotationSampleTest.java3 import org.testng.Assert;
35 Assert.assertTrue(test1.getEnabled()); in verifyTestClassLevel()
36 Assert.assertEquals(test1.getGroups(), new String[] { "group1", "group2" }); in verifyTestClassLevel()
37 Assert.assertTrue(test1.getAlwaysRun()); in verifyTestClassLevel()
38 Assert.assertEquals(test1.getParameters(), new String[] { "param1", "param2" }); in verifyTestClassLevel()
39Assert.assertEqualsNoOrder(test1.getDependsOnGroups(), new String[] { "dg1", "dg2" }, "depends on… in verifyTestClassLevel()
40 Assert.assertEqualsNoOrder( test1.getDependsOnMethods(), new String[] { "dm1", "dm2" }); in verifyTestClassLevel()
41 Assert.assertEquals(test1.getTimeOut(), 42); in verifyTestClassLevel()
42 Assert.assertEquals(test1.getInvocationCount(), 43); in verifyTestClassLevel()
43 Assert.assertEquals(test1.getSuccessPercentage(), 44); in verifyTestClassLevel()
[all …]
/external/smali/smalidea/src/test/java/org/jf/smalidea/
DSmaliFieldTest.java43 import org.junit.Assert;
52 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testBasicField()
55 Assert.assertEquals(1, fields.length); in testBasicField()
56 Assert.assertEquals("myField", fields[0].getName()); in testBasicField()
57 Assert.assertTrue(fields[0].getType() instanceof PsiPrimitiveType); in testBasicField()
58 Assert.assertEquals("int", fields[0].getType().getCanonicalText()); in testBasicField()
60 Assert.assertNotNull("I", typeElement); in testBasicField()
61 Assert.assertEquals("I", typeElement.getText()); in testBasicField()
64 Assert.assertNotNull(modifierList); in testBasicField()
65 Assert.assertEquals(AccessFlags.PUBLIC.getValue(), modifierList.getAccessFlags()); in testBasicField()
[all …]
DSmaliAnnotationTest.java40 import org.junit.Assert;
81 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testClassAnnotation()
123 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testFieldAnnotation()
166 Assert.assertEquals("my.pkg.blah", smaliClass.getQualifiedName()); in testMethodAnnotation()
173 Assert.assertEquals(2, annotationOwner.getAnnotations().length); in doTest()
175Assert.assertEquals("my.TestAnnotation", annotationOwner.getAnnotations()[0].getQualifiedName()); in doTest()
177 Assert.assertNotNull(annotationNameRef); in doTest()
179 Assert.assertNotNull(smaliAnnotationClass); in doTest()
180 Assert.assertEquals("my.TestAnnotation", smaliAnnotationClass.getQualifiedName()); in doTest()
182Assert.assertEquals("my.TestAnnotation2", annotationOwner.getAnnotations()[1].getQualifiedName()); in doTest()
[all …]
DSmaliImplementsExtendsTest.java40 import org.junit.Assert;
57 Assert.assertEquals(1, extendsList.getReferencedTypes().length); in testNormalClass()
58 Assert.assertEquals("my.pkg.base", extendsList.getReferencedTypes()[0].getCanonicalText()); in testNormalClass()
59 Assert.assertEquals(1, extendsList.getReferenceNames().length); in testNormalClass()
60 Assert.assertEquals("my.pkg.base", extendsList.getReferenceNames()[0]); in testNormalClass()
61 Assert.assertEquals(1, smaliClass.getExtendsListTypes().length); in testNormalClass()
62 Assert.assertEquals("my.pkg.base", smaliClass.getExtendsListTypes()[0].getCanonicalText()); in testNormalClass()
65 Assert.assertNotNull(resolvedSuper); in testNormalClass()
66 Assert.assertEquals("my.pkg.base", resolvedSuper.getQualifiedName()); in testNormalClass()
69 Assert.assertEquals(2, implementsList.getReferencedTypes().length); in testNormalClass()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
57Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint()
65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
68 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint()
82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
90 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
140 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
149 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
163 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
172 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
[all …]
DGeneratedMessageTest.cs63 Assert.AreEqual(false, message.SingleBool); in DefaultValues()
64 Assert.AreEqual(ByteString.Empty, message.SingleBytes); in DefaultValues()
65 Assert.AreEqual(0.0, message.SingleDouble); in DefaultValues()
66 Assert.AreEqual(0, message.SingleFixed32); in DefaultValues()
67 Assert.AreEqual(0L, message.SingleFixed64); in DefaultValues()
68 Assert.AreEqual(0.0f, message.SingleFloat); in DefaultValues()
69 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues()
70 Assert.IsNull(message.SingleForeignMessage); in DefaultValues()
71 Assert.AreEqual(ImportEnum.Unspecified, message.SingleImportEnum); in DefaultValues()
72 Assert.IsNull(message.SingleImportMessage); in DefaultValues()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs51 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Name); in FileDescriptor()
52 Assert.AreEqual("protobuf_unittest", file.Package); in FileDescriptor()
54 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in FileDescriptor()
55 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Proto.Name); in FileDescriptor()
58 Assert.AreEqual(0, file.PublicDependencies.Count); in FileDescriptor()
59 Assert.AreEqual(1, UnittestImportProto3Reflection.Descriptor.PublicDependencies.Count); in FileDescriptor()
60Assert.AreEqual(UnittestImportPublicProto3Reflection.Descriptor, UnittestImportProto3Reflection.De… in FileDescriptor()
62 Assert.AreEqual(1, file.Dependencies.Count); in FileDescriptor()
63 Assert.AreEqual(UnittestImportProto3Reflection.Descriptor, file.Dependencies[0]); in FileDescriptor()
66 Assert.AreSame(typeof(TestAllTypes), messageType.ClrType); in FileDescriptor()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/
DCodedOutputStreamTest.cs55 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
57Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint32Size((uint) value)); in AssertWriteVarint()
65 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
68 Assert.AreEqual(data.Length, CodedOutputStream.ComputeRawVarint64Size(value)); in AssertWriteVarint()
82 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
90 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteVarint()
140 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
149 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian32()
163 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
172 Assert.AreEqual(data, rawOutput.ToArray()); in AssertWriteLittleEndian64()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DTimestampTest.cs58Assert.AreEqual(new DateTime(1970, 1, 1, 0, 0, 1, DateTimeKind.Utc).AddMilliseconds(1), t1.ToDateT… in ToDateTimeTruncation()
61Assert.AreEqual(new DateTime(1969, 12, 31, 23, 59, 59).AddMilliseconds(1), t2.ToDateTime()); in ToDateTimeTruncation()
72 Assert.Throws<InvalidOperationException>(() => value.ToDateTime()); in ToDateTime_OutOfRange()
89 Assert.AreEqual(timestamp, Timestamp.FromDateTime(dateTime)); in AssertRoundtrip()
90 Assert.AreEqual(dateTime, timestamp.ToDateTime()); in AssertRoundtrip()
91 Assert.AreEqual(DateTimeKind.Utc, timestamp.ToDateTime().Kind); in AssertRoundtrip()
100 Assert.AreEqual(difference, t1 - t2); in Arithmetic()
101 Assert.AreEqual(-difference, t2 - t1); in Arithmetic()
103 Assert.AreEqual(t1, t2 + difference); in Arithmetic()
104 Assert.AreEqual(t2, t1 - difference); in Arithmetic()
[all …]
/external/smali/smalidea/src/test/java/org/jf/smalidea/dexlib/
DSmalideaMethodTest.java51 import org.junit.Assert;
95 Assert.assertEquals("Lmy/pkg/blah;", method.getDefiningClass()); in testSmalideaMethod()
96 Assert.assertEquals("someMethodName", method.getName()); in testSmalideaMethod()
97 Assert.assertEquals("I", method.getReturnType()); in testSmalideaMethod()
100 Assert.assertEquals(1, parameterTypes.size()); in testSmalideaMethod()
101 Assert.assertEquals("I", parameterTypes.get(0)); in testSmalideaMethod()
104 Assert.assertEquals(1, parameters.size()); in testSmalideaMethod()
105 Assert.assertEquals("I", parameters.get(0).getType()); in testSmalideaMethod()
106 Assert.assertEquals("edge", parameters.get(0).getName()); in testSmalideaMethod()
108 Assert.assertEquals(AccessFlags.PUBLIC.getValue(), method.getAccessFlags()); in testSmalideaMethod()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs68 Assert.AreEqual(3, converted.Count); in FileDescriptor_BuildFromByteStrings()
74 Assert.AreEqual("unittest_proto3.proto", file.Name); in TestFileDescriptor()
75 Assert.AreEqual("protobuf_unittest3", file.Package); in TestFileDescriptor()
77 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in TestFileDescriptor()
78 Assert.AreEqual("unittest_proto3.proto", file.Proto.Name); in TestFileDescriptor()
81 Assert.AreEqual(0, file.PublicDependencies.Count); in TestFileDescriptor()
82 Assert.AreEqual(1, importedFile.PublicDependencies.Count); in TestFileDescriptor()
83 Assert.AreEqual(importedPublicFile, importedFile.PublicDependencies[0]); in TestFileDescriptor()
85 Assert.AreEqual(1, file.Dependencies.Count); in TestFileDescriptor()
86 Assert.AreEqual(importedFile, file.Dependencies[0]); in TestFileDescriptor()
[all …]
/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs55 Assert.AreEqual(20, clone["x"].C); in Clone_ClonesMessages()
70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
87 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
137 Assert.IsFalse(map.Equals(new object())); in Equality_Simple()
177 Assert.AreEqual(expected, map2); in Add_Dictionary()
187 Assert.Throws<ArgumentException>(() => map.Add("foo", "baz")); in Add_KeyAlreadyExists()
196 Assert.AreEqual("y", map["x"]); in Add_Pair()
197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair()
[all …]
DRepeatedFieldTest.cs51 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected()
52 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected()
53 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected()
54 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected()
55 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected()
63 Assert.AreEqual(1, list.Count); in Add_SingleItem()
64 Assert.AreEqual("foo", list[0]); in Add_SingleItem()
72 Assert.AreEqual(2, list.Count); in Add_Sequence()
73 Assert.AreEqual("foo", list[0]); in Add_Sequence()
74 Assert.AreEqual("bar", list[1]); in Add_Sequence()
[all …]
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs55 Assert.AreEqual(20, clone["x"].C); in Clone_ClonesMessages()
70 Assert.Throws<ArgumentNullException>(() => map.Add(0, nullValue)); in TestNullValues()
71 Assert.Throws<ArgumentNullException>(() => map[0] = nullValue); in TestNullValues()
80 Assert.Throws<ArgumentNullException>(() => map.Add(null, new ForeignMessage())); in Add_ForbidsNullKeys()
87 Assert.Throws<ArgumentNullException>(() => map[null] = new ForeignMessage()); in Indexer_ForbidsNullKeys()
137 Assert.IsFalse(map.Equals(new object())); in Equality_Simple()
177 Assert.AreEqual(expected, map2); in Add_Dictionary()
187 Assert.Throws<ArgumentException>(() => map.Add("foo", "baz")); in Add_KeyAlreadyExists()
196 Assert.AreEqual("y", map["x"]); in Add_Pair()
197 Assert.Throws<ArgumentException>(() => collection.Add(NewKeyValuePair("x", "z"))); in Add_Pair()
[all …]
DRepeatedFieldTest.cs51 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected()
52 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected()
53 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected()
54 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected()
55 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected()
63 Assert.AreEqual(1, list.Count); in Add_SingleItem()
64 Assert.AreEqual("foo", list[0]); in Add_SingleItem()
72 Assert.AreEqual(2, list.Count); in Add_Sequence()
73 Assert.AreEqual("foo", list[0]); in Add_Sequence()
74 Assert.AreEqual("bar", list[1]); in Add_Sequence()
[all …]
/external/smali/smali/src/test/java/org/jf/smali/
DShortLiteralTest.java33 import org.junit.Assert;
42 Assert.assertTrue(LiteralTools.parseShort("0x0") == 0x0); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseShort("0x00") == 0x0); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseShort("0x1") == 0x1); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseShort("0x1234") == 0x1234); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseShort("0x7fff") == 0x7fff); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseShort("0xFFFF") == -1); in SuccessHexTests()
50 Assert.assertTrue(LiteralTools.parseShort("-0x00") == 0); in SuccessHexTests()
51 Assert.assertTrue(LiteralTools.parseShort("-0x01") == -1); in SuccessHexTests()
[all …]
DByteLiteralTest.java33 import org.junit.Assert;
42 Assert.assertTrue(LiteralTools.parseByte("0x0T") == 0x0); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseByte("0x00") == 0x0); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseByte("0x1T") == 0x1); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseByte("0x12") == 0x12); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseByte("0x7fT") == 0x7f); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseByte("0x80t") == Byte.MIN_VALUE); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseByte("0xFFt") == -1); in SuccessHexTests()
50 Assert.assertTrue(LiteralTools.parseByte("-0x00") == 0); in SuccessHexTests()
51 Assert.assertTrue(LiteralTools.parseByte("-0x01") == -1); in SuccessHexTests()
[all …]
DLongLiteralTest.java33 import org.junit.Assert;
40 Assert.assertTrue(LiteralTools.parseLong("0x0L") == 0x0); in SuccessHexTests()
41 Assert.assertTrue(LiteralTools.parseLong("0x00L") == 0x0); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseLong("0x1L") == 0x1); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseLong("0x1234567890123456L") == 0x1234567890123456L); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseLong("0x7fffffffffffffffL") == 0x7fffffffffffffffL); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseLong("0xFFFFFFFFFFFFFFFFL") == -1); in SuccessHexTests()
48 Assert.assertTrue(LiteralTools.parseLong("-0x00L") == 0); in SuccessHexTests()
49 Assert.assertTrue(LiteralTools.parseLong("-0x01L") == -1); in SuccessHexTests()
[all …]
DImplicitReferenceTest.java36 import junit.framework.Assert;
81 Assert.assertNotNull(mainMethod); in testImplicitMethodReference()
84 Assert.assertNotNull(methodImpl); in testImplicitMethodReference()
89 Assert.assertNotNull(instruction); in testImplicitMethodReference()
90 Assert.assertEquals(Opcode.INVOKE_STATIC, instruction.getOpcode()); in testImplicitMethodReference()
92 Assert.assertEquals(classDef.getType(), method.getDefiningClass()); in testImplicitMethodReference()
93 Assert.assertEquals("toString", method.getName()); in testImplicitMethodReference()
96 Assert.assertNotNull(instruction); in testImplicitMethodReference()
97 Assert.assertEquals(Opcode.INVOKE_STATIC, instruction.getOpcode()); in testImplicitMethodReference()
99 Assert.assertEquals(classDef.getType(), method.getDefiningClass()); in testImplicitMethodReference()
[all …]
DIntLiteralTest.java33 import org.junit.Assert;
41 Assert.assertTrue(LiteralTools.parseInt("0x0") == 0x0); in SuccessHexTests()
42 Assert.assertTrue(LiteralTools.parseInt("0x00") == 0x0); in SuccessHexTests()
43 Assert.assertTrue(LiteralTools.parseInt("0x1") == 0x1); in SuccessHexTests()
44 Assert.assertTrue(LiteralTools.parseInt("0x12345678") == 0x12345678); in SuccessHexTests()
45 Assert.assertTrue(LiteralTools.parseInt("0x7fffffff") == 0x7fffffff); in SuccessHexTests()
46 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE); in SuccessHexTests()
47 Assert.assertTrue(LiteralTools.parseInt("0xFFFFFFFF") == -1); in SuccessHexTests()
49 Assert.assertTrue(LiteralTools.parseInt("-0x00") == 0); in SuccessHexTests()
50 Assert.assertTrue(LiteralTools.parseInt("-0x01") == -1); in SuccessHexTests()
[all …]

12345678910>>...127