Mercurial > prosody-hg
comparison spec/util_json_spec.lua @ 8562:a6188f5d5bb5
spec: Trim trailing whitespace
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 06 Mar 2018 06:27:20 +0100 |
| parents | 4878e4159e12 |
| children | c9c4b8bc53b1 |
comparison
equal
deleted
inserted
replaced
| 8561:7b9ffddc4276 | 8562:a6188f5d5bb5 |
|---|---|
| 62 | 62 |
| 63 it("should fail invalid testcases", function() | 63 it("should fail invalid testcases", function() |
| 64 for name, content in pairs(invalid_data) do | 64 for name, content in pairs(invalid_data) do |
| 65 local parsed, err = json.decode(content); | 65 local parsed, err = json.decode(content); |
| 66 assert(not parsed, name..": "..tostring(err)); | 66 assert(not parsed, name..": "..tostring(err)); |
| 67 end | 67 end |
| 68 end); | 68 end); |
| 69 end) | 69 end) |
| 70 end); | 70 end); |
