Skip to content

Commit

Permalink
Tests and fix for typo 'BurgeRmeester'. Addressing #130.
Browse files Browse the repository at this point in the history
  • Loading branch information
emacgillavry authored and Joxit committed Sep 6, 2021
1 parent 5aa1eff commit fea0815
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classifier/PersonalTitleClassifier.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports.tests.contains_numerals = (test) => {
module.exports.tests.classify = (test) => {
let valid = [
'Général', 'General', 'gal',
'Saint', 'st', 'cdt', 'l\'Amiral'
'Saint', 'st', 'cdt', 'l\'Amiral', 'Burgemeester'
]

valid.forEach(token => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
!kort|k
!korte|kte
!korte|kte
#typo in LibPostal resource
!burgermeester|burg|bgm
burgemeester|burg|bgm
4 changes: 4 additions & 0 deletions test/address.nld.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const testcase = (test, common) => {
assert('Korte Tiendeweg, Gouda', [
{ street: 'Korte Tiendeweg' }, { locality: 'Gouda' }
])

assert('Burgemeester Martenssingel, Gouda', [
{ street: 'Burgemeester Martenssingel' }, { locality: 'Gouda' }
])
}

module.exports.all = (tape, common) => {
Expand Down

0 comments on commit fea0815

Please sign in to comment.