All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 Execute(FuzzyJSONDecode should return the default for empty Lists):
2 AssertEqual [], ale#util#FuzzyJSONDecode([], [])
3 AssertEqual {}, ale#util#FuzzyJSONDecode([], {})
5 Execute(FuzzyJSONDecode should return the default for empty Strings):
6 AssertEqual [], ale#util#FuzzyJSONDecode('', [])
7 AssertEqual {}, ale#util#FuzzyJSONDecode('', {})
9 Execute(FuzzyJSONDecode should return the default value for ['']):
10 AssertEqual [], ale#util#FuzzyJSONDecode([''], [])
11 AssertEqual {}, ale#util#FuzzyJSONDecode([''], {})
13 Execute(FuzzyJSONDecode should return the default value for only whitespace lines):
14 AssertEqual [], ale#util#FuzzyJSONDecode(['', "\n"], [])
15 AssertEqual {}, ale#util#FuzzyJSONDecode(['', "\n"], {})
17 Execute(FuzzyJSONDecode should return the default for Lists with invalid JSON):
18 AssertEqual [], ale#util#FuzzyJSONDecode(['x'], [])
19 AssertEqual {}, ale#util#FuzzyJSONDecode(['x'], {})
21 Execute(FuzzyJSONDecode should return the default for Strings with invalid JSON):
22 AssertEqual [], ale#util#FuzzyJSONDecode('x', [])
23 AssertEqual {}, ale#util#FuzzyJSONDecode('x', {})
25 Execute(FuzzyJSONDecode should return the JSON from the JSON string):
26 AssertEqual {'x': 3}, ale#util#FuzzyJSONDecode('{"x": 3}', [])
27 AssertEqual {'x': 3}, ale#util#FuzzyJSONDecode('{"x": 3}', {})
28 AssertEqual {'x': 3}, ale#util#FuzzyJSONDecode(['{"x"', ': 3}'], [])
29 AssertEqual {'x': 3}, ale#util#FuzzyJSONDecode(['{"x"', ': 3}'], {})