Skip to content

Commit 2ee458a

Browse files
committed
re-generate classifer \w flex
Signed-off-by: Alexander Bezzubov <[email protected]>
1 parent 25ea977 commit 2ee458a

File tree

3 files changed

+176679
-162779
lines changed

3 files changed

+176679
-162779
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ clean: clean-linguist clean-shared
4646
code-generate: $(LINGUIST_PATH)
4747
mkdir -p data && \
4848
go run internal/code-generator/main.go
49-
ENRY_TEST_REPO="$${PWD}/.linguist" go test -v \
49+
ENRY_TEST_REPO="$${PWD}/.linguist" go test -tags flex -v \
5050
-run Test_GeneratorTestSuite \
5151
./internal/code-generator/generator \
5252
-testify.m TestUpdateGeneratorTestSuiteGold \

common_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ func (s *EnryTestSuite) TestGetLanguagesByClassifier() {
304304
{name: "TestGetLanguagesByClassifier_5", filename: filepath.Join(s.samplesDir, "C/blob.c"), candidates: []string{"ruby"}, expected: "Ruby"},
305305
{name: "TestGetLanguagesByClassifier_6", filename: filepath.Join(s.samplesDir, "Python/django-models-base.py"), candidates: []string{"python", "ruby", "c", "c++"}, expected: "Python"},
306306
{name: "TestGetLanguagesByClassifier_7", filename: "", candidates: []string{"python"}, expected: "Python"},
307+
{"TestGetLanguagesByClassifier_8", filepath.Join(s.samplesDir, "C/syscalls.h"), []string{"objective-c", "ruby", "c", "c++"}, "C"},
307308
}
308309

309310
for _, test := range test {

0 commit comments

Comments
 (0)