diff options
Diffstat (limited to 'test/unit/node/kind_map_black.cpp')
-rw-r--r-- | test/unit/node/kind_map_black.cpp | 48 |
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 |