Test the error case of condcode parsing.

This commit is contained in:
Dan Gohman
2017-08-31 07:45:29 -07:00
parent 6702221e94
commit 4c3ac6053f

View File

@@ -303,6 +303,7 @@ mod tests {
let cc = *r;
assert_eq!(cc.to_string().parse(), Ok(cc));
}
assert_eq!("bogus".parse::<IntCC>(), 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::<FloatCC>(), Err(()));
}
}