Closed
Description
The following unit tests all fail:
// rustc --test from_str.rs && ./from_str
use std;
#[test]
fn too_big()
{
alt int::from_str("9999999999999999999999")
{
option::some(value)
{
io::println(#fmt["How did we get %??\n", value]);
assert false;
}
option::none()
{
// passed
}
}
}
#[test]
fn too_small()
{
alt int::from_str("-9999999999999999999999")
{
option::some(value)
{
io::println(#fmt["How did we get %??\n", value]);
assert false;
}
option::none()
{
// passed
}
}
}
Metadata
Metadata
Assignees
Labels
No labels