We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3fa69 commit 674cfe0Copy full SHA for 674cfe0
java/test/processing/mode/java/debug/VariableNodeTests.java
@@ -72,6 +72,13 @@ public void describeNestedArrayMixed() {
72
Assert.assertEquals(node.getStringValue(), "instance of int[5][7][][]");
73
}
74
75
+ @Test
76
+ public void describeArrayFailsafe() {
77
+ Value value = buildMockValue("instance of int[x][7] (id=998)");
78
+ VariableNode node = new VariableNode("test", "int[][][][]", value);
79
+ Assert.assertEquals(node.getStringValue(), "instance of int[x][7] (id=998));
80
+ }
81
+
82
private Value buildMockValue(String toStringValue) {
83
Value value = Mockito.mock(Value.class);
84
Mockito.when(value.toString()).thenReturn(toStringValue);
0 commit comments