2021-04-12 12:31:43 -07:00
|
|
|
/******************************************************************************
|
|
|
|
|
* Top contributors (to current version):
|
2022-04-05 13:38:57 -07:00
|
|
|
* Aina Niemetz, Andres Noetzli
|
2021-04-12 12:31:43 -07:00
|
|
|
*
|
|
|
|
|
* This file is part of the cvc5 project.
|
|
|
|
|
*
|
2025-01-23 09:54:20 -08:00
|
|
|
* Copyright (c) 2009-2025 by the authors listed in the file AUTHORS
|
2021-04-12 12:31:43 -07:00
|
|
|
* 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.
|
|
|
|
|
* ****************************************************************************
|
|
|
|
|
*
|
|
|
|
|
* White box testing of the Op class.
|
|
|
|
|
*/
|
2021-03-03 17:17:17 -08:00
|
|
|
|
|
|
|
|
#include "test_api.h"
|
|
|
|
|
|
2022-03-29 16:23:01 -07:00
|
|
|
namespace cvc5::internal {
|
2021-03-03 17:17:17 -08:00
|
|
|
|
|
|
|
|
namespace test {
|
|
|
|
|
|
|
|
|
|
class TestApiWhiteOp : public TestApi
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
TEST_F(TestApiWhiteOp, opFromKind)
|
|
|
|
|
{
|
2024-03-08 11:39:13 -08:00
|
|
|
Op plus(&d_solver->getTermManager(), Kind::ADD);
|
2021-03-03 17:17:17 -08:00
|
|
|
ASSERT_FALSE(plus.isIndexed());
|
2022-03-21 16:27:40 -07:00
|
|
|
ASSERT_EQ(0, plus.getNumIndices());
|
2024-03-08 11:39:13 -08:00
|
|
|
ASSERT_EQ(plus, d_tm.mkOp(Kind::ADD));
|
2021-03-03 17:17:17 -08:00
|
|
|
}
|
|
|
|
|
} // namespace test
|
2022-03-29 16:23:01 -07:00
|
|
|
} // namespace cvc5::internal
|