Skip to content

Commit

Permalink
coverage. Fix test typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyunxing committed Aug 29, 2024
1 parent 56f1700 commit 3d24cf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/coverage/mcdc/if.coverage
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
LL| |
LL| 4|fn mcdc_check_not_tree_decision(a: bool, b: bool, c: bool) {
LL| 4| // Contradict to `mcdc_check_tree_decision`,
LL| 4| // 100% branch coverage of this expression does not mean indicates 100% mcdc coverage.
LL| 4| // 100% branch coverage of this expression does not indicate 100% mcdc coverage.
LL| 4| if (a || b) && c {
^1
------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/coverage/mcdc/if.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fn mcdc_check_tree_decision(a: bool, b: bool, c: bool) {

fn mcdc_check_not_tree_decision(a: bool, b: bool, c: bool) {
// Contradict to `mcdc_check_tree_decision`,
// 100% branch coverage of this expression does not mean indicates 100% mcdc coverage.
// 100% branch coverage of this expression does not indicate 100% mcdc coverage.
if (a || b) && c {
say("pass");
} else {
Expand Down

0 comments on commit 3d24cf9

Please sign in to comment.