cover stuff with test cases
authorbdemsky <bdemsky>
Tue, 31 Oct 2006 00:40:07 +0000 (00:40 +0000)
committerbdemsky <bdemsky>
Tue, 31 Oct 2006 00:40:07 +0000 (00:40 +0000)
Robust/src/Tests/StringTest.java
Robust/src/Tests/output/StringTest.output.goal

index 62bd609d64972919e71a1be4dda630706175272e..30d4ecd0d3758226f4764c7de6fe257538ca7970 100644 (file)
@@ -2,5 +2,12 @@ class StringTest {
     public static void main(String str[]) {
        String a="hello world\n";
        System.printString(a);
+       System.printInt(a.indexOf('e'));
+       System.printString("\n");
+       System.printInt(a.indexOf("world"));
+       System.printString("\n");
+       System.printString(a.subString(3));
+       System.printString(a.subString(3,6));
+       System.printString("\n");
     }
 }
index 3b18e512dba79e4c8300dd08aeb37f8e728b8dad..39ff83e3577971b9ea53d7853ae1c249a34b16e9 100644 (file)
@@ -1 +1,5 @@
 hello world
+1
+6
+lo world
+lo