Skip to content

Commit 0a8ed17

Browse files
bjorn3gitbot
authored and
gitbot
committed
Move std::num unit tests to integration tests
1 parent a67c9e3 commit 0a8ed17

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

std/src/num.rs

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
#![stable(feature = "rust1", since = "1.0.0")]
77
#![allow(missing_docs)]
88

9-
#[cfg(test)]
10-
mod tests;
11-
129
#[stable(feature = "int_error_matching", since = "1.55.0")]
1310
pub use core::num::IntErrorKind;
1411
#[stable(feature = "generic_nonzero", since = "1.79.0")]

std/src/num/tests.rs renamed to std/tests/num.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use crate::ops::Mul;
1+
use std::ops::Mul;
22

33
#[test]
44
fn test_saturating_add_uint() {
@@ -190,8 +190,8 @@ fn test_uint_to_str_overflow() {
190190
assert_eq!(u64_val.to_string(), "0");
191191
}
192192

193-
fn from_str<T: crate::str::FromStr>(t: &str) -> Option<T> {
194-
crate::str::FromStr::from_str(t).ok()
193+
fn from_str<T: std::str::FromStr>(t: &str) -> Option<T> {
194+
std::str::FromStr::from_str(t).ok()
195195
}
196196

197197
#[test]

0 commit comments

Comments
 (0)