aboutsummaryrefslogtreecommitdiff
path: root/t/05-null-parser.t
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-07-04 13:46:25 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-07-25 02:17:24 +0200
commitbb450bd96b02b48ed8b277fa0a6ca5c97037a680 (patch)
tree974bf72d443dbf0d1bffea29793becee806b43bc /t/05-null-parser.t
parent86d3fe57ceb163d9ff31d131568f4a9caca8bbc5 (diff)
Overhaul Config to 3.0.0
Diffstat (limited to 't/05-null-parser.t')
-rw-r--r--t/05-null-parser.t10
1 files changed, 5 insertions, 5 deletions
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";