Statically fix all tests

This commit is contained in:
Tobe O 2019-08-07 21:56:48 -04:00
parent 112c0873bb
commit 19f62c9a98

View file

@ -72,7 +72,7 @@ main() {
});
}
ValueContext parseValue(String text) => parse(text).parseValue();
InputValueContext parseValue(String text) => parse(text).parseInputValue();
Matcher isValue(value) => new _IsValue(value);
@ -87,7 +87,7 @@ class _IsValue extends Matcher {
@override
bool matches(item, Map matchState) {
var v = item is ValueContext ? item : parseValue(item.toString());
return equals(value).matches(v.value, matchState);
var v = item is InputValueContext ? item : parseValue(item.toString());
return equals(value).matches(v.computeValue({}), matchState);
}
}