Skip to content

Commit

Permalink
Update map_test.mbt
Browse files Browse the repository at this point in the history
  • Loading branch information
E-M-T-F authored and bobzhang committed Jan 12, 2025
1 parent 032c701 commit d129a06
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions sorted_map/map_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,9 @@ test "iter" {
test "range" {
let map = @sorted_map.of([(1, "a"), (2, "b"), (3, "c"), (4, "d"), (5, "e")])
let result = map.range(2, 4)
inspect!(
result,
content=
#|[(2, "b"), (3, "c"), (4, "d")]
,
)
let buf = StringBuilder::new()
for k, v in result {
buf.write_string("[\{k}\{v}]")
}
inspect!(buf, content="[2b][3c][4d]")
}

0 comments on commit d129a06

Please sign in to comment.