Statically fix all tests
This commit is contained in:
parent
112c0873bb
commit
19f62c9a98
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue