mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Detect Arduino 1.0
Arudino fixture for tests
This commit is contained in:
		| @@ -66,6 +66,12 @@ Arc: | |||||||
|   extensions: |   extensions: | ||||||
|   - .arc |   - .arc | ||||||
|  |  | ||||||
|  | Arduino: | ||||||
|  |   type: programming | ||||||
|  |   lexer: C++ | ||||||
|  |   extensions: | ||||||
|  |   - .ino | ||||||
|  |  | ||||||
| Assembly: | Assembly: | ||||||
|   type: programming |   type: programming | ||||||
|   lexer: NASM |   lexer: NASM | ||||||
|   | |||||||
							
								
								
									
										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("foo.rb").language | ||||||
|     assert_equal Language['Ruby'],        blob("script.rb").language |     assert_equal Language['Ruby'],        blob("script.rb").language | ||||||
|     assert_equal Language['Ruby'],        blob("wrong_shebang.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 |     assert_nil blob("octocat.png").language | ||||||
|  |  | ||||||
|     # .pl disambiguation |     # .pl disambiguation | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user