syntax 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +0,0 @@
1
- $:.unshift File.dirname(__FILE__) + "/../lib"
2
- require 'syntax'
3
- require 'test/unit'
4
-
5
- class TC_Syntax < Test::Unit::TestCase
6
- def test_all
7
- langs = Syntax.all
8
- assert langs.include?("ruby")
9
- assert langs.include?("xml")
10
- assert langs.include?("yaml")
11
- end
12
-
13
- def test_load_bogus
14
- lang = Syntax.load "bogus"
15
- assert_instance_of Syntax::Default, lang
16
- end
17
-
18
- def test_load
19
- lang = Syntax.load "ruby"
20
- assert_instance_of Syntax::Ruby, lang
21
- end
22
- end