diff --git a/lib/cretonne/src/ir/condcodes.rs b/lib/cretonne/src/ir/condcodes.rs index f63bd60938..26d81ede6e 100644 --- a/lib/cretonne/src/ir/condcodes.rs +++ b/lib/cretonne/src/ir/condcodes.rs @@ -303,6 +303,7 @@ mod tests { let cc = *r; assert_eq!(cc.to_string().parse(), Ok(cc)); } + assert_eq!("bogus".parse::(), Err(())); } static FLOAT_ALL: [FloatCC; 14] = [FloatCC::Ordered, @@ -345,5 +346,6 @@ mod tests { let cc = *r; assert_eq!(cc.to_string().parse(), Ok(cc)); } + assert_eq!("bogus".parse::(), Err(())); } }