Skip to content

Commit

Permalink
update testStringArray
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Mar 5, 2021
1 parent 7f6d537 commit 095e8df
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/test/java/com/esaulpaugh/headlong/abi/DecodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,20 @@ public void testStringArray() {
assertArrayEquals(abi.array(), type.encode(array).array());

{
final ABIType<?> a = TypeFactory.create("string[]");
final ABIType<Object> b = TypeFactory.create("string[]", Object.class);
final ABIType<String[]> c = TypeFactory.create("string[]", String[].class);
final ABIType<String[]> d = TypeFactory.create("string[]", null);
final ABIType<?> e = TypeFactory.create("string[]", null);
final ABIType<?> a = TypeFactory.create("string[]");
final ABIType<Object> b = TypeFactory.create("string[]", Object.class);
final ABIType<String[]> c = TypeFactory.create("string[]", String[].class);
final ABIType<String[]> d = TypeFactory.create("string[]", null);
final ABIType<?> e = TypeFactory.create("string[]", null);
final ABIType<? extends String[]> f = TypeFactory.create("string[]", null);

final ArrayType<?, ?> g = (ArrayType<?, ?>) TypeFactory.create("string[]");
final ArrayType<?, ?> h = (ArrayType<?, ?>) TypeFactory.create("string[]", null);
final ArrayType<?, String[]> i = (ArrayType<?, String[]>) TypeFactory.create("string[]", String[].class);
@SuppressWarnings("unchecked")
final ABIType<? extends String[]> g = (ABIType<? extends String[]>) TypeFactory.create("string[]");
final ArrayType<?, ?> h = (ArrayType<?, ?>) TypeFactory.create("string[]", null);
final ArrayType<?, ?> i = (ArrayType<?, ?>) TypeFactory.create("string[]", String[].class);
final ArrayType<?, String[]> j = (ArrayType<?, String[]>) TypeFactory.create("string[]");
@SuppressWarnings("unchecked")
final ABIType<? extends String[]> k = (ABIType<? extends String[]>) TypeFactory.create("string[]");
}

assertEquals("nam", type.getName());
Expand Down

0 comments on commit 095e8df

Please sign in to comment.