@Test
void testAppend() {

	Charray java = new Charray("java");
	Charray scala = new Charray("scala");
	Charray appended = java.append(scala);
	assertSame(java, appended);
	assertEquals(9, appended.length());
	assertEquals("javascala", appended.toString());
	assertEquals("scala", scala.toString());
	appended.set(4, ' ');
	appended.set(5, 'v');
	assertEquals("java vala", appended.toString());
	assertEquals("scala", scala.toString());
	appended = scala.append('3');
	assertSame(scala, appended);
	assertEquals(6, scala.length());
	assertEquals("scala3", scala.toString());
	appended = scala.append(" is dotty");
	assertSame(scala, appended);
	assertEquals("scala3 is dotty", scala.toString());
}