summaryrefslogtreecommitdiff
path: root/test/unit/api/term_black.h
blob: c2ca1cb08ccadcadc649998f4164457128b80c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*********************                                                        */
/*! \file term_black.h
 ** \verbatim
 ** Top contributors (to current version):
 **   Andres Noetzli
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2009-2018 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 the Term class
 **/

#include <cxxtest/TestSuite.h>

#include "api/cvc4cpp.h"

using namespace CVC4::api;

class TermBlack : public CxxTest::TestSuite
{
 public:
  void setUp() override {}
  void tearDown() override {}

  void testTermAssignment()
  {
    Term t1 = d_solver.mkReal(1);
    Term t2 = t1;
    t2 = d_solver.mkReal(2);
    TS_ASSERT_EQUALS(t1, d_solver.mkReal(1));
  }

 private:
  Solver d_solver;
};
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback