Skip to content

Commit

Permalink
Fix: Do not normalize JSON during assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 26, 2022
1 parent 87972c5 commit 5511c01
Show file tree
Hide file tree
Showing 64 changed files with 78 additions and 659 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
{
"foo": {},
"bar": {
"baz": {
"qux": "quux",
"quuz": "corge"
},
"grault": {
"fred":"plugh",
"garply": "waldo"
}
}
}
{"foo":{},"bar":{"baz":{"qux":"quux","quuz":"corge"},"grault":{"fred":"plugh","garply":"waldo"}}}
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
{
"foo": {},
"bar": {
"baz": {
"qux": "quux",
"quuz": "corge"
},
"grault": {
"fred":"plugh",
"garply": "waldo"
}
},
"thud": "xyzzy"
}
{"foo":{},"bar":{"baz":{"qux":"quux","quuz":"corge"},"grault":{"fred":"plugh","garply":"waldo"}},"thud":"xyzzy"}
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
{
"bar": {
"baz": {
"qux": "quux",
"quuz": "corge"
},
"grault": {
"fred":"plugh",
"garply": "waldo"
}
},
"foo": {}
}
{"bar":{"baz":{"qux":"quux","quuz":"corge"},"grault":{"fred":"plugh","garply":"waldo"}},"foo":{}}
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
{
"bar": [
{
"foo": 9000,
"bar": [
"foo",
"bar",
"baz"
]
},
{
"foo": 9001
}
],
"foo": "bar"
}
{"bar":[{"foo":9000,"bar":["foo","bar","baz"]},{"foo":9001}],"foo":"bar"}
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
[
{
"type": "Website",
"url": "https://localheinz.com"
},
"https://github.com/localheinz",
{
"type": "Twitter",
"url": "https://twitter.com/localheinz"
}
]
[{"type":"Website","url":"https:\/\/localheinz.com"},"https:\/\/github.com\/localheinz",{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
[
{
"type": "Website",
"url": "https://localheinz.com"
},
"https://github.com/localheinz",
{
"type": "Twitter",
"url": "https://twitter.com/localheinz"
}
]
[{"type":"Website","url":"https:\/\/localheinz.com"},"https:\/\/github.com\/localheinz",{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
[
{
"type": "Website",
"url": "https://localheinz.com"
},
"https://github.com/localheinz",
{
"type": "Twitter",
"url": "https://twitter.com/localheinz"
}
]
[{"type":"Website","url":"https:\/\/localheinz.com"},"https:\/\/github.com\/localheinz",{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
[
{
"type": "Website",
"url": "https://localheinz.com"
},
"https://github.com/localheinz",
{
"type": "Twitter",
"url": "https://twitter.com/localheinz"
}
]
[{"type":"Website","url":"https:\/\/localheinz.com"},"https:\/\/github.com\/localheinz",{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
[
{
"type": "Website",
"url": "https://localheinz.com"
},
{
"type": "GitHub",
"url": "https://github.com/localheinz"
},
{
"type": "Twitter",
"url": "https://twitter.com/localheinz"
}
]
[{"type":"Website","url":"https:\/\/localheinz.com"},{"type":"GitHub","url":"https:\/\/github.com\/localheinz"},{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
[
"foo",
"bar",
"baz"
]
["foo","bar","baz"]
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
[
9001,
false,
null,
"Andreas Möller",
{
"type": "Website",
"url": "https://localheinz.com"
}
]
[9001,false,null,"Andreas M\u00f6ller",{"type":"Website","url":"https:\/\/localheinz.com"}]
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
[
"foo",
"bar",
"baz"
]
["foo","bar","baz"]
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
[
"foo",
"bar",
"baz"
]
["foo","bar","baz"]
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
[
9001,
false,
null,
"Andreas Möller",
{
"type": "Website",
"url": "https://localheinz.com"
}
]
[9001,false,null,"Andreas M\u00f6ller",{"type":"Website","url":"https:\/\/localheinz.com"}]
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
[
{
"baz": 9000
},
{
"baz": 9001
}
]
[{"baz":9000},{"baz":9001}]
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
[
"foo",
"bar",
"baz",
{
"baz": "qux",
"foo": "bar"
}
]
["foo","bar","baz",{"baz":"qux","foo":"bar"}]
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
{
"name": "Andreas Möller",
"urls": [
"https://localheinz.com",
"https://github.com/localheinz",
"https://twitter.com/localheinz"
]
}
{"name":"Andreas M\u00f6ller","urls":["https:\/\/localheinz.com","https:\/\/github.com\/localheinz","https:\/\/twitter.com\/localheinz"]}
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
{
"name": "Andreas Möller",
"urls": [
"https://localheinz.com",
"https://github.com/localheinz",
"https://twitter.com/localheinz"
]
}
{"name":"Andreas M\u00f6ller","urls":["https:\/\/localheinz.com","https:\/\/github.com\/localheinz","https:\/\/twitter.com\/localheinz"]}
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
{
"name": "Andreas Möller",
"urls": [
{
"type": "Website",
"url": "https://localheinz.com"
},
{
"type": "GitHub",
"url": "https://github.com/localheinz"
},
{
"type": "Twitter",
"url": "https://twitter.com/localheinz"
}
]
}
{"name":"Andreas M\u00f6ller","urls":[{"type":"Website","url":"https:\/\/localheinz.com"},{"type":"GitHub","url":"https:\/\/github.com\/localheinz"},{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]}
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
{
"name": "Andreas Möller",
"urls": [
{
"type": "Website",
"url": "https://localheinz.com"
},
{
"type": "GitHub",
"url": "https://github.com/localheinz"
},
{
"type": "Twitter",
"url": "https://twitter.com/localheinz"
}
]
}
{"name":"Andreas M\u00f6ller","urls":[{"type":"Website","url":"https:\/\/localheinz.com"},{"type":"GitHub","url":"https:\/\/github.com\/localheinz"},{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]}
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
{
"name": "Andreas Möller",
"url-github": "https://github.com/localheinz",
"url-twitter": "https://twitter.com/localheinz",
"url-website": "https://localheinz.com"
}
{"name":"Andreas M\u00f6ller","url-github":"https:\/\/github.com\/localheinz","url-twitter":"https:\/\/twitter.com\/localheinz","url-website":"https:\/\/localheinz.com"}
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
{
"bar": [
{
"baz": 9000
},
{
"baz": 9001
}
],
"foo": "hello"
}
{"bar":[{"baz":9000},{"baz":9001}],"foo":"hello"}
Original file line number Diff line number Diff line change
@@ -1,17 +1 @@
{
"name": "Andreas Möller",
"urls": [
{
"type": "Website",
"url": "https://localheinz.com"
},
{
"type": "GitHub",
"url": "https://github.com/localheinz"
},
{
"type": "Twitter",
"url": "https://twitter.com/localheinz"
}
]
}
{"name":"Andreas M\u00f6ller","urls":[{"type":"Website","url":"https:\/\/localheinz.com"},{"type":"GitHub","url":"https:\/\/github.com\/localheinz"},{"type":"Twitter","url":"https:\/\/twitter.com\/localheinz"}]}
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
{
"name": "Andreas Möller",
"url-github": "https://github.com/localheinz",
"url-twitter": "https://twitter.com/localheinz",
"url-website": "https://localheinz.com"
}
{"name":"Andreas M\u00f6ller","url-github":"https:\/\/github.com\/localheinz","url-twitter":"https:\/\/twitter.com\/localheinz","url-website":"https:\/\/localheinz.com"}
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
{
"bar": [
{
"baz": 9000
},
{
"baz": 9001
}
],
"foo": "hello"
}
{"bar":[{"baz":9000},{"baz":9001}],"foo":"hello"}
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
{
"bar": [
{
"bar": [
"foo",
"bar",
"baz"
],
"foo": 9000
},
{
"foo": 9001
}
],
"foo": "bar"
}
{"bar":[{"bar":["foo","bar","baz"],"foo":9000},{"foo":9001}],"foo":"bar"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
false
false
Original file line number Diff line number Diff line change
@@ -1 +1 @@
null
null
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1415
3.1415
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9001
9001
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"https://localheinz.com"
"https:\/\/localheinz.com"
Original file line number Diff line number Diff line change
@@ -1 +1 @@
false
false
Original file line number Diff line number Diff line change
@@ -1 +1 @@
null
null
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1415
3.1415
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9001
9001
Loading

0 comments on commit 5511c01

Please sign in to comment.