Merge: example: Add the simplest tasks of Rosetta Code.
authorJean Privat <jean@pryen.org>
Tue, 2 Dec 2014 20:40:19 +0000 (15:40 -0500)
committerJean Privat <jean@pryen.org>
Tue, 2 Dec 2014 20:40:19 +0000 (15:40 -0500)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #952
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

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!