Mark most tests as experimental

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2020-02-03 15:48:38 -07:00
rodzic 9c839621c3
commit f48c951b59
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
3 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -89,7 +89,7 @@ public class StreetAddressOrder extends Test {
errors.add(TestError.builder(this, Severity.OTHER, 58542100).primitives((OsmPrimitive) potentialBadAddress)
.highlight(surroundingAddresses.stream().filter(OsmPrimitive.class::isInstance)
.map(OsmPrimitive.class::cast).collect(Collectors.toSet()))
.message(MapWithAIPlugin.NAME, marktr("Potential bad address")).build());
.message(tr("{0} (experimental)", MapWithAIPlugin.NAME), marktr("Potential bad address")).build());
}
}

Wyświetl plik

@ -62,12 +62,12 @@ public class StreetAddressTest extends Test {
TestError.Builder error = null;
if (name == null) {
error = TestError.builder(this, Severity.WARNING, 65446500);
error.message(tr(MapWithAIPlugin.NAME),
error.message(tr("{0} (experimental)", MapWithAIPlugin.NAME),
marktr("Street with no name with {0} tags nearby, name possibly {1}"), ADDR_STREET, likelyNames)
.highlight(getAddressPOI(likelyNames, addresses));
} else if (!likelyNames.contains(name)) {
error = TestError.builder(this, Severity.WARNING, 65446501);
error.message(tr(MapWithAIPlugin.NAME),
error.message(tr("{0} (experimental)", MapWithAIPlugin.NAME),
marktr("Street name does not match most likely name, name possibly {0}"), likelyNames)
.highlight(getAddressPOI(likelyNames, addresses));
}

Wyświetl plik

@ -60,7 +60,8 @@ public class StubEndsTest extends Test {
private TestError createError(Way way, List<Node> nodes, double distance) {
TestError.Builder error = TestError.builder(this, Severity.ERROR, 333300239)
.message(MapWithAIPlugin.NAME, marktr("Stub end ({0}m)"), distance).primitives(way).highlight(nodes);
.message(tr("{0} (experimental)", MapWithAIPlugin.NAME), marktr("Stub end ({0}m)"), distance)
.primitives(way).highlight(nodes);
if (way.isNew()) {
Way tWay = new Way(way);
List<Node> tNodes = tWay.getNodes();