+++ /dev/null
-/*
- * Svjatoslav Commons - shared library of common functionality.
- * Copyright ©2012-2014, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
- */
-
-package eu.svjatoslav.commons.string;
-
-import static org.junit.Assert.assertEquals;
-
-import org.junit.Test;
-
-public class CuttableStringTest {
-
- @Test
- public void testCutLeft() {
-
- final CuttableString s = new CuttableString("this is a test");
-
- assertEquals("this ", s.cutLeft(5));
- assertEquals("is ", s.cutLeft(3));
- assertEquals("a ", s.cutLeft(2));
- assertEquals("test", s.cutLeft(25));
- assertEquals("", s.cutLeft(5));
-
- }
-}