MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / testOctal000

Method testOctal000

src/test/java/com/amazon/ion/StringTest.java:181–192  ·  view source on GitHub ↗

No octal, but we do have \0.

()

Source from the content-addressed store, hash-verified

179 * No octal, but we do have \0.
180 */
181 @Test
182 public void testOctal000()
183 {
184 IonString value = (IonString) oneValue("\"0\\0000\"");
185 String str = value.stringValue();
186 assertEquals(5, str.length());
187 assertEquals('0', str.charAt(0));
188 assertEquals( 0 , str.charAt(1));
189 assertEquals('0', str.charAt(2));
190 assertEquals('0', str.charAt(3));
191 assertEquals('0', str.charAt(4));
192 }
193
194 @Test
195 public void testUnicodeCharacters()

Callers

nothing calls this directly

Calls 4

stringValueMethod · 0.95
lengthMethod · 0.80
oneValueMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected