example: add the simplest tasks of Rosetta code.
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 4 Nov 2014 15:16:55 +0000 (10:16 -0500)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Tue, 4 Nov 2014 15:16:55 +0000 (10:16 -0500)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

examples/rosettacode/empty_program.nit [new file with mode: 0644]
examples/rosettacode/hello_world_text.nit [new file with mode: 0644]
tests/sav/empty_program.res [new file with mode: 0644]
tests/sav/hello_world_text.res [new file with mode: 0644]

diff --git a/examples/rosettacode/empty_program.nit b/examples/rosettacode/empty_program.nit
new file mode 100644 (file)
index 0000000..3b4a7fb
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/env nit
+#
+# This file is part of NIT ( http://www.nitlanguage.org ).
+# This program is public domain
+
+# Task: Empty program
+# SEE: <http://rosettacode.org/wiki/Empty_program>
diff --git a/examples/rosettacode/hello_world_text.nit b/examples/rosettacode/hello_world_text.nit
new file mode 100644 (file)
index 0000000..0248dd5
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/env nit
+#
+# This file is part of NIT ( http://www.nitlanguage.org ).
+# This program is public domain
+
+# Task: Hello World/Text
+# SEE: <http://rosettacode.org/wiki/Hello_world/Text>
+print "Goodbye, World!"
diff --git a/tests/sav/empty_program.res b/tests/sav/empty_program.res
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/sav/hello_world_text.res b/tests/sav/hello_world_text.res
new file mode 100644 (file)
index 0000000..f06c489
--- /dev/null
@@ -0,0 +1 @@
+Goodbye, World!