summaryrefslogtreecommitdiff
path: root/test/unit/theory/evaluator_white.h
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2020-02-28 22:20:18 -0800
committerGitHub <noreply@github.com>2020-02-28 22:20:18 -0800
commit31efb570a9d5811fd88a34d4915d7d08c81d13fa (patch)
treeb3b553c8ce5075b40f0a8645aac28edb69b1c253 /test/unit/theory/evaluator_white.h
parentb0609b2d70220064a44bc99e396bf0d2d5ade531 (diff)
Add support for str.from_code (#3829)
This commit adds support for `str.from_code`. This is work towards supporting the new strings standard. The code currently just does an eager expansion of the operator. The commit also renames `STRING_CODE` to `STRING_TO_CODE` to better reflect the names of the operators in the new standard.
Diffstat (limited to 'test/unit/theory/evaluator_white.h')
-rw-r--r--test/unit/theory/evaluator_white.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/theory/evaluator_white.h b/test/unit/theory/evaluator_white.h
index cfdab7c9e..c02aaaed8 100644
--- a/test/unit/theory/evaluator_white.h
+++ b/test/unit/theory/evaluator_white.h
@@ -168,14 +168,14 @@ class TheoryEvaluatorWhite : public CxxTest::TestSuite
// (str.code "A") ---> 65
{
- Node n = d_nm->mkNode(kind::STRING_CODE, a);
+ Node n = d_nm->mkNode(kind::STRING_TO_CODE, a);
Node r = eval.eval(n, args, vals);
TS_ASSERT_EQUALS(r, d_nm->mkConst(Rational(65)));
}
// (str.code "") ---> -1
{
- Node n = d_nm->mkNode(kind::STRING_CODE, empty);
+ Node n = d_nm->mkNode(kind::STRING_TO_CODE, empty);
Node r = eval.eval(n, args, vals);
TS_ASSERT_EQUALS(r, d_nm->mkConst(Rational(-1)));
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback