Skip to content

Commit babbf09

Browse files
committed
Update comments in ThreadIdDomainTest
1 parent 205d2b9 commit babbf09

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/unit/cdomains/threadIdDomainTest.ml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ let test_history_may_be_ancestor _ =
5858
assert_equal true (may_be_ancestor main (main >> a >> a));
5959
assert_equal true (may_be_ancestor main (main >> a >> b >> b));
6060
assert_equal true (may_be_ancestor (main >> a) (main >> a >> b >> b));
61-
(* TODO: added elements condition always true by construction in tests? *)
61+
(* No false tests because added elements condition is always true by construction in unit test harness. *)
6262

6363
(* non-unique created by unique and is prefix: removed elements must be in set *)
6464
assert_equal true (may_be_ancestor (main >> a) (main >> a >> a));
@@ -81,8 +81,8 @@ let test_history_may_be_ancestor _ =
8181
assert_equal false (may_be_ancestor (main >> a >> b >> b) (main >> a >> c >> c)); (* from set *) (* 53-races-mhp/08-not-created6, also passes with simple may_be_ancestor *)
8282
assert_equal false (may_be_ancestor (main >> a >> b >> b) (main >> b >> b)); (* from prefix *) (* infeasible for race: definitely_not_started requires (main >> a or main >> a >> b), where this must happen, to be must parent for (main >> b >> b), which it is not *)
8383
(* non-unique creates non-unique: removed elements and set must be in new set *)
84-
(* assert_equal false (may_be_ancestor (main >> a >> b >> c >> c) (main >> a >> c >> c)); *)
85-
(* TODO: cannot test due because by construction after prefix check? *)
84+
assert_equal false (may_be_ancestor (main >> a >> b >> c >> c) (main >> a >> c >> c)); (* already fails previous condition *)
85+
(* No false tests because already fails previous by construction in unit test harness. *)
8686
(* non-unique creates non-unique *)
8787
assert_equal true (may_be_ancestor (main >> a >> a) (main >> a >> a));
8888
assert_equal true (may_be_ancestor (main >> a >> a) (main >> a >> a >> b));
@@ -94,7 +94,8 @@ let test_history_may_be_ancestor _ =
9494
assert_equal true (may_be_ancestor (main >> a >> b >> b) (main >> b >> b >> a));
9595
assert_equal true (may_be_ancestor (main >> a >> b >> b) (main >> b >> a >> b));
9696

97-
(* 4f6a7637b8d0dc723fe382f94bed6c822cd4a2ce passes all... *)
97+
(* Some tests may still be missing because commit 4f6a7637b8d0dc723fe382f94bed6c822cd4a2ce passed all before two additional improvements.
98+
Might be related to untestability with this unit test harness: https://github.com/goblint/analyzer/pull/1561#discussion_r1888149978. *)
9899
()
99100

100101
let tests =

0 commit comments

Comments
 (0)