summaryrefslogtreecommitdiff
path: root/tests/it.t
diff options
context:
space:
mode:
authorUrban Müller2017-03-15 15:26:58 +0100
committerUrban Müller2017-03-15 15:26:58 +0100
commita833ef8465c738d117d2f72dab588f04bc0982ce (patch)
tree09eae89bc0a03a08bef3c339d0d623acf7242186 /tests/it.t
parenta29ada8124f7ea5bbad4387dd908eeaa57b1957c (diff)
downloaditools-a833ef8465c738d117d2f72dab588f04bc0982ce.tar.gz
itools-a833ef8465c738d117d2f72dab588f04bc0982ce.tar.bz2
itools-a833ef8465c738d117d2f72dab588f04bc0982ce.zip
add add_dir(), add mkdir to file_put
Diffstat (limited to 'tests/it.t')
-rwxr-xr-xtests/it.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/it.t b/tests/it.t
index e028f27..0c02106 100755
--- a/tests/it.t
+++ b/tests/it.t
@@ -438,3 +438,7 @@ is(it::map(42, array("aaa", "aa")), array(42, 42));
is(it::map('2*$v', [3, 4, 5], ['keys' => '0,1']), [6, 8, 5]);
is(it::map('2*$v', [3, 4, 5], ['keys' => [0,1]]), [6, 8, 5]);
is(it::map('2*$v', ['foo' => 1, 'bar' => 2], ['keys' => 'foo']), ['foo' => 2, 'bar' => 2]);
+
+is(it::add_dir("foo/bar"), "foo/37/bar");
+is(it::add_dir("baz/bar"), "baz/37/bar");
+is(it::add_dir("bar"), "./37/bar");