From: bdemsky Date: Mon, 10 Apr 2006 23:12:31 +0000 (+0000) Subject: Test cases X-Git-Tag: preEdgeChange~927 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=04b386251868504933f1162746452e180aae4be3;p=IRC.git Test cases --- diff --git a/Robust/src/Tests/Array.java b/Robust/src/Tests/Array.java new file mode 100644 index 00000000..6fb79478 --- /dev/null +++ b/Robust/src/Tests/Array.java @@ -0,0 +1,10 @@ +public class Array { + int a; + public static void main() { + int a[]=new int[10]; + int i=2; + a[i]=4; + System.printInt(a[2]); + System.printInt(a.length); + } +} diff --git a/Robust/src/Tests/StringTest.java b/Robust/src/Tests/StringTest.java new file mode 100644 index 00000000..7114f4a6 --- /dev/null +++ b/Robust/src/Tests/StringTest.java @@ -0,0 +1,6 @@ +class StringTest { + public static void main() { + String a="hello world\n"; + System.printString(a); + } +}