| 86 | |
| 87 | #[test] |
| 88 | fn test_map_with_equality_operators() { |
| 89 | let mut int_map = HashMap::new(); |
| 90 | int_map.insert("status".to_string(), 200); |
| 91 | int_map.insert("error_code".to_string(), 0); |
| 92 | |
| 93 | let data = TestData { |
| 94 | string_map: HashMap::new(), |
| 95 | int_map, |
| 96 | btree_map: BTreeMap::new(), |
| 97 | nested_map: HashMap::new(), |
| 98 | }; |
| 99 | |
| 100 | // Test with equality operators |
| 101 | assert_struct!(data, TestData { |
| 102 | int_map: #{ |
| 103 | "status": == 200, |
| 104 | "error_code": != 1, |
| 105 | .. |
| 106 | }, |
| 107 | .. |
| 108 | }); |
| 109 | } |
| 110 | |
| 111 | #[test] |
| 112 | fn test_btree_map() { |