We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert!
check_unique
NodeId
Graphs
1 parent ec76172 commit 3d11ec4Copy full SHA for 3d11ec4
pdg/src/info.rs
@@ -224,10 +224,10 @@ mod test {
224
225
fn check_unique(pdg: &Graphs, unique: &[NodeId], non_unique: &[NodeId]) {
226
for &unique in unique {
227
- assert!(info(pdg, unique).unique);
+ assert!(info(pdg, unique).unique, "expected {unique} to be unique in {pdg}");
228
}
229
for &non_unique in non_unique {
230
- assert!(!info(pdg, non_unique).unique);
+ assert!(!info(pdg, non_unique).unique, "expected {non_unique} to be non-unique in {pdg}");
231
232
233
0 commit comments