Skip to content

Commit dbcca02

Browse files
author
GBathie
committed
More tests
1 parent 1281fee commit dbcca02

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

src/tests/mod.rs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,3 +308,47 @@ fn finally_a_and_b() {
308308
let exp = F(AND(build_atom("a", 0), build_atom("b", 1)));
309309
test_ltl_search(example, exp);
310310
}
311+
312+
#[test]
313+
fn a_and_b_and_c() {
314+
let example = make_instance!(
315+
pos: [
316+
{
317+
a: [1, 0, 1, 1],
318+
b: [1, 0, 0, 1],
319+
c: [1, 0, 1, 0]
320+
},
321+
{
322+
a: [1, 1, 0],
323+
b: [1, 0, 1],
324+
c: [1, 1, 1]
325+
}
326+
],
327+
neg: [
328+
{
329+
a: [1, 1, 0, 0],
330+
b: [0, 1, 1, 0],
331+
c: [1, 1, 1, 0]
332+
},
333+
{
334+
a: [1, 1, 0],
335+
b: [0, 1, 1],
336+
c: [0, 0, 1]
337+
},
338+
{
339+
a: [0, 0, 1],
340+
b: [0, 0, 1],
341+
c: [0, 1, 1]
342+
},
343+
{
344+
a: [0, 1, 0, 1],
345+
b: [1, 1, 0, 0],
346+
c: [1, 0, 1, 1]
347+
}
348+
]);
349+
let exp = AND(
350+
AND(build_atom("a", 0), build_atom("b", 1)),
351+
build_atom("c", 0),
352+
);
353+
test_ltl_search(example, exp);
354+
}

0 commit comments

Comments
 (0)