Skip to content

Commit

Permalink
Fix test names
Browse files Browse the repository at this point in the history
  • Loading branch information
danlehmann committed Dec 4, 2024
1 parent f885cba commit 97081a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2096,7 +2096,7 @@ fn new_and_as_specific_types() {

#[cfg(not(feature = "const_convert_and_const_trait_impl"))]
#[test]
fn new_flexible() {
fn from_flexible() {
let a = u10::new(1000);
let b = u11::from_(a);

Expand All @@ -2107,23 +2107,23 @@ fn new_flexible() {
#[cfg(not(feature = "const_convert_and_const_trait_impl"))]
#[test]
#[should_panic]
fn new_flexible_catches_out_of_bounds() {
fn from_flexible_catches_out_of_bounds() {
let a = u28::new(0x8000000);
let _b = u9::from_(a);
}

#[cfg(not(feature = "const_convert_and_const_trait_impl"))]
#[test]
#[should_panic]
fn new_flexible_catches_out_of_bounds_2() {
fn from_flexible_catches_out_of_bounds_2() {
let a = u28::new(0x0000200);
let _b = u9::from_(a);
}

#[cfg(not(feature = "const_convert_and_const_trait_impl"))]
#[test]
#[should_panic]
fn new_flexible_catches_out_of_bounds_primitive_type() {
fn from_flexible_catches_out_of_bounds_primitive_type() {
let a = u28::new(0x8000000);
let _b = u8::from_(a);
}
Expand Down

0 comments on commit 97081a8

Please sign in to comment.