Brandon Keepers
2be3220824
Merge pull request #1940 from github/fix-multiple-extensions
...
Fix for extensions with multiple segments
2015-01-02 10:59:30 -05:00
Lars Brinkhoff
6ae39e50ae
Fix #1731 to allow samples with multiple file extension segments.
2015-01-02 10:41:22 -05:00
Adam Roben
65296e86a3
Switch to Minitest::Test instead of Test::Unit::TestCase
...
This gives us a consistent test framework across all Ruby versions which
should help avoid errors that are only found when CI runs the tests on
different Rubies. (And this fixes an immediate bug where there's no
`skip` method in the version of test-unit we're currently using only on
Ruby 2.2.)
2014-12-31 15:26:26 -05:00
Adam Roben
c9b7bb73b9
Use test/helper.rb in test_file_blob.rb
2014-12-31 15:19:56 -05:00
Adam Roben
795f42cbaa
Merge pull request #1832 from pchaigno/optimize-generated
...
Optimization of generated?
2014-12-31 15:19:43 -05:00
Paul Chaignon
42beadcf34
Use an exception for tests on Generated.generated?
2014-12-28 17:00:13 +01:00
Brandon Keepers
8369d253f8
Move grammar sources to vendor/grammars
2014-12-22 16:28:58 -05:00
Adam Roben
516d3e226c
Suggest adding/removing submodules from the repo
2014-12-22 15:50:33 -05:00
Adam Roben
e3eb1b90c5
Test that grammars.yml agrees with the list of submodules
...
If any submodules are missing from grammars.yml, or are listed in
grammars.yml but missing from the repo, the test will fail.
Eventually it would be good to test that the scopes for each submodule
are accurate, but that will take some more work.
2014-12-19 16:05:17 -05:00
Adam Roben
410fe2843d
Add some tests for grammars.yml
...
It must be sorted, because it will get re-sorted when
script/download-grammars is next run and that would clutter up diffs.
And it must not contain any duplicate scopes.
2014-12-17 16:39:02 -05:00
Paul Chaignon
2418356eff
Merge branch 'master' into newlisp
2014-12-16 10:52:17 -05:00
Arfon Smith
0ddf0d5d0d
Merge branch 'master' into no-language
...
Conflicts:
lib/linguist/heuristics.rb
2014-12-11 21:17:38 -06:00
Arfon Smith
79243b77fd
Merge pull request #1129 from pchaigno/bitbake
...
Support of the BitBake language
2014-12-11 20:58:06 -06:00
Paul Chaignon
db70630eaa
Renamed text in Text
2014-12-11 12:51:09 -05:00
Adam Roben
cb5f2685cd
Test that all popular languages exist
...
popular.yml listed "Bash" but should have been listing "Shell" instead.
There is no "Bash" language. Now CI will fail if this happens again.
2014-12-11 11:47:52 -05:00
Brandon Keepers
baa298873a
Merge pull request #1854 from github/more-shebang-fixes
...
More shebang fixes
2014-12-11 10:40:11 -05:00
Paul Chaignon
f93272f0bd
Move text files from fixtures to samples when possible
2014-12-10 20:09:14 -05:00
Paul Chaignon
e783e953d9
Merge branch 'master' into data-fixture-folder
2014-12-10 19:15:41 -05:00
Brandon Keepers
6efee51101
Add missing test cases
2014-12-10 11:00:46 -05:00
Brandon Keepers
bf0e488c06
Test case for case causing error
2014-12-10 10:58:14 -05:00
Garen Torikian
2a04d854cc
Merge branch 'master' into return-nil-on-no-ace-mode
2014-12-07 14:45:27 +02:00
Paul Chaignon
8b7d5546f7
Merge branch 'master' into newlisp
2014-12-06 20:04:18 -05:00
Paul Chaignon
b63423ce37
Merge branch 'master' into newlisp
2014-12-06 19:56:29 -05:00
Paul Chaignon
0b02b68538
Heuristic for .lsp and .lisp (Common Lisp, NewLisp)
2014-12-06 19:51:45 -05:00
Paul Chaignon
583392d179
Heuristic for .ts (TypeScript, XML)
2014-12-06 16:31:14 -05:00
Paul Chaignon
7458a2f9ff
Heuristic for .bb (BitBake, BlitzBasic)
2014-12-06 15:26:30 -05:00
Garen Torikian
348dab4b9f
Update test to account for using text
2014-12-06 11:59:31 +02:00
Paul Chaignon
a51d637e58
Error messages for tests on Generated
2014-12-05 17:53:19 -05:00
Paul Chaignon
67ccb24b41
Require test helper in generated test
2014-12-05 10:29:19 -05:00
Paul Chaignon
42ff3f58d9
Tests for Generated.generated? optimization
2014-12-05 11:38:03 -05:00
Garen Torikian
bb12b86445
Set missing ace_mode values to text
...
This makes it much easier to deal with when iterating over all the
languages, since `text` is a valid, non-highlighting lexer.
2014-12-05 16:56:55 +02:00
Garen Torikian
ab61b06c34
Reject Ace modes that are lacking a mode
2014-12-05 16:25:14 +02:00
Lars Brinkhoff
de6b2f3307
Add 'text' language with samples, and heuristics for .fr.
2014-12-05 12:19:36 +01:00
Paul Chaignon
93186947c2
Move binaries and text files from samples folder to fixtures
2014-12-04 23:48:05 -05:00
Paul Chaignon
77444284e3
Data folder in fixtures for files with no language
2014-12-04 19:14:44 -05:00
Garen Torikian
3aec4dd2ea
Adjust to ignore generated
2014-12-04 21:27:07 +02:00
Garen Torikian
0780b7239a
Merge branch 'master' into add-missing-ace-modes-for-popular-languages
2014-12-04 21:09:46 +02:00
Arfon Smith
07cd9aa994
Merge branch 'master' into FS-samples
2014-12-03 13:08:41 -06:00
Garen Torikian
1a3177409c
Merge master
2014-12-03 20:15:55 +02:00
Brandon Keepers
e446b86b90
Merge pull request #1813 from github/invalid-shebang
...
Fix detection for invalid shebang
2014-12-03 09:48:48 -08:00
Arfon Smith
f1282b857d
Better output for failing test
2014-12-03 08:46:45 -06:00
Brandon Keepers
a5673e7fb6
Fix detection for invalid shebang
2014-12-02 21:03:39 -06:00
Paul Chaignon
7dd318ca76
Use namespace.js for the heuristic test with no match
2014-12-02 20:36:18 -05:00
Paul Chaignon
e5bc2845cd
Fix for fixture tests: fixture files were not tested at all
2014-12-02 20:26:15 -05:00
Paul Chaignon
4ddd8d9d2b
Unit test for fix #1809 on heuristics
2014-12-02 20:06:12 -05:00
Garen Torikian
768ec76ff0
Merge master
2014-12-01 15:52:37 +02:00
ellemenno
211cb9567a
refactor heuristic tests to use new helper
2014-12-01 01:37:55 -05:00
ellemenno
1e68a45515
add test of ls disambiguation
2014-12-01 01:30:14 -05:00
Paul Chaignon
9367a4797f
Remove old test forgotten in #1788
2014-11-28 23:14:17 -05:00
Arfon Smith
cfd95360cb
Merge pull request #1627 from github/1036-local
...
Disambiguate C, C++, Objective-C
2014-11-28 18:05:16 -06:00