|
1 | 1 | use crate::lib::asserts::{ |
2 | | - assert_eq_1, assert_eq_8, assert_eq_16, assert_eq_32, assert_eq_64,assert_eq_128, assert_eq_256, |
3 | | - assert_none_1, assert_none_8, assert_none_16, assert_none_32, assert_none_64, assert_none_128, assert_none_256 |
| 2 | + assert_eq_1, |
| 3 | + assert_eq_8, |
| 4 | + assert_eq_16, |
| 5 | + assert_eq_32, |
| 6 | + assert_eq_64, |
| 7 | + assert_eq_128, |
| 8 | + assert_eq_256, |
| 9 | + assert_eq_bool, |
| 10 | + assert_none_1, |
| 11 | + assert_none_8, |
| 12 | + assert_none_16, |
| 13 | + assert_none_32, |
| 14 | + assert_none_64, |
| 15 | + assert_none_128, |
| 16 | + assert_none_256 |
4 | 17 | }; |
5 | 18 | use crate::helper::if_test_this_function; |
6 | 19 |
|
@@ -36,13 +49,14 @@ fn main() { |
36 | 49 | match if_test_this_function(4, fn_idx) { true => { assert_eq_64(unwrap(a_u64), unwrap(b_u64)); }, false => (), }; |
37 | 50 | match if_test_this_function(5, fn_idx) { true => { assert_eq_128(unwrap(a_u128), unwrap(b_u128)); }, false => (), }; |
38 | 51 | match if_test_this_function(6, fn_idx) { true => { assert_eq_256(unwrap(a_u256), unwrap(b_u256)); }, false => (), }; |
| 52 | + match if_test_this_function(7, fn_idx) { true => { assert_eq_bool(<u1>::into(unwrap(a_u1)), <u1>::into(unwrap(b_u1))); }, false => (), }; |
39 | 53 |
|
40 | 54 | // Assert None |
41 | | - match if_test_this_function(7, fn_idx) { true => { assert_none_1(a_u1); }, false => (), }; |
42 | | - match if_test_this_function(8, fn_idx) { true => { assert_none_8(a_u8); }, false => (), }; |
43 | | - match if_test_this_function(9, fn_idx) { true => { assert_none_16(a_u16); }, false => (), }; |
44 | | - match if_test_this_function(10, fn_idx) { true => { assert_none_32(a_u32); }, false => (), }; |
45 | | - match if_test_this_function(11, fn_idx) { true => { assert_none_64(a_u64); }, false => (), }; |
46 | | - match if_test_this_function(12, fn_idx) { true => { assert_none_128(a_u128); }, false => (), }; |
47 | | - match if_test_this_function(13, fn_idx) { true => { assert_none_256(a_u256); }, false => (), }; |
| 55 | + match if_test_this_function(8, fn_idx) { true => { assert_none_1(a_u1); }, false => (), }; |
| 56 | + match if_test_this_function(9, fn_idx) { true => { assert_none_8(a_u8); }, false => (), }; |
| 57 | + match if_test_this_function(10, fn_idx) { true => { assert_none_16(a_u16); }, false => (), }; |
| 58 | + match if_test_this_function(11, fn_idx) { true => { assert_none_32(a_u32); }, false => (), }; |
| 59 | + match if_test_this_function(12, fn_idx) { true => { assert_none_64(a_u64); }, false => (), }; |
| 60 | + match if_test_this_function(13, fn_idx) { true => { assert_none_128(a_u128); }, false => (), }; |
| 61 | + match if_test_this_function(14, fn_idx) { true => { assert_none_256(a_u256); }, false => (), }; |
48 | 62 | } |
0 commit comments