2023-11-28 11:53:30 -06:00
|
|
|
/******************************************************************************
|
|
|
|
|
* Top contributors (to current version):
|
2025-01-23 09:54:20 -08:00
|
|
|
* Mudathir Mohamed, Aina Niemetz
|
2023-11-28 11:53:30 -06: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
|
2023-11-28 11:53:30 -06: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.
|
|
|
|
|
* ****************************************************************************
|
|
|
|
|
*
|
|
|
|
|
* Common header for parser API unit test.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package tests;
|
|
|
|
|
|
|
|
|
|
import io.github.cvc5.*;
|
|
|
|
|
import org.junit.jupiter.api.AfterEach;
|
|
|
|
|
import org.junit.jupiter.api.BeforeEach;
|
|
|
|
|
import org.junit.jupiter.api.TestInfo;
|
|
|
|
|
|
|
|
|
|
class ParserTest
|
|
|
|
|
{
|
2024-04-02 09:42:06 -07:00
|
|
|
protected TermManager d_tm;
|
2023-11-28 11:53:30 -06:00
|
|
|
protected Solver d_solver;
|
|
|
|
|
protected SymbolManager d_symman;
|
|
|
|
|
|
|
|
|
|
@BeforeEach
|
|
|
|
|
void setUp(TestInfo testInfo)
|
|
|
|
|
{
|
|
|
|
|
System.out.println("Setting up test: " + testInfo.getDisplayName());
|
2024-04-02 09:42:06 -07:00
|
|
|
d_tm = new TermManager();
|
|
|
|
|
d_solver = new Solver(d_tm);
|
2023-11-28 11:53:30 -06:00
|
|
|
d_solver.setOption("parse-only", "true");
|
2024-06-18 16:21:47 -07:00
|
|
|
d_symman = new SymbolManager(d_tm);
|
2023-11-28 11:53:30 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@AfterEach
|
|
|
|
|
void tearDown(TestInfo testInfo)
|
|
|
|
|
{
|
|
|
|
|
System.out.println("Tearing down test: " + testInfo.getDisplayName());
|
|
|
|
|
Context.deletePointers();
|
|
|
|
|
}
|
|
|
|
|
}
|