Mercurial > prosody-hg
comparison spec/util_dataforms_spec.lua @ 12387:05c250fa335a
Spelling: Fix various spelling mistakes (thanks timeless)
Words, sometimes I wonder how they even work
Maybe I missed something.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 07 Mar 2022 00:13:56 +0100 |
| parents | d30c81b875f2 |
| children | e8934ce6ea0f |
comparison
equal
deleted
inserted
replaced
| 12386:2d3080d02960 | 12387:05c250fa335a |
|---|---|
| 450 assert.not_equal(1, d.number); | 450 assert.not_equal(1, d.number); |
| 451 assert.table(e); | 451 assert.table(e); |
| 452 assert.string(e.number); | 452 assert.string(e.number); |
| 453 end); | 453 end); |
| 454 | 454 |
| 455 it("bounds-cheking work works", function () | 455 it("bounds-checking work works", function () |
| 456 local d,e = f:data(f:form({number = 100})); | 456 local d,e = f:data(f:form({number = 100})); |
| 457 assert.not_equal(100, d.number); | 457 assert.not_equal(100, d.number); |
| 458 assert.table(e); | 458 assert.table(e); |
| 459 assert.string(e.number); | 459 assert.string(e.number); |
| 460 end); | 460 end); |
| 461 | 461 |
| 462 it("serializes largeer ints okay", function () | 462 it("serializes larger ints okay", function () |
| 463 local x = f:form{number=1125899906842624} | 463 local x = f:form{number=1125899906842624} |
| 464 assert.equal("1125899906842624", x:find("field/value#")) | 464 assert.equal("1125899906842624", x:find("field/value#")) |
| 465 end); | 465 end); |
| 466 | 466 |
| 467 end) | 467 end) |
