mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-16 06:15:34 +00:00
Detect Arduino 1.0
Arudino fixture for tests
This commit is contained in:
7
test/fixtures/hello.ino
vendored
Normal file
7
test/fixtures/hello.ino
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
Serial.print("Hello");
|
||||
}
|
||||
@@ -263,6 +263,7 @@ class TestBlob < Test::Unit::TestCase
|
||||
assert_equal Language['Ruby'], blob("foo.rb").language
|
||||
assert_equal Language['Ruby'], blob("script.rb").language
|
||||
assert_equal Language['Ruby'], blob("wrong_shebang.rb").language
|
||||
assert_equal Language['Arduino'], blob("hello.ino").language
|
||||
assert_nil blob("octocat.png").language
|
||||
|
||||
# .pl disambiguation
|
||||
|
||||
Reference in New Issue
Block a user