Explorar o código

employ elaborate reasoning to fix match error test

Simon Krajewski %!s(int64=9) %!d(string=hai) anos
pai
achega
379775075b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tests/unit/src/unit/TestMatch.hx

+ 1 - 1
tests/unit/src/unit/TestMatch.hx

@@ -337,7 +337,7 @@ class TestMatch extends Test {
 			case OpDecrement:
 			case OpNot:
 		}));
-		eq("Unmatched patterns: Node(Leaf(_), _)", TestMatchMacro.getErrorMessage(switch(Leaf("foo")) {
+		eq("Unmatched patterns: Node(Node, _)", TestMatchMacro.getErrorMessage(switch(Leaf("foo")) {
 			case Node(Leaf("foo"), _):
 			case Leaf(_):
 		}));