Mercurial > prosody-hg
comparison spec/util_cache_spec.lua @ 12571:c4337ff4f1c4
tests: Remove special-casing of Lua 5.1
Part of #1600
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 02 Jul 2022 17:29:03 +0200 |
| parents | 618ab9bba1c2 |
| children | e9fcc69ea508 |
comparison
equal
deleted
inserted
replaced
| 12570:e6f68b6c87e1 | 12571:c4337ff4f1c4 |
|---|---|
| 312 expect_kv("e", 5, c5:head()); | 312 expect_kv("e", 5, c5:head()); |
| 313 expect_kv("c", 3, c5:tail()); | 313 expect_kv("c", 3, c5:tail()); |
| 314 | 314 |
| 315 end); | 315 end); |
| 316 | 316 |
| 317 (_VERSION=="Lua 5.1" and pending or it)(":table works", function () | 317 it(":table works", function () |
| 318 local t = cache.new(3):table(); | 318 local t = cache.new(3):table(); |
| 319 assert.is.table(t); | 319 assert.is.table(t); |
| 320 t["a"] = "1"; | 320 t["a"] = "1"; |
| 321 assert.are.equal(t["a"], "1"); | 321 assert.are.equal(t["a"], "1"); |
| 322 t["b"] = "2"; | 322 t["b"] = "2"; |
