floats iter 1.2 fixup: replace iter-N comment with durable rationale for explicit assertions
This commit is contained in:
@@ -49,7 +49,10 @@ mod tests {
|
|||||||
"lockstep violation for {name:?}"
|
"lockstep violation for {name:?}"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// Float is a primitive (Floats milestone, iter 1).
|
// The loop's assert_eq! passes vacuously when both functions
|
||||||
|
// return `false`/`None` for a name; the explicit assertions
|
||||||
|
// below catch the case where a primitive is silently removed
|
||||||
|
// from both functions but stays in the loop list.
|
||||||
assert!(is_primitive_name("Float"), "Float must be a primitive");
|
assert!(is_primitive_name("Float"), "Float must be a primitive");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
primitive_surface_name("Float"),
|
primitive_surface_name("Float"),
|
||||||
|
|||||||
Reference in New Issue
Block a user