Skip to content

Commit

Permalink
add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed Feb 3, 2025
1 parent 8aa1c96 commit 442779f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions react/unit/search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ firstResult(test)('urban center', 'Guangzhou Urban Center, China') // Should be
firstResult(test)('urban area', 'Chicago [Urban Area], IL-IN, USA') // Should be some Urban Area
firstResult(test)('msa', 'Pittsburgh MSA, PA, USA') // Should be some MSA
firstResult(test)('dalas', 'Dallas Urban Center, USA') // Correct for misspelling
firstResult(test)('ventura city', 'San Buenaventura (Ventura) city, California, USA') // handles alias
firstResult(test)('san francisco urban', 'San Francisco-Oakland [Urban Area], CA, USA') // symbols treated as separate tokens (i.e., [Urban Area] shuold be treated as [ Urban Area ])
firstResult(test)('los angeles center 5', 'Los Angeles (Center East) 5MPC, USA') // I think same as above
firstResult(test)('france-germany', 'Strasbourg Urban Center, Germany-France') // reach test, should find something in both

test.run()

0 comments on commit 442779f

Please sign in to comment.