File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/debug Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -424,8 +424,7 @@ public void testInspectJavaArray() throws Throwable {
424
424
expectSuspended ((SuspendedEvent event ) -> {
425
425
DebugScope globalScope = session .getTopScope ("python" );
426
426
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
429
428
intValue .getMetaObject ();
430
429
assertEquals ("0" , intValue .as (String .class ));
431
430
DebugValue longValue = globalScope .getDeclaredValue ("a_long" ).getArray ().get (0 );
@@ -445,7 +444,7 @@ public void testInspectJavaArray() throws Throwable {
445
444
assertEquals ("0.0" , doubleValue .as (String .class ));
446
445
DebugValue charValue = globalScope .getDeclaredValue ("a_char" ).getArray ().get (0 );
447
446
charValue .getMetaObject ();
448
- assertEquals ("\0 " , charValue .as (String .class ));
447
+ assertEquals ("' \\ x00' " , charValue .as (String .class ));
449
448
});
450
449
}
451
450
}
You can’t perform that action at this time.
0 commit comments