test/parser/functional/simple_program_test.rb in koi-reference-parser-0.0.1 vs test/parser/functional/simple_program_test.rb in koi-reference-parser-0.0.2
- old
+ new
@@ -1,35 +1,35 @@
-require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper.rb'))
-
-class SimpleProgramTest < Test::Unit::TestCase
-
- include KoiReferenceParser
-
- test "should parse simple program with 'if' flow control" do
- assert_nothing_raised do
- Parser.parse(<<-EOD)
-
- test = 1
-
- if(test == 1)
- test = "yay"
- end
-
- EOD
- end
- end
-
- test "should parse simple program with 'unless' flow control" do
- assert_nothing_raised do
- Parser.parse(<<-EOD)
-
- test = 1
-
- unless(test == 1)
- test = "yay"
- end
-
- EOD
- end
- end
-
+require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper.rb'))
+
+class SimpleProgramTest < Test::Unit::TestCase
+
+ include KoiReferenceParser
+
+ test "should parse simple program with 'if' flow control" do
+ assert_nothing_raised do
+ Parser.parse(<<-EOD)
+
+ test = 1
+
+ if(test == 1)
+ test = "yay"
+ end
+
+ EOD
+ end
+ end
+
+ test "should parse simple program with 'unless' flow control" do
+ assert_nothing_raised do
+ Parser.parse(<<-EOD)
+
+ test = 1
+
+ unless(test == 1)
+ test = "yay"
+ end
+
+ EOD
+ end
+ end
+
end
\ No newline at end of file