diff options
Diffstat (limited to 't/101-drop-accepts-multiple-branch-arguments.t')
-rw-r--r-- | t/101-drop-accepts-multiple-branch-arguments.t | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/t/101-drop-accepts-multiple-branch-arguments.t b/t/101-drop-accepts-multiple-branch-arguments.t new file mode 100644 index 0000000..16767bf --- /dev/null +++ b/t/101-drop-accepts-multiple-branch-arguments.t @@ -0,0 +1,42 @@ +#!/usr/bin/env perl -w + +use strict; + +use Test::More; + +use Bin qw($BIN); + +chdir 't-git-repo' or die $!; + +system('git branch first'); +ok !$?; + +system("$BIN save first"); +ok !$?; + +system('git branch second'); +ok !$?; + +system("$BIN save second"); +ok !$?; + +system('git branch third'); +ok !$?; + +system("$BIN save third"); +ok !$?; + +system("$BIN drop 1 3"); +ok !$?; + +my $branch_list = qx($BIN); +is $branch_list, ' 1 second +'; + + +# Teardown +system('git branch -d first second third'); +system("$BIN clear"); + + +done_testing; |