public void testAsc() { assertEquals(0x61, Vba.asc("abc")); assertEquals(0x1234, Vba.asc("\u1234abc")); try { Object o = Vba.asc(""); fail("expected error, got " + o); } catch (RuntimeException e) { assertMessage(e, "StringIndexOutOfBoundsException"); } }