Skip to content

Commit 5e1acc4

Browse files
committed
Fix test, update changelog
1 parent 0b2fbf6 commit 5e1acc4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
4+
## [unreleased]
5+
6+
- Add `dict` function
7+
38
## v2.2.0 - 2024-11-22
49

510
- `parse`, `parse_bits`, and `UnableToDecode` have been added to work with the

test/gleam_json_test.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ pub fn encode_bool_false_test() {
183183
}
184184

185185
pub fn encode_dict_test() {
186-
json.dict(dict.from_list([#(3, 3.0)]), int.to_string, json.float)
187-
|> should_encode("{\"3\":3.0}")
186+
json.dict(dict.from_list([#(3, 3)]), int.to_string, json.int)
187+
|> should_encode("{\"3\":3}")
188188
}
189189

190190
fn should_encode(data: Json, expected: String) {

0 commit comments

Comments
 (0)