Skip to content

Commit

Permalink
usaddress: test more varied similarity
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Sep 26, 2024
1 parent d5ee4d4 commit 29278ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/usaddress/similarity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ func TestAddressSimilarity(t *testing.T) {
addr1: baseAddress,
addr2: func() Address {
a := baseAddress
a.StreetName = "MAINN"
a.StreetName = "FLOWER"
return a
}(),
expected: 0.99,
expected: 0.75,
},
{
name: "Different ZIPCode",
Expand All @@ -67,10 +67,10 @@ func TestAddressSimilarity(t *testing.T) {
addr1: baseAddress,
addr2: func() Address {
a := baseAddress
a.City = "OTHERTOWN"
a.City = "CEDAR BEVERTON"
return a
}(),
expected: 0.967,
expected: 0.94,
},
{
name: "Different State",
Expand Down

0 comments on commit 29278ba

Please sign in to comment.