diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-05-18 03:11:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-05-18 03:11:30 +0200 |
commit | 21df787c85539e149fdcf98155e37d0237105b64 (patch) | |
tree | c44c46551c87cfa195546b274775d8449cd70666 /t | |
parent | 8b12cdc391d6cfedf45b780e37263711aa448a87 (diff) |
App::Hashl documentation
Diffstat (limited to 't')
-rw-r--r-- | t/29-app-hashl.t | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/t/29-app-hashl.t b/t/29-app-hashl.t index 608a3a2..20d0734 100644 --- a/t/29-app-hashl.t +++ b/t/29-app-hashl.t @@ -29,19 +29,18 @@ is_deeply([$hashl->files()], [], 'no files in empty db'); is_deeply([$hashl->ignored()], [], 'no ignored files in empty db'); my $test_hash = $hashl->hash_file('t/in/4'); +my ($test_size, $test_mtime) = (stat('t/in/4'))[7,9]; ok($hashl->add_file( file => 't/in/4', path => 't/in/4', - mtime => 123, - size => 4, ), 'Add new file' ); is_deeply($hashl->file('t/in/4'), { hash => $test_hash, - size => 4, - mtime => 123, + size => $test_size, + mtime => $test_mtime, }, 'hashl->file okay' ); |