Fix tests
This commit is contained in:
parent
b755d328e9
commit
811e6ebbf9
2 changed files with 92 additions and 59 deletions
|
@ -211,7 +211,7 @@ public class SearchUICoreTest {
|
|||
}
|
||||
}
|
||||
Assert.assertEquals(expected, present);
|
||||
if (i >= results.size()) {
|
||||
if (i >= result.size()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
"phrases": [ "100 bridge", "100 bridge street", "100 bridge street westbrook" ],
|
||||
"results": [
|
||||
[
|
||||
"100.0, <input> [[1, PARTIAL_LOCATION, 1.000, 5591.91 km]]",
|
||||
"100, Bridge Street, Westbrook [[3, HOUSE, 0.430, 11.29 km]]",
|
||||
"100, Bridge Street, Yarmouth [[3, HOUSE, 0.430, 23.69 km]]"
|
||||
"100.0, <input> [[1, PARTIAL_LOCATION, 1.000, 5591.91 km]]",
|
||||
"100, Bridge Street, Westbrook [[2, HOUSE, 0.430, 11.29 km]]",
|
||||
"100, Bridge Street, Yarmouth [[2, HOUSE, 0.430, 23.69 km]]"
|
||||
],
|
||||
[
|
||||
"100.0, <input> [[1, PARTIAL_LOCATION, 1.000, 5591.91 km]]",
|
||||
|
@ -57,62 +57,95 @@
|
|||
],
|
||||
"extra-results" : [
|
||||
[
|
||||
"Bridge Street, Frenchtown [[2, STREET, 3.000, 11.35 km]]",
|
||||
"Bridge Street, Westbrook [[2, STREET, 3.000, 11.35 km]]",
|
||||
"Bridge Street, Yarmouth [[2, STREET, 3.000, 23.44 km]]",
|
||||
"Bridge Street, Cornish [[2, STREET, 3.000, 27.39 km]]",
|
||||
"Bridge Street (Ocean Park), Old Orchard Beach [[2, STREET, 3.000, 28.42 km]]",
|
||||
"Bridge Street (Newfield), West Newfield [[2, STREET, 3.000, 32.66 km]]",
|
||||
"Bridge Street, Newfield [[2, STREET, 3.000, 32.66 km]]",
|
||||
"Bridge Street (Sprague City), West Newfield [[2, STREET, 3.000, 32.72 km]]",
|
||||
"Bridge Street, Sprague City [[2, STREET, 3.000, 33.02 km]]",
|
||||
"Bridge Street, Kezar Falls [[2, STREET, 3.000, 34.35 km]]",
|
||||
"Bridge Street (Springvale), Sanford [[2, STREET, 3.000, 41.40 km]]",
|
||||
"Bridge Street, Springvale [[2, STREET, 3.000, 41.40 km]]",
|
||||
"Bridge Street, Brunswick [[2, STREET, 3.000, 43.74 km]]",
|
||||
"Bridge Street, Lewiston [[2, STREET, 3.000, 43.86 km]]",
|
||||
"Bridge Street, Topsham [[2, STREET, 3.000, 43.93 km]]",
|
||||
"Bridge Street, Bath [[2, STREET, 3.000, 53.34 km]]",
|
||||
"Bridge Street, Ogunquit [[2, STREET, 3.000, 56.93 km]]",
|
||||
"Bridge Street, Berwick [[2, STREET, 3.000, 62.86 km]]",
|
||||
"Bridge Street, Richmond [[2, STREET, 3.000, 65.70 km]]",
|
||||
"Bridge Street, Boothbay Harbor [[2, STREET, 3.000, 68.39 km]]",
|
||||
"Bridge Street, Gardiner [[2, STREET, 3.000, 77.20 km]]",
|
||||
"Bridge Street (Oak Terrace), Kittery [[2, STREET, 3.000, 77.36 km]]",
|
||||
"Bridge Street, Randolph [[2, STREET, 3.000, 77.40 km]]",
|
||||
"Bridge Street, Oak Terrace [[2, STREET, 3.000, 77.41 km]]",
|
||||
"Bridge Street, Gilead [[2, STREET, 3.000, 82.07 km]]",
|
||||
"Bridge Street, Livermore Falls [[2, STREET, 3.000, 83.24 km]]",
|
||||
"Bridge Street, Augusta [[2, STREET, 3.000, 83.82 km]]",
|
||||
"Bridge Street, Jay [[2, STREET, 3.000, 85.89 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 11.59 km]]",
|
||||
"Bridge Street Dam [[2, POI, 2.000, 23.62 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 27.24 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 34.36 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 41.33 km]]",
|
||||
"Bridge Street Dam [[2, POI, 2.000, 41.35 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 43.84 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 76.87 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 77.27 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 82.37 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 88.20 km]]",
|
||||
"The Bridge Street Green [[2, POI, 2.000, 104.21 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 104.29 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 110.92 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 116.14 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 116.20 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 116.26 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 119.68 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 151.84 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 224.29 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 243.40 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 394.32 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 415.17 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 434.56 km]]",
|
||||
"Pool Street, Bridge Road, Biddeford [[2, STREET_INTERSECTION, 0.430, 35.32 km]]",
|
||||
"Beach Street, Bridge Lane, Ogunquit [[2, STREET_INTERSECTION, 0.430, 56.87 km]]"
|
||||
"Bridge Street, Frenchtown [[1, STREET, 3.000, 11.35 km]]",
|
||||
"Bridge Street, Westbrook [[1, STREET, 3.000, 11.35 km]]",
|
||||
"Bridge Street, Yarmouth [[1, STREET, 3.000, 23.44 km]]",
|
||||
"Bridge Street, Cornish [[1, STREET, 3.000, 27.39 km]]",
|
||||
"Bridge Street (Ocean Park), Old Orchard Beach [[1, STREET, 3.000, 28.42 km]]",
|
||||
"Bridge Street (Newfield), West Newfield [[1, STREET, 3.000, 32.66 km]]",
|
||||
"Bridge Street, Newfield [[1, STREET, 3.000, 32.66 km]]",
|
||||
"Bridge Street (Sprague City), West Newfield [[1, STREET, 3.000, 32.72 km]]",
|
||||
"Bridge Street, Sprague City [[1, STREET, 3.000, 33.02 km]]",
|
||||
"Bridge Street, Kezar Falls [[1, STREET, 3.000, 34.35 km]]",
|
||||
"Bridge Road, Biddeford [[1, STREET, 3.000, 35.42 km]]",
|
||||
"Bridge Street (Springvale), Sanford [[1, STREET, 3.000, 41.40 km]]",
|
||||
"Bridge Street, Springvale [[1, STREET, 3.000, 41.40 km]]",
|
||||
"Bridge Street, Brunswick [[1, STREET, 3.000, 43.74 km]]",
|
||||
"Bridge Street, Lewiston [[1, STREET, 3.000, 43.86 km]]",
|
||||
"Bridge Street, Topsham [[1, STREET, 3.000, 43.93 km]]",
|
||||
"Bridge Road, Brunswick [[1, STREET, 3.000, 52.12 km]]",
|
||||
"Bridge Street, Bath [[1, STREET, 3.000, 53.34 km]]",
|
||||
"Bridge Lane, Ogunquit [[1, STREET, 3.000, 56.91 km]]",
|
||||
"Bridge Street, Ogunquit [[1, STREET, 3.000, 56.93 km]]",
|
||||
"Bridge Road, North Waterford [[1, STREET, 3.000, 57.76 km]]",
|
||||
"Bridge Street, Berwick [[1, STREET, 3.000, 62.86 km]]",
|
||||
"Bridge Street, Richmond [[1, STREET, 3.000, 65.70 km]]",
|
||||
"Bridge Road, Edgecomb [[1, STREET, 3.000, 68.32 km]]",
|
||||
"Bridge Road, Wiscasset [[1, STREET, 3.000, 68.34 km]]",
|
||||
"Bridge Street, Boothbay Harbor [[1, STREET, 3.000, 68.39 km]]",
|
||||
"Bridge Street, Gardiner [[1, STREET, 3.000, 77.20 km]]",
|
||||
"Bridge Street (Oak Terrace), Kittery [[1, STREET, 3.000, 77.36 km]]",
|
||||
"Bridge Street, Randolph [[1, STREET, 3.000, 77.40 km]]",
|
||||
"Bridge Street, Oak Terrace [[1, STREET, 3.000, 77.41 km]]",
|
||||
"Bridge Street, Gilead [[1, STREET, 3.000, 82.07 km]]",
|
||||
"Bridge Street, Livermore Falls [[1, STREET, 3.000, 83.24 km]]",
|
||||
"Bridge Street, Augusta [[1, STREET, 3.000, 83.82 km]]",
|
||||
"Bridge Street, Jay [[1, STREET, 3.000, 85.89 km]]"
|
||||
],
|
||||
[
|
||||
"Bridge Street, Frenchtown [[2, STREET, 3.000, 11.35 km]]",
|
||||
"Bridge Street, Westbrook [[2, STREET, 3.000, 11.35 km]]",
|
||||
"Bridge Street, Yarmouth [[2, STREET, 3.000, 23.44 km]]",
|
||||
"Bridge Street, Cornish [[2, STREET, 3.000, 27.39 km]]",
|
||||
"Bridge Street (Ocean Park), Old Orchard Beach [[2, STREET, 3.000, 28.42 km]]",
|
||||
"Bridge Street (Newfield), West Newfield [[2, STREET, 3.000, 32.66 km]]",
|
||||
"Bridge Street, Newfield [[2, STREET, 3.000, 32.66 km]]",
|
||||
"Bridge Street (Sprague City), West Newfield [[2, STREET, 3.000, 32.72 km]]",
|
||||
"Bridge Street, Sprague City [[2, STREET, 3.000, 33.02 km]]",
|
||||
"Bridge Street, Kezar Falls [[2, STREET, 3.000, 34.35 km]]",
|
||||
"Bridge Street (Springvale), Sanford [[2, STREET, 3.000, 41.40 km]]",
|
||||
"Bridge Street, Springvale [[2, STREET, 3.000, 41.40 km]]",
|
||||
"Bridge Street, Brunswick [[2, STREET, 3.000, 43.74 km]]",
|
||||
"Bridge Street, Lewiston [[2, STREET, 3.000, 43.86 km]]",
|
||||
"Bridge Street, Topsham [[2, STREET, 3.000, 43.93 km]]",
|
||||
"Bridge Street, Bath [[2, STREET, 3.000, 53.34 km]]",
|
||||
"Bridge Street, Ogunquit [[2, STREET, 3.000, 56.93 km]]",
|
||||
"Bridge Street, Berwick [[2, STREET, 3.000, 62.86 km]]",
|
||||
"Bridge Street, Richmond [[2, STREET, 3.000, 65.70 km]]",
|
||||
"Bridge Street, Boothbay Harbor [[2, STREET, 3.000, 68.39 km]]",
|
||||
"Bridge Street, Gardiner [[2, STREET, 3.000, 77.20 km]]",
|
||||
"Bridge Street (Oak Terrace), Kittery [[2, STREET, 3.000, 77.36 km]]",
|
||||
"Bridge Street, Randolph [[2, STREET, 3.000, 77.40 km]]",
|
||||
"Bridge Street, Oak Terrace [[2, STREET, 3.000, 77.41 km]]",
|
||||
"Bridge Street, Gilead [[2, STREET, 3.000, 82.07 km]]",
|
||||
"Bridge Street, Livermore Falls [[2, STREET, 3.000, 83.24 km]]",
|
||||
"Bridge Street, Augusta [[2, STREET, 3.000, 83.82 km]]",
|
||||
"Bridge Street, Jay [[2, STREET, 3.000, 85.89 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 11.59 km]]",
|
||||
"Bridge Street Dam [[2, POI, 2.000, 23.62 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 27.24 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 34.36 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 41.33 km]]",
|
||||
"Bridge Street Dam [[2, POI, 2.000, 41.35 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 43.84 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 76.87 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 77.27 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 82.37 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 88.20 km]]",
|
||||
"The Bridge Street Green [[2, POI, 2.000, 104.21 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 104.29 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 110.92 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 116.14 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 116.20 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 116.26 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 119.68 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 151.84 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 224.29 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 243.40 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 394.32 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 415.17 km]]",
|
||||
"Bridge Street [[2, POI, 2.000, 434.56 km]]"
|
||||
],
|
||||
[],
|
||||
[]
|
||||
],
|
||||
"amenities": [
|
||||
|
|
Loading…
Reference in a new issue