diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2020-02-28 22:20:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 22:20:18 -0800 |
commit | 31efb570a9d5811fd88a34d4915d7d08c81d13fa (patch) | |
tree | b3b553c8ce5075b40f0a8645aac28edb69b1c253 /test/unit/theory | |
parent | b0609b2d70220064a44bc99e396bf0d2d5ade531 (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')
-rw-r--r-- | test/unit/theory/evaluator_white.h | 4 |
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))); } |