Commit 82a44073 authored by François Perrad's avatar François Perrad

more tests

parent 49cc3514
......@@ -2,7 +2,7 @@
require 'Test.More'
plan(35)
plan(40)
local ctor = require 'Silva.shell'
......@@ -47,6 +47,7 @@ nok( sme5'foo' )
ok( sme5'foo0' )
ok( sme5'foo00' )
ok( sme5'foo000' )
ok( sme5'foo.000' )
nok( sme5'foo/000' )
local sme6 = ctor'*.c'
......@@ -55,3 +56,9 @@ ok( sme6'foo.c' )
nok( sme6'foo.cpp' )
nok( sme6'foo.h' )
nok( sme6'.foo.c' )
local sme7 = ctor'foo/*/*.t'
ok( sme7, 'foo/*/*.t' )
ok( sme7'foo/bar/baz.t' )
nok( sme7'foo/bak/.baz.t' )
nok( sme7'foo/.bak/baz.t' )
......@@ -2,7 +2,7 @@
require 'Test.More'
plan(158)
plan(166)
local ctor = require 'Silva.shell'
local sme0, sme1
......@@ -172,6 +172,17 @@ ok( sme1, 'foo[^-]bar' )
ok( sme1'foo bar' )
nok( sme1'foo-bar' )
sme0 = ctor'foo[-_]bar'
ok( sme0, 'foo[-_]bar' )
nok( sme0'foo bar' )
ok( sme0'foo-bar' )
ok( sme0'foo_bar' )
sme1 = ctor'foo[^_-]bar'
ok( sme1, 'foo[^_-]bar' )
ok( sme1'foo bar' )
nok( sme1'foo-bar' )
nok( sme1'foo_bar' )
sme0 = ctor'foo[_,/]bar'
ok( sme0, 'foo[_,/]bar' )
nok( sme0'foo bar' )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment