File: testp.lua

package info (click to toggle)
lua-penlight 1.0.2%2Bhtmldoc-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,860 kB
  • sloc: makefile: 7
file content (13 lines) | stat: -rw-r--r-- 186 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'pl'

norm = path.normpath

p = norm '/a/b'

assert(norm '/a/fred/../b' == p)
assert(norm '/a//b' == p)

if path.is_windows then
  assert(norm [[\a\.\b]] == p)
end