Basic Matlab detection

Fixes #15
This commit is contained in:
Joshua Peek
2011-07-05 09:34:33 -05:00
parent cc3692b320
commit 5ecc4421d7
2 changed files with 40 additions and 0 deletions

View File

@@ -234,6 +234,12 @@ class TestBlob < Test::Unit::TestCase
assert_equal Language['R'], blob("hello-r.R").language
assert_equal Language['Rebol'], blob("hello-rebol.r").language
# .m disambiguation
assert_equal Language['Objective-C'], blob("Foo.m").language
assert_equal Language['Objective-C'], blob("hello.m").language
assert_equal Language['Matlab'], blob("matlab_function.m").language
# assert_equal Language['Matlab'], blob("matlab_script.m").language
# ML
assert_equal Language['OCaml'], blob("Foo.ml").language
assert_equal Language['Standard ML'], blob("Foo.sig").language