()
| 164 | } |
| 165 | |
| 166 | func testSingleEntryRoundtrip() { |
| 167 | input := test.NamesById{99: "ninety-nine"} |
| 168 | result := test.SingleEntryRoundtrip(input) |
| 169 | assertEqual(len(result), 1) |
| 170 | assertEqual(result[99], "ninety-nine") |
| 171 | } |
| 172 | |
| 173 | func assertEqual[T comparable](a T, b T) { |
| 174 | if a != b { |