mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Add Bound tests
This commit is contained in:
parent
0772f9a920
commit
df845784ee
@ -82,3 +82,18 @@ fn test_range_is_empty() {
|
||||
assert!( (NAN ..= EPSILON).is_empty());
|
||||
assert!( (NAN ..= NAN).is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_bound_cloned_unbounded() {
|
||||
assert_eq!(Bound::<&u32>::Unbounded.cloned(), Bound::Unbounded);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_bound_cloned_included() {
|
||||
assert_eq!(Bound::Included(&3).cloned(), Bound::Included(3));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_bound_cloned_excluded() {
|
||||
assert_eq!(Bound::Excluded(&3).cloned(), Bound::Excluded(3));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user