Line data Source code
1 : // Author(s): Jeroen Keiren 2 : // Copyright: see the accompanying file COPYING or copy at 3 : // https://github.com/mCRL2org/mCRL2/blob/master/COPYING 4 : // 5 : // Distributed under the Boost Software License, Version 1.0. 6 : // (See accompanying file LICENSE_1_0.txt or copy at 7 : // http://www.boost.org/LICENSE_1_0.txt) 8 : // 9 : /// \file bool_test.cpp 10 : /// \brief Basic regression test for data expressions. 11 : 12 : #define BOOST_TEST_MODULE bool_test 13 : #include <boost/test/included/unit_test.hpp> 14 : 15 : #include "mcrl2/atermpp/aterm_io.h" 16 : #include "mcrl2/data/bool.h" 17 : 18 : using namespace mcrl2; 19 : using namespace mcrl2::data; 20 : using namespace mcrl2::data::sort_bool; 21 : 22 2 : BOOST_AUTO_TEST_CASE(test_bool_sort) 23 : { 24 1 : const basic_sort& b(bool_()); 25 1 : BOOST_CHECK(b == bool_()); 26 1 : BOOST_CHECK(pp(b.name()) == "Bool"); 27 1 : }