Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added specific test for Facter.to_hash

  • Loading branch information...
commit d8911aae06aa03f33262069731d0a1fda6601632 1 parent be84992
@cosimo authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 t/to-hash.t
View
15 t/to-hash.t
@@ -0,0 +1,15 @@
+use v6;
+use Test;
+use Facter;
+
+my $facter = Facter.new;
+ok($facter, "Facter loaded");
+
+my %facts = $facter.to_hash;
+
+ok(%facts, 'Facter.to_hash call produces some result');
+
+is(%facts<perl6os>, $*OS, 'perl6os fact has the correct value');
+
+done_testing;
+
Please sign in to comment.
Something went wrong with that request. Please try again.