From a833ef8465c738d117d2f72dab588f04bc0982ce Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 15 Mar 2017 15:26:58 +0100 Subject: add add_dir(), add mkdir to file_put --- tests/it.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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"); -- cgit v1.2.3