Move std::num unit tests to integration tests
This commit is contained in:
parent
29166cd617
commit
9baeb45309
2 changed files with 3 additions and 6 deletions
|
@ -6,9 +6,6 @@
|
||||||
#![stable(feature = "rust1", since = "1.0.0")]
|
#![stable(feature = "rust1", since = "1.0.0")]
|
||||||
#![allow(missing_docs)]
|
#![allow(missing_docs)]
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests;
|
|
||||||
|
|
||||||
#[stable(feature = "int_error_matching", since = "1.55.0")]
|
#[stable(feature = "int_error_matching", since = "1.55.0")]
|
||||||
pub use core::num::IntErrorKind;
|
pub use core::num::IntErrorKind;
|
||||||
#[stable(feature = "generic_nonzero", since = "1.79.0")]
|
#[stable(feature = "generic_nonzero", since = "1.79.0")]
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use crate::ops::Mul;
|
use std::ops::Mul;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_saturating_add_uint() {
|
fn test_saturating_add_uint() {
|
||||||
|
@ -190,8 +190,8 @@ fn test_uint_to_str_overflow() {
|
||||||
assert_eq!(u64_val.to_string(), "0");
|
assert_eq!(u64_val.to_string(), "0");
|
||||||
}
|
}
|
||||||
|
|
||||||
fn from_str<T: crate::str::FromStr>(t: &str) -> Option<T> {
|
fn from_str<T: std::str::FromStr>(t: &str) -> Option<T> {
|
||||||
crate::str::FromStr::from_str(t).ok()
|
std::str::FromStr::from_str(t).ok()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
Loading…
Add table
Add a link
Reference in a new issue