Fix Pascal quoting
[ohcount] / test / unit / haskell_test.rb
1 # This has been shamelessly copied from java_test.rb because my Ruby is not so
2 # good and I don't really know what people expect from a Ohcount language test
3 #  -- Reinier Lamers 2008-01-19
4 require File.dirname(__FILE__) + '/../test_helper'
5
6 class Ohcount::HaskellTest < Ohcount::Test
7         def test_comments
8                 lb = [Ohcount::LanguageBreakdown.new("haskell", "", "--comment", 0)]
9                 assert_equal lb, Ohcount::parse(" --comment", "haskell")
10         end
11
12         def test_comprehensive
13                 verify_parse("haskell1.hs")
14         end
15
16         def test_comprehensive_with_carriage_returns
17                 verify_parse("haskell2.hs")
18         end
19 end
20
21                 
22