MCPcopy Index your code
hub / github.com/apache/groovy / testAppendString

Method testAppendString

src/test/groovy/groovy/lang/GStringTest.java:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 }
37
38 public void testAppendString() {
39 DummyGString a = new DummyGString(new Object[]{"James"});
40 GString result = a.plus(" how are you?");
41 assertEquals("Hello James! how are you?", result.toString());
42 assertEquals('J', a.charAt(6));
43 assertEquals("o J", a.subSequence(4, 7));
44 }
45
46 public void testAppendString2() {
47 DummyGString a = new DummyGString(new Object[]{"James"}, new String[]{"Hello "});

Callers

nothing calls this directly

Calls 5

toStringMethod · 0.95
plusMethod · 0.45
assertEqualsMethod · 0.45
charAtMethod · 0.45
subSequenceMethod · 0.45

Tested by

no test coverage detected