changeset 8:e5dadeae47cc

merge url.k
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Sun, 27 May 2012 21:04:23 +0900
parents 04447797b5df (diff) f78fb53ef7b6 (current diff)
children b1dc0a0565f2
files
diffstat 3 files changed, 36 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/KonohaException.java	Sun May 27 21:04:23 2012 +0900
@@ -0,0 +1,7 @@
+import java.io.*;
+
+class KonohaException extends Exception {
+     public KonohaException(String str) {
+	super(str);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/mapTest.k	Sun May 27 21:04:23 2012 +0900
@@ -0,0 +1,8 @@
+void main(String[] args)
+{
+    Map<String,String> values = {};
+    values["name"] = "naruto";
+    values["friend"] = "sasuke";
+    
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/throwTest.k	Sun May 27 21:04:23 2012 +0900
@@ -0,0 +1,21 @@
+void main(String[] args) 
+{
+    try {
+	//	throw new Script!!("throw Script!!");
+	//	throw new IO!!("throw IO!!");
+	throw new MyError!!("throw MyError!!");
+    } catch (Script!! e) {
+	print "catch Script!!";
+	print e;
+    } catch (IO!! e) {
+	print "catch IO!!";
+	print e;
+    } catch (MyError!! e) {
+	print "catch MyError!!";
+	print e;
+    } finally {
+	
+    }
+
+
+}
\ No newline at end of file