0
0
Fork 0

mapping_test: fix TestMappingWithTokenizerDeps now patterns are required

This commit is contained in:
Patrick Mezard 2015-10-29 19:57:12 +01:00
parent f95f1d29a0
commit 0579d58263
1 changed files with 6 additions and 4 deletions

View File

@ -256,8 +256,9 @@ func TestMappingWithTokenizerDeps(t *testing.T) {
}
tokDepsL1 := map[string]interface{}{
"type": exception.Name,
"tokenizer": "a",
"type": exception.Name,
"tokenizer": "a",
"exceptions": []string{".*"},
}
// this tests a 1-level dependency
@ -280,8 +281,9 @@ func TestMappingWithTokenizerDeps(t *testing.T) {
}
tokDepsL2 := map[string]interface{}{
"type": "exception",
"tokenizer": "b",
"type": "exception",
"tokenizer": "b",
"exceptions": []string{".*"},
}
// now test a second-level dependency