()
| 84 | } |
| 85 | |
| 86 | fn test_inline_roundtrip() { |
| 87 | let mut input = wit_bindgen::rt::Map::new(); |
| 88 | input.insert(1, "one".to_string()); |
| 89 | input.insert(2, "two".to_string()); |
| 90 | let result = inline_roundtrip(&input); |
| 91 | assert_eq!(result.len(), 2); |
| 92 | assert_eq!(result.get("one"), Some(&1)); |
| 93 | assert_eq!(result.get("two"), Some(&2)); |
| 94 | } |
| 95 | |
| 96 | fn test_large_map() { |
| 97 | let mut input = NamesById::new(); |