aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Pipkin <j@dawnrazor.net>2012-11-04 11:06:40 -0600
committerJacob Pipkin <j@dawnrazor.net>2012-11-04 11:06:40 -0600
commit3e13816918e42d1a2946f2bd2b6f9b93e865eb16 (patch)
tree109a828ccaf7237146e535a0bc1b858b9e2b8d26
parent9d47b96f516e9418edf2ed2db39c56faff62fd02 (diff)
downloadsbotools2-3e13816918e42d1a2946f2bd2b6f9b93e865eb16.tar.xz
fix so that new get_sbo_location tests are actually done correctly - fixes two of the four
-rwxr-xr-xt/test.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/test.t b/t/test.t
index d3e2017..c52669d 100755
--- a/t/test.t
+++ b/t/test.t
@@ -69,14 +69,14 @@ is (get_sbo_location ('nginx'), "$sbo_home/network/nginx",
is (get_sbo_location ('omgwtfbbq'), undef,
'get_sbo_location returns false with not-an-sbo input');
my @finds = qw(nginx gmpc);
-my @locs = get_sbo_location (@finds);
-is ($locs[0], "$sbo_home/network/nginx",
+my %locs = get_sbo_location (@finds);
+is ($locs{nginx}, "$sbo_home/network/nginx",
'get_sbo_location passed array #1 good');
-is ($locs[1], "$sbo_home/audio/gmpc", 'get_sbo_location passed array #2 good');
-@locs = get_sbo_location (\@finds);
-is ($locs[0], "$sbo_home/network/nginx",
+is ($locs{gmpc}, "$sbo_home/audio/gmpc", 'get_sbo_location passed array #2 good');
+%locs = get_sbo_location (\@finds);
+is ($locs{nginx}, "$sbo_home/network/nginx",
'get_sbo_location passed array ref #1 good');
-is ($locs[1], "$sbo_home/audio/gmpc",
+is ($locs{gmpc}, "$sbo_home/audio/gmpc",
'get_sbo_location passed array ref #2 good');
# 21-22, get_available_updates tests