mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Move std::num unit tests to integration tests
This commit is contained in:
@@ -6,9 +6,6 @@
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
#[stable(feature = "int_error_matching", since = "1.55.0")]
|
||||
pub use core::num::IntErrorKind;
|
||||
#[stable(feature = "generic_nonzero", since = "1.79.0")]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::ops::Mul;
|
||||
use std::ops::Mul;
|
||||
|
||||
#[test]
|
||||
fn test_saturating_add_uint() {
|
||||
@@ -190,8 +190,8 @@ fn test_uint_to_str_overflow() {
|
||||
assert_eq!(u64_val.to_string(), "0");
|
||||
}
|
||||
|
||||
fn from_str<T: crate::str::FromStr>(t: &str) -> Option<T> {
|
||||
crate::str::FromStr::from_str(t).ok()
|
||||
fn from_str<T: std::str::FromStr>(t: &str) -> Option<T> {
|
||||
std::str::FromStr::from_str(t).ok()
|
||||
}
|
||||
|
||||
#[test]
|
||||
Reference in New Issue
Block a user