From 60aff52595020f378cd0d1a4d9d75894e083b9e0 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 24 Apr 2017 00:22:00 +0200 Subject: Update the test cases to check for the right value --- t/getting.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 't') diff --git a/t/getting.t b/t/getting.t index e4339bb..06a345a 100644 --- a/t/getting.t +++ b/t/getting.t @@ -4,7 +4,7 @@ use v6.c; use Test; use lib "lib"; -plan 6; +plan 8; use Config; @@ -20,9 +20,9 @@ $config.read({ ok $config.get("a") eq "a", "Get simple key"; ok $config.get("b.c") eq "c", "Get nested key"; ok $config.get("nonexistant") === Nil, "Get nonexistant key"; -ok $config.get("nonexistant", "test") === Nil, "Get nonexistant key with default"; +ok $config.get("nonexistant", "test") === "test", "Get nonexistant key with default"; ok $config.get(["a"]) eq "a", "Get simple key by array"; ok $config.get(["b", "c"]) eq "c", "Get nested key by array"; ok $config.get(["nonexistant"]) === Nil, "Get nonexistant key by array"; -ok $config.get(["nonexistant"], "test") === Nil, "Get nonexistant key by array with default"; +ok $config.get(["nonexistant"], "test") === "test", "Get nonexistant key by array with default"; -- cgit v1.1