Increase JSON conversation coverage
This commit is contained in:
parent
9708fb23c8
commit
723bcdcb75
|
|
@ -48,6 +48,11 @@ parse_test_() ->
|
||||||
{"key","aws:cloudformation:stack-name"},
|
{"key","aws:cloudformation:stack-name"},
|
||||||
{"value","prod-us-east-1-ecs-1"}]}
|
{"value","prod-us-east-1-ecs-1"}]}
|
||||||
],
|
],
|
||||||
|
?assertEqual(Expectation, httpc_aws_json:decode(Value))
|
||||||
|
end},
|
||||||
|
{"list values", fun() ->
|
||||||
|
Value = "{\"misc\": [\"foo\", true, 123]\}",
|
||||||
|
Expectation = [{"misc", ["foo", true, 123]}],
|
||||||
?assertEqual(Expectation, httpc_aws_json:decode(Value))
|
?assertEqual(Expectation, httpc_aws_json:decode(Value))
|
||||||
end}
|
end}
|
||||||
].
|
].
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue