mirror of
https://github.com/Z3Prover/z3
synced 2026-01-19 16:53:18 +00:00
Update high-level.test.ts
This commit is contained in:
parent
02972ffab3
commit
3881b6845b
1 changed files with 0 additions and 18 deletions
|
|
@ -1052,24 +1052,6 @@ describe('high-level', () => {
|
|||
expect(nonUnits.length()).toBeGreaterThanOrEqual(0);
|
||||
});
|
||||
|
||||
it('can retrieve solver trail', async () => {
|
||||
const { Solver, Bool } = api.Context('main');
|
||||
|
||||
const solver = new Solver();
|
||||
const x = Bool.const('x');
|
||||
const y = Bool.const('y');
|
||||
|
||||
solver.add(x.implies(y));
|
||||
solver.add(x);
|
||||
|
||||
const result = await solver.check();
|
||||
expect(result).toBe('sat');
|
||||
|
||||
// Get trail
|
||||
const trail = solver.trail();
|
||||
expect(trail).toBeDefined();
|
||||
expect(trail.length()).toBeGreaterThanOrEqual(0);
|
||||
});
|
||||
});
|
||||
|
||||
describe('solver congruence closure APIs', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue