Fixes recursion bug in disambiguate_in().
[ohcount] / test / unit / parsers / test_ruby.h
1
2 void test_ruby_comments() {
3   test_parser_verify_parse(
4     test_parser_sourcefile("ruby", " #comment"),
5     "ruby", "", "#comment", 0
6   );
7 }
8
9 void test_ruby_comment_entities() {
10   test_parser_verify_entity(
11     test_parser_sourcefile("ruby", " #comment"),
12     "comment", "#comment"
13   );
14   test_parser_verify_entity(
15     test_parser_sourcefile("ruby", "=begin\ncomment\n=end"),
16     "comment", "=begin\ncomment\n=end"
17   );
18 }
19
20 void all_ruby_tests() {
21   test_ruby_comments();
22   test_ruby_comment_entities();
23 }