Permalink
Browse files

more test case

  • Loading branch information...
1 parent efddff0 commit c3f5a6741d8071964003ba3ec7a0c90dde63611e @tokuhirom committed Apr 18, 2012
Showing with 33 additions and 31 deletions.
  1. +0 −31 t/semicolon.t
  2. +33 −0 t/spec/basic/semicolon.tcc
View
@@ -1,31 +0,0 @@
-use strict;
-use warnings;
-use utf8;
-use Test::More;
-use t::Util;
-
-run_tora_is(<<'...', "3\n");
-say(1+2)
-...
-
-run_tora_is(<<'...', "3\nOK\n");
-say(1+2);say("OK")
-...
-
-run_tora_is(<<'...', "OK\n");
-sub foo() {
- say("OK")
-}
-foo()
-...
-
-run_tora_is(<<'...', "3\nOK\n");
-sub foo() {
- say(1+2);
- say("OK")
-}
-foo()
-...
-
-done_testing;
-
View
@@ -0,0 +1,33 @@
+===
+--- code
+say(1+2)
+--- stdout
+3
+
+===
+--- code
+say(1+2);say("OK")
+--- stdout
+3
+OK
+
+===
+--- code
+sub foo() {
+ say("OK")
+}
+foo()
+--- stdout
+OK
+
+===
+--- code
+sub foo() {
+ say(1+2);
+ say("OK")
+}
+foo()
+--- stdout
+3
+OK
+

0 comments on commit c3f5a67

Please sign in to comment.