Files
cvc5/test/unit/api/java/SynthResultTest.java
Andrew Reynolds ba24986fe2 Add SynthResult to the API (#8370)
Does not modify the code to return a SynthResult yet, just adds the class.

Co-authored-by: Aina Niemetz <aina.niemetz@gmail.com>
2022-03-23 21:56:33 +00:00

48 lines
1.2 KiB
Java

/******************************************************************************
* Top contributors (to current version):
* Andrew Reynolds
*
* This file is part of the cvc5 project.
*
* Copyright (c) 2009-2021 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.
* ****************************************************************************
*
* Black box testing of the SynthResult class
*/
package tests;
import static org.junit.jupiter.api.Assertions.*;
import io.github.cvc5.api.*;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class SynthResultTest
{
private Solver d_solver;
@BeforeEach void setUp()
{
d_solver = new Solver();
}
@AfterEach void tearDown()
{
d_solver.close();
}
@Test void isNull()
{
SynthResult res_null = d_solver.getNullSynthResult();
assertTrue(res_null.isNull());
assertFalse(res_null.hasSolution());
assertFalse(res_null.hasNoSolution());
assertFalse(res_null.isUnknown());
}
}