diff options
author | Teddy Wing | 2018-03-21 18:13:00 +0100 |
---|---|---|
committer | Teddy Wing | 2018-03-21 18:13:00 +0100 |
commit | 25991886eba08a3baa418d7b5f4e5e4eaa5df23b (patch) | |
tree | 3ebd3ecfce83ce5da79e6c442b16c0becfada4fd /t/101-drop-accepts-multiple-branch-arguments.t | |
parent | 9a4abcc9b0e1121c89ae8a12be8eeb291e7dd34e (diff) | |
parent | 64fe9fc7fa4e073d6bb97cdee0d2914abb943391 (diff) | |
download | git-branch-list-25991886eba08a3baa418d7b5f4e5e4eaa5df23b.tar.bz2 |
Merge branch 'drop-multiple-branches'
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; |