test: fix the tests for windows

This commit is contained in:
Erick Tryzelaar 2013-09-29 00:04:28 -07:00
parent 41f9deb2ee
commit efae73d95a
2 changed files with 2 additions and 2 deletions

View File

@ -31,4 +31,4 @@ enum D { Baz { x: int } }
//~^^ ERROR `FromPrimitive` cannot be derived for enums with struct variants
//~^^^ ERROR `FromPrimitive` cannot be derived for enums with struct variants
fn main() {}
pub fn main() {}

View File

@ -19,7 +19,7 @@ enum A {
Qux,
}
fn main() {
pub fn main() {
let x: Option<A> = FromPrimitive::from_int(int::max_value);
assert_eq!(x, Some(Foo));