File tree 1 file changed +28
-0
lines changed
src/test/java/com/jsoniter
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,32 @@ public void test_hashcode() {
19
19
assertEquals ("hello" , map .get (Slice .make ("hello" )));
20
20
assertEquals ("world" , map .get (Slice .make ("world" )));
21
21
}
22
+
23
+ public void test_equalsInputNotNullOutputFalse2 () {
24
+
25
+ // Arrange
26
+ final byte [] byteArray = {(byte )2 , (byte )1 };
27
+ final Slice objectUnderTest = new Slice (byteArray , 0 , 1073741825 );
28
+ final byte [] byteArray1 = {(byte )0 };
29
+ final Slice o = new Slice (byteArray1 , 0 , 1073741825 );
30
+
31
+ // Act
32
+ final boolean retval = objectUnderTest .equals (o );
33
+
34
+ // Assert result
35
+ assertEquals (false , retval );
36
+ }
37
+
38
+ public void test_equalsInputNotNullOutputFalse () {
39
+
40
+ // Arrange
41
+ final Slice objectUnderTest = new Slice (null , 0 , -2147483646 );
42
+ final Slice o = new Slice (null , 0 , 2 );
43
+
44
+ // Act
45
+ final boolean retval = objectUnderTest .equals (o );
46
+
47
+ // Assert result
48
+ assertEquals (false , retval );
49
+ }
22
50
}
You can’t perform that action at this time.
0 commit comments