mirror of
https://github.com/Z3Prover/z3
synced 2026-06-01 14:47:51 +00:00
Update high-level.test.ts
This commit is contained in:
parent
6b3adcf259
commit
617fb60176
1 changed files with 0 additions and 18 deletions
|
|
@ -1052,24 +1052,6 @@ describe('high-level', () => {
|
||||||
expect(nonUnits.length()).toBeGreaterThanOrEqual(0);
|
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', () => {
|
describe('solver congruence closure APIs', () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue