Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * Top contributors (to current version): 3 : : * Aina Niemetz, Andres Noetzli 4 : : * 5 : : * This file is part of the cvc5 project. 6 : : * 7 : : * Copyright (c) 2009-2025 by the authors listed in the file AUTHORS 8 : : * in the top-level source directory and their institutional affiliations. 9 : : * All rights reserved. See the file COPYING in the top-level source 10 : : * directory for licensing information. 11 : : * **************************************************************************** 12 : : * 13 : : * White box testing of the Op class. 14 : : */ 15 : : 16 : : #include "test_api.h" 17 : : 18 : : namespace cvc5::internal { 19 : : 20 : : namespace test { 21 : : 22 : : class TestApiWhiteOp : public TestApi 23 : : { 24 : : }; 25 : : 26 : 2 : TEST_F(TestApiWhiteOp, opFromKind) 27 : : { 28 : 1 : Op plus(&d_solver->getTermManager(), Kind::ADD); 29 [ - + ]: 1 : ASSERT_FALSE(plus.isIndexed()); 30 [ - + ]: 1 : ASSERT_EQ(0, plus.getNumIndices()); 31 [ - + ]: 2 : ASSERT_EQ(plus, d_tm.mkOp(Kind::ADD)); 32 : : } 33 : : } // namespace test 34 : : } // namespace cvc5::internal