summaryrefslogtreecommitdiffstats
path: root/t/03_timespec.t
diff options
context:
space:
mode:
Diffstat (limited to 't/03_timespec.t')
-rw-r--r--t/03_timespec.t18
1 files changed, 9 insertions, 9 deletions
diff --git a/t/03_timespec.t b/t/03_timespec.t
index ae1b1e5..0f367c9 100644
--- a/t/03_timespec.t
+++ b/t/03_timespec.t
@@ -7,15 +7,15 @@ use App::BorgRestore;
my $app = App::BorgRestore->new_no_defaults(undef);
-is($app->timespec_to_seconds('5s'), 5, '5 seconds');
-is($app->timespec_to_seconds('5minutes'), 5*60, '5 minutes');
-is($app->timespec_to_seconds('6d'), 6*60*60*24, '6 days');
-is($app->timespec_to_seconds('8m'), 8*60*60*24*31, '8 months');
-is($app->timespec_to_seconds('2y'), 2*60*60*24*365, '2 years');
+is($app->_timespec_to_seconds('5s'), 5, '5 seconds');
+is($app->_timespec_to_seconds('5minutes'), 5*60, '5 minutes');
+is($app->_timespec_to_seconds('6d'), 6*60*60*24, '6 days');
+is($app->_timespec_to_seconds('8m'), 8*60*60*24*31, '8 months');
+is($app->_timespec_to_seconds('2y'), 2*60*60*24*365, '2 years');
-is($app->timespec_to_seconds('5sec'), undef, 'invalid unit returns undef');
-is($app->timespec_to_seconds('5'), undef, 'missing unit returns undef');
-is($app->timespec_to_seconds('blub'), undef, 'string returns undef');
-is($app->timespec_to_seconds(''), undef, 'empty string returns undef');
+is($app->_timespec_to_seconds('5sec'), undef, 'invalid unit returns undef');
+is($app->_timespec_to_seconds('5'), undef, 'missing unit returns undef');
+is($app->_timespec_to_seconds('blub'), undef, 'string returns undef');
+is($app->_timespec_to_seconds(''), undef, 'empty string returns undef');
done_testing;