From bd3bc6769547e89dc5d3e255aa4babc2cc5ffe48 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Sat, 4 Jul 2020 13:46:25 +0200
Subject: Overhaul Config to 3.0.0
---
t/05-null-parser.t | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
(limited to 't/05-null-parser.t')
diff --git a/t/05-null-parser.t b/t/05-null-parser.t
index 93be062..72aedf8 100644
--- a/t/05-null-parser.t
+++ b/t/05-null-parser.t
@@ -8,22 +8,22 @@ use Config::Parser::NULL;
plan 3;
-::("Config::Parser::NULL").set-config({
+Config::Parser::NULL.set-config({
"a" => "a",
"b" => {
"c" => "c"
}
});
-my Config $config = Config.new();
+my Config $config = Config.new;
-ok $config.read("t/files/config", "Config::Parser::NULL"), "Attempt to read a file with Config::Parser::NULL";
+ok $config.read('t/files/config'.IO, Config::Parser::NULL), "Attempt to read a file with Config::Parser::NULL";
-is-deeply $config.get(), {
+is-deeply $config.get, {
"a" => "a",
"b" => {
"c" => "c"
}
}, "Check read config from Config::Parser::NULL";
-ok $config.write("t/t/t"), "Attempt to write a file with Config::Parser::NULL";
+ok $config.write('t/t/t'.IO, Config::Parser::NULL), "Attempt to write a file with Config::Parser::NULL";
--
cgit v1.1