Skip to content
Permalink
Browse files

Fix libcore tests

  • Loading branch information
varkor committed Oct 8, 2019
1 parent 50985b0 commit 6ea469712d34569f88748f5ec765a9c0a08e5172
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/libcore/tests/bool.rs
@@ -1,7 +1,7 @@
#[test]
fn test_bool_to_option() {
assert_eq!(false.then(0), None);
assert_eq!(true.then(0), Some(0));
assert_eq!(false.then_with(|| 0), None);
assert_eq!(true.then_with(|| 0), Some(0));
assert_eq!(false.to_option(0), None);
assert_eq!(true.to_option(0), Some(0));
assert_eq!(false.to_option_with(|| 0), None);
assert_eq!(true.to_option_with(|| 0), Some(0));
}

0 comments on commit 6ea4697

Please sign in to comment.
You can’t perform that action at this time.