Detect Arduino 1.0

Arudino fixture for tests
This commit is contained in:
Fredrik Leijon
2011-11-17 18:18:35 +01:00
parent 2e653dda2f
commit 1182d9d328
3 changed files with 14 additions and 0 deletions

View File

@@ -66,6 +66,12 @@ Arc:
extensions:
- .arc
Arduino:
type: programming
lexer: C++
extensions:
- .ino
Assembly:
type: programming
lexer: NASM

7
test/fixtures/hello.ino vendored Normal file
View File

@@ -0,0 +1,7 @@
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print("Hello");
}

View File

@@ -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