Skip to content

Commit f060528

Browse files
committed
update our debug test for language views
1 parent 9110f26 commit f060528

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/debug/PythonDebugTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,7 @@ public void testInspectJavaArray() throws Throwable {
424424
expectSuspended((SuspendedEvent event) -> {
425425
DebugScope globalScope = session.getTopScope("python");
426426
DebugValue intValue = globalScope.getDeclaredValue("a_int").getArray().get(0);
427-
// It's up to Truffle to decide which language it uses for inspection of primitives,
428-
// we should be fine as long as this doesn't throw an exception
427+
// Truffle will now use our language to get a Python view on the primitive object for inspection
429428
intValue.getMetaObject();
430429
assertEquals("0", intValue.as(String.class));
431430
DebugValue longValue = globalScope.getDeclaredValue("a_long").getArray().get(0);
@@ -445,7 +444,7 @@ public void testInspectJavaArray() throws Throwable {
445444
assertEquals("0.0", doubleValue.as(String.class));
446445
DebugValue charValue = globalScope.getDeclaredValue("a_char").getArray().get(0);
447446
charValue.getMetaObject();
448-
assertEquals("\0", charValue.as(String.class));
447+
assertEquals("'\\x00'", charValue.as(String.class));
449448
});
450449
}
451450
}

0 commit comments

Comments
 (0)