void () { assertEquals("abc", new TextRange(0, 3).substring("abc")); assertEquals("abc", new TextRange(0, 3).substring("abcd")); assertEquals("bc", new TextRange(1, 3).substring("abcd")); assertEquals("", new TextRange(2, 2).substring("abcd")); }