15
16 if ext != "css" {
17▶ t.Error("Expected css got", ext)
18 }
19 AllowListExtensions = []string{}
· · ·
30 possible, extension := DetectLanguage(filename)
31 if extension != wantExtension {
32▶ t.Errorf("DetectLanguage(%q) extension = %q, want %q", filename, extension, wantExtension)
33 }
34 if !slices.Contains(possible, "Mojo") {
· · ·
35▶ t.Errorf("DetectLanguage(%q) languages = %v, want Mojo", filename, possible)
36 }
37 }
· · ·
44
45 if x != "" || y == nil {
46▶ t.Error("Expected no match got", x)
47 }
48
· · ·
50
51 if x != "" || y == nil {
52▶ t.Error("Expected no match got", x)
53 }
54}
+ 41 more matches in this file