Software / code / prosody
Comparison
spec/util_paths_spec.lua @ 11182:bab8d01e139a
util_paths_spec: Trim trailing white space
And add spacing between describe() blocks
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 17 Oct 2020 19:24:44 +0200 |
| parent | 11181:d2b19560150d |
comparison
equal
deleted
inserted
replaced
| 11181:d2b19560150d | 11182:bab8d01e139a |
|---|---|
| 18 | 18 |
| 19 describe("#glob_to_pattern()", function () | 19 describe("#glob_to_pattern()", function () |
| 20 it("works", function () | 20 it("works", function () |
| 21 assert.equal("^thing.%..*$", paths.glob_to_pattern("thing?.*")) | 21 assert.equal("^thing.%..*$", paths.glob_to_pattern("thing?.*")) |
| 22 end); | 22 end); |
| 23 | |
| 24 end) | 23 end) |
| 24 | |
| 25 describe("#resolve_relative_path()", function () | 25 describe("#resolve_relative_path()", function () |
| 26 it("returns absolute paths as-is", function () | 26 it("returns absolute paths as-is", function () |
| 27 if sep == "/" then | 27 if sep == "/" then |
| 28 assert.equal("/tmp/path", paths.resolve_relative_path("/run", "/tmp/path")); | 28 assert.equal("/tmp/path", paths.resolve_relative_path("/run", "/tmp/path")); |
| 29 elseif sep == "\\" then | 29 elseif sep == "\\" then |