Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions test/main/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,4 +270,30 @@ describe(`basic tests`, () => {
})
})
})

describe('栃木県宇都宮市一番町3-17 のケース(#259)', () => {
test('栃木県宇都宮市一番町3-17', async () => {
const address = '栃木県宇都宮市一番町3-17'
const res = await normalize(address)
assertMatchCloseTo(res, {
pref: '栃木県',
city: '宇都宮市',
town: '一番町',
other: '3-17',
level: 8,
})
})

test('栃木県宇都宮市一条三丁目17', async () => {
const address = '栃木県宇都宮市一条三丁目17'
const res = await normalize(address)
assertMatchCloseTo(res, {
pref: '栃木県',
city: '宇都宮市',
town: '一条三丁目',
other: '17',
level: 3,
})
})
})
})
Loading