Esempio n. 1
0
 public void testAscB() {
   assertEquals(0x61, Vba.ascB("abc"));
   assertEquals(0x34, Vba.ascB("\u1234abc")); // not sure about this
   try {
     Object o = Vba.ascB("");
     fail("expected error, got " + o);
   } catch (RuntimeException e) {
     assertMessage(e, "StringIndexOutOfBoundsException");
   }
 }