Fix tests

This commit is contained in:
Victor Shcherb 2020-06-03 16:21:29 +02:00
parent b755d328e9
commit 811e6ebbf9
2 changed files with 92 additions and 59 deletions

View file

@ -211,7 +211,7 @@ public class SearchUICoreTest {
}
}
Assert.assertEquals(expected, present);
if (i >= results.size()) {
if (i >= result.size()) {
break;
}
}

View file

@ -13,8 +13,8 @@
"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, 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]]",
@ -56,6 +56,42 @@
]
],
"extra-results" : [
[
"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]]",
@ -108,11 +144,8 @@
"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 [[2, POI, 2.000, 434.56 km]]"
],
[],
[]
],
"amenities": [