summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorGianni Ceccarelli <dakkar@thenautilus.net>2011-11-14 14:17:22 +0000
committerGianni Ceccarelli <dakkar@thenautilus.net>2011-11-14 14:17:22 +0000
commitbb0870231cd8f7caee0c6ccf6b455919f9e0a79b (patch)
tree1edf571226d5c767dc236e185064642fcd1ba383 /t
parentBuild results of 467399a (on master) (diff)
parentfix inserting range w/o overlap (diff)
downloaddata-multivalued-bb0870231cd8f7caee0c6ccf6b455919f9e0a79b.tar.gz
data-multivalued-bb0870231cd8f7caee0c6ccf6b455919f9e0a79b.tar.bz2
data-multivalued-bb0870231cd8f7caee0c6ccf6b455919f9e0a79b.zip
Build results of dd15e2e (on master)
Diffstat (limited to 't')
-rw-r--r--t/ranges-setting.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/ranges-setting.t b/t/ranges-setting.t
index b8d2a57..e8f4c77 100644
--- a/t/ranges-setting.t
+++ b/t/ranges-setting.t
@@ -24,6 +24,14 @@ sub test_it {
});
} 'setting 30-50';
+ lives_ok {
+ $obj->set({
+ from => 25,
+ to => 27,
+ value => [7,8,9],
+ });
+ } 'setting 30-50';
+
cmp_deeply($obj->get({at => 15}),
[1,2,3],
'getting 15');
@@ -50,6 +58,10 @@ sub test_it {
$obj->get({at => 50})
} 'getting 50 dies';
+ cmp_deeply($obj->get({at => 25}),
+ [7,8,9],
+ 'getting 25');
+
dies_ok {
$obj->get({at => 0})
} 'getting 0 dies';