diff options
author | Morgan Deters <mdeters@gmail.com> | 2010-11-15 22:57:14 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2010-11-15 22:57:14 +0000 |
commit | 5e5956d492ab18b5b4d4bb51117ac760867a525d (patch) | |
tree | 0c151baa58810722288ad986dfa13123de273739 /test/unit/expr/node_builder_black.h | |
parent | ec4e1bdba56565d6372cb19ded12c9cadc506870 (diff) |
Pretty-printer infrastructure created (in src/printer) and SMT-LIBv2 printer
implemented. This new infrastructure removes support for pretty-printing
(even in the AST language) an Expr with reference count 0. Previously,
this was supported in a few places internally to the expr package, for
example in NodeBuilder. (Now, a NodeBuilder cannot be prettyprinted, you
must extract the Node before printing it.)
Diffstat (limited to 'test/unit/expr/node_builder_black.h')
-rw-r--r-- | test/unit/expr/node_builder_black.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/test/unit/expr/node_builder_black.h b/test/unit/expr/node_builder_black.h index 46fb82546..49c9b7952 100644 --- a/test/unit/expr/node_builder_black.h +++ b/test/unit/expr/node_builder_black.h @@ -570,57 +570,6 @@ public: #endif /* CVC4_ASSERTIONS */ } - void testToStream() { - /* inline void toStream(std::ostream& out) const { - d_ev->toStream(out); - } - */ - - NodeBuilder<K> a(specKind); - NodeBuilder<K> b(specKind); - NodeBuilder<K> c(NOT); - string astr, bstr, cstr; - stringstream astream, bstream, cstream; - - push_back(a, K / 2); - push_back(b, K / 2); - push_back(c, 1); - - a.toStream(astream); - b.toStream(bstream); - c.toStream(cstream); - - astr = astream.str(); - bstr = bstream.str(); - cstr = cstream.str(); - - TS_ASSERT_EQUALS(astr, bstr); - TS_ASSERT_DIFFERS(astr, cstr); - - Node n = a; n = b; n = c;// avoid warning on clear() - a.clear(specKind); - b.clear(specKind); - c.clear(specKind); - astream.flush(); - bstream.flush(); - cstream.flush(); - - push_back(a,2*K); - push_back(b,2*K); - push_back(c,2*K+1); - - a.toStream(astream); - b.toStream(bstream); - c.toStream(cstream); - - astr = astream.str(); - bstr = bstream.str(); - cstr = cstream.str(); - - TS_ASSERT_EQUALS(astr, bstr); - TS_ASSERT_DIFFERS(astr, cstr); - } - void testLeftistBuilding() { NodeBuilder<> nb; |