Merge branch 'master' of git://github.com/robinluckey/ohcount
[ohcount] / test / unit / smalltalk_test.rb
1 require File.dirname(__FILE__) + '/../test_helper'
2
3 class Ohcount::SmalltalkTest < Ohcount::Test
4
5         def test_comment
6                 lb = [Ohcount::LanguageBreakdown.new("smalltalk", "", '"comment\\"', 0)]
7                 assert_equal lb, Ohcount::parse(' "comment\\"', "smalltalk")
8         end
9
10         def test_comprehensive
11                 verify_parse("smalltalk1.st")
12         end
13
14         def test_comment_entities
15                 assert_equal('"comment"', entities_array(" \"comment\"", 'smalltalk', :comment).first)
16         end
17
18 end