Skip to content

Commit

Permalink
adds test for parsing string with new line
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimeiniesta committed Feb 27, 2018
1 parent d70f671 commit 0e03d04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/decode_test.exs
Expand Up @@ -63,6 +63,7 @@ defmodule Jason.DecodeTest do
assert parse!("{}") == %{}
assert parse!(~s({"foo": "bar"})) == %{"foo" => "bar"}
assert parse!(~s({"foo" : "bar"})) == %{"foo" => "bar"}
assert parse!(~s({"foo": "bar\nbaz"})) == %{"foo" => "bar\nbaz"}

expected = %{"foo" => "bar", "baz" => "quux"}
assert parse!(~s({"foo": "bar", "baz": "quux"})) == expected
Expand Down

0 comments on commit 0e03d04

Please sign in to comment.