summaryrefslogtreecommitdiff
path: root/test/unit/node/kind_map_black.cpp
diff options
context:
space:
mode:
authorAina Niemetz <aina.niemetz@gmail.com>2021-03-17 11:07:48 -0700
committerGitHub <noreply@github.com>2021-03-17 18:07:48 +0000
commitbbf9eee55db6851c0923252cdda8946030c3c75a (patch)
tree52d3f04010f61784a3494e5de27d6e70c20b9abb /test/unit/node/kind_map_black.cpp
parentfe72d5a3fce499092c842b48df997eb0aa54fc05 (diff)
Rename test/unit/expr to test/unit/node. (#6156)
This is in preparation for renaming src/expr to src/node.
Diffstat (limited to 'test/unit/node/kind_map_black.cpp')
-rw-r--r--test/unit/node/kind_map_black.cpp48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/unit/node/kind_map_black.cpp b/test/unit/node/kind_map_black.cpp
new file mode 100644
index 000000000..8e1c45d79
--- /dev/null
+++ b/test/unit/node/kind_map_black.cpp
@@ -0,0 +1,48 @@
+/********************* */
+/*! \file kind_map_black.cpp
+ ** \verbatim
+ ** Top contributors (to current version):
+ ** Aina Niemetz, Gereon Kremer
+ ** This file is part of the CVC4 project.
+ ** Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
+ ** in the top-level source directory and their institutional affiliations.
+ ** All rights reserved. See the file COPYING in the top-level source
+ ** directory for licensing information.\endverbatim
+ **
+ ** \brief Black box testing of CVC4::KindMap
+ **
+ ** Black box testing of CVC4::KindMap.
+ **/
+
+#include <iostream>
+#include <sstream>
+#include <string>
+
+#include "expr/kind_map.h"
+#include "test.h"
+
+namespace CVC4 {
+
+using namespace kind;
+
+namespace test {
+
+class TestNodeBlackKindMap : public TestInternal
+{
+};
+
+TEST_F(TestNodeBlackKindMap, simple)
+{
+ KindMap map;
+ ASSERT_FALSE(map.test(AND));
+ map.set(AND);
+ ASSERT_TRUE(map.test(AND));
+ map.reset(AND);
+ ASSERT_FALSE(map.test(AND));
+#ifdef CVC4_ASSERTIONS
+ ASSERT_THROW(map.set(LAST_KIND), AssertArgumentException);
+#endif
+}
+
+} // namespace test
+} // namespace CVC4
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback