Explorar el Código

All tests are now passing

Dawson hace 1 mes
padre
commit
25e224dde2

+ 2 - 2
src/main/java/me/dawson/teleport/Main.java

@@ -28,7 +28,7 @@ public class Main {
             switch (matcher) {
                 case PATH_QUERY -> {
                     if (completedPathAddition) {
-                        System.out.println("Ignored path: " + arg);
+                        System.out.println("WARNING: Ignored path \"" + arg + "\"");
                         continue;
                     }
                     var arguments = matcher.getArgumentsFromQuery(arg);
@@ -78,7 +78,7 @@ public class Main {
 
                     queriesToRun.add(new Tuple<>(arg, Query.of(paths).jumpCount(city, jumps)));
                 }
-                case UNKNOWN -> System.out.println("Unknown query: " + arg);
+                case UNKNOWN -> System.out.println("WARNING: Unknown query \"" + arg + "\"");
             }
         }
         for (Tuple<String, Query> query : queriesToRun) {

+ 1 - 1
src/test/java/me/dawson/tests/impl/UnexpectedBehaviorTest.java

@@ -38,7 +38,7 @@ public class UnexpectedBehaviorTest extends Tester {
         });
 
         final String expectedOutput = """
-            WARNING: Unknown query: "not a real argument"
+            WARNING: Unknown query "not a real argument"
             WARNING: Unknown query "I did silly"
             cities from Seattle in 1 jumps: New York, Baltimore
             cities from Seattle in 2 jumps: New York, Baltimore, Philadelphia, Washington