Skip to content

Commit 3ac0cef

Browse files
committed
harden test case
1 parent a25706b commit 3ac0cef

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/unit/out/refcount/vector_bool_reference.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn main_0() -> i32 {
4343
__a0
4444
}
4545
.read();
46-
assert!(b);
46+
assert!((b) && (i == 1));
4747
}
4848
return 0;
4949
}

‎tests/unit/out/unsafe/vector_bool_reference.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ unsafe fn main_0() -> i32 {
4444
*__a0 = true;
4545
__a0
4646
};
47-
assert!(b);
47+
assert!((b) && ((i) == (1)));
4848
}
4949
return 0;
5050
}

‎tests/unit/vector_bool_reference.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main() {
1717
std::vector<bool> v = {false, false, false};
1818
int i = 0;
1919
bool b = v[i++] = true;
20-
assert(b);
20+
assert(b && i == 1);
2121
}
2222
return 0;
2323
}

0 commit comments

Comments
 (0)