1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Aina Niemetz, Makai Mann |
4 |
|
* |
5 |
|
* This file is part of the cvc5 project. |
6 |
|
* |
7 |
|
* Copyright (c) 2009-2021 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 { |
19 |
|
|
20 |
|
using namespace api; |
21 |
|
|
22 |
|
namespace test { |
23 |
|
|
24 |
4 |
class TestApiWhiteOp : public TestApi |
25 |
|
{ |
26 |
|
}; |
27 |
|
|
28 |
10 |
TEST_F(TestApiWhiteOp, opFromKind) |
29 |
|
{ |
30 |
4 |
Op plus(&d_solver, PLUS); |
31 |
2 |
ASSERT_FALSE(plus.isIndexed()); |
32 |
4 |
ASSERT_THROW(plus.getIndices<uint32_t>(), CVC5ApiException); |
33 |
2 |
ASSERT_EQ(plus, d_solver.mkOp(PLUS)); |
34 |
|
} |
35 |
|
} // namespace test |
36 |
6 |
} // namespace cvc5 |