Skip to content

Commit

Permalink
Temporarily remove POD synopsys tests.
Browse files Browse the repository at this point in the history
   Should do Panda now that curried roles work over compilation boundary
   Now, to go test that theory...
  • Loading branch information
skids committed Jan 7, 2013
1 parent ab1bbce commit a5e79d1
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 23 deletions.
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -3,6 +3,4 @@ perl6sum


Sum:: Perl6 modules implementing checksums, hashes, etc. Sum:: Perl6 modules implementing checksums, hashes, etc.


Note to panda users: this package cannot currently be run from
precompiled binaries, pending rakudo fixes for curried roles
and POD. It does work when run from source, however.
3 changes: 2 additions & 1 deletion lib/Sum.pm6
Expand Up @@ -92,7 +92,8 @@ class X::Sum::Recourse is Exception {
# will become more maintainable. In the meantime, if you edit anything # will become more maintainable. In the meantime, if you edit anything
# above, take care to adjust the sections here. # above, take care to adjust the sections here.


$Sum::Doc::synopsis = $=pod[0].content[4..8]>>.content.Str; # Disabling this for now until .pir files properly serialize pod
#$Sum::Doc::synopsis = $=pod[0].content[4..8]>>.content.Str;


=begin pod =begin pod
Expand Down
3 changes: 2 additions & 1 deletion lib/Sum/Adler.pm6
Expand Up @@ -19,7 +19,8 @@ Sum::Adler
# will become more maintainable. In the meantime, if you edit anything # will become more maintainable. In the meantime, if you edit anything
# above, take care to adjust the sections here. # above, take care to adjust the sections here.


$Sum::Adler::Doc::synopsis = $=pod[0].content[4].content.Str; # Disabling this for now until .pir files properly serialize pod
#$Sum::Adler::Doc::synopsis = $=pod[0].content[4].content.Str;


=begin pod =begin pod
Expand Down
3 changes: 2 additions & 1 deletion lib/Sum/MD.pm6
Expand Up @@ -23,7 +23,8 @@ Sum::MD
# will become more maintainable. In the meantime, if you edit anything # will become more maintainable. In the meantime, if you edit anything
# above, take care to adjust the sections here. # above, take care to adjust the sections here.


$Sum::MD::Doc::synopsis = $=pod[0].content[3..4]>>.content.Str; # Disabling this for now until .pir files properly serialize pod
#$Sum::MD::Doc::synopsis = $=pod[0].content[3..4]>>.content.Str;


=begin pod =begin pod
Expand Down
3 changes: 2 additions & 1 deletion lib/Sum/SHA.pm6
Expand Up @@ -34,7 +34,8 @@ Sum::SHA
# will become more maintainable. In the meantime, if you edit anything # will become more maintainable. In the meantime, if you edit anything
# above, take care to adjust the sections here. # above, take care to adjust the sections here.


$Sum::SHA::Doc::synopsis = $=pod[0].content[3..6]>>.content.Str; # Disabling this for now until .pir files properly serialize pod
#$Sum::SHA::Doc::synopsis = $=pod[0].content[3..6]>>.content.Str;


=begin pod =begin pod
Expand Down
3 changes: 2 additions & 1 deletion lib/Sum/SipHash.pm6
Expand Up @@ -19,7 +19,8 @@ Sum::SipHash
# will become more maintainable. In the meantime, if you edit anything # will become more maintainable. In the meantime, if you edit anything
# above, take care to adjust the sections here. # above, take care to adjust the sections here.


$Sum::SipHash::Doc::synopsis = $=pod[0].content[4].content.Str; # Disabling this for now until .pir files properly serialize pod
#$Sum::SipHash::Doc::synopsis = $=pod[0].content[4].content.Str;


=begin pod =begin pod
Expand Down
6 changes: 3 additions & 3 deletions t/adler.t
Expand Up @@ -3,7 +3,7 @@ BEGIN { @*INC.unshift: './lib'; }


use Test; use Test;


plan 26; plan 25;


use Sum::Adler; use Sum::Adler;
ok(1,'We use Sum::Adler and we are still alive'); ok(1,'We use Sum::Adler and we are still alive');
Expand Down Expand Up @@ -72,6 +72,6 @@ class sayer {
method print (*@s) { $.accum ~= [~] @s } method print (*@s) { $.accum ~= [~] @s }
} }
my sayer $p .= new(); my sayer $p .= new();
{ temp $*OUT = $p; eval $Sum::Adler::Doc::synopsis; } #{ temp $*OUT = $p; eval $Sum::Adler::Doc::synopsis; }
is $p.accum, $Sum::Adler::Doc::synopsis.comb(/<.after \#\s> (<.ws> <.xdigit>+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works'; #is $p.accum, $Sum::Adler::Doc::synopsis.comb(/<.after \#\s> (<.ws> <.xdigit>+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works';


6 changes: 3 additions & 3 deletions t/md.t
Expand Up @@ -3,7 +3,7 @@ BEGIN { @*INC.unshift: './lib'; }


use Test; use Test;


plan 61; plan 60;


use Sum; use Sum;
use Sum::MD; use Sum::MD;
Expand Down Expand Up @@ -237,6 +237,6 @@ class sayer {
method print (*@s) { $.accum ~= [~] @s } method print (*@s) { $.accum ~= [~] @s }
} }
my sayer $p .= new(); my sayer $p .= new();
{ temp $*OUT = $p; eval $Sum::MD::Doc::synopsis; } #{ temp $*OUT = $p; eval $Sum::MD::Doc::synopsis; }
is $p.accum, $Sum::MD::Doc::synopsis.comb(/<.after \#\s> (<.ws> <.xdigit>+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works'; #is $p.accum, $Sum::MD::Doc::synopsis.comb(/<.after \#\s> (<.ws> <.xdigit>+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works';


6 changes: 3 additions & 3 deletions t/sha.t
Expand Up @@ -3,7 +3,7 @@ BEGIN { @*INC.unshift: './lib'; }


use Test; use Test;


plan 53; plan 52;


use Sum::SHA; use Sum::SHA;
ok 1,'We use Sum::SHA and we are still alive'; ok 1,'We use Sum::SHA and we are still alive';
Expand Down Expand Up @@ -178,5 +178,5 @@ class sayer {
method print (*@s) { $.accum ~= [~] @s } method print (*@s) { $.accum ~= [~] @s }
} }
my sayer $p .= new(); my sayer $p .= new();
{ temp $*OUT = $p; eval $Sum::SHA::Doc::synopsis; } #{ temp $*OUT = $p; eval $Sum::SHA::Doc::synopsis; }
is $p.accum, $Sum::SHA::Doc::synopsis.comb(/<.after \#\s> (<.ws> <.xdigit>+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works'; #is $p.accum, $Sum::SHA::Doc::synopsis.comb(/<.after \#\s> (<.ws> <.xdigit>+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works';
6 changes: 3 additions & 3 deletions t/siphash.t
Expand Up @@ -3,7 +3,7 @@ BEGIN { @*INC.unshift: './lib'; }


use Test; use Test;


plan 71; plan 70;


use Sum::SipHash; use Sum::SipHash;
ok(1,'We use Sum::SipHash and we are still alive'); ok(1,'We use Sum::SipHash and we are still alive');
Expand All @@ -26,8 +26,8 @@ class sayer {
method print (*@s) { $.accum ~= [~] @s } method print (*@s) { $.accum ~= [~] @s }
} }
my sayer $p .= new(); my sayer $p .= new();
{ temp $*OUT = $p; eval $Sum::SipHash::Doc::synopsis; } #{ temp $*OUT = $p; eval $Sum::SipHash::Doc::synopsis; }
is $p.accum, $Sum::SipHash::Doc::synopsis.comb(/<.after \#\s> (<.ws> <.xdigit>+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works'; #is $p.accum, $Sum::SipHash::Doc::synopsis.comb(/<.after \#\s> (<.ws> <.xdigit>+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works';


# These test vectors appear in Aumussen reference C implentation # These test vectors appear in Aumussen reference C implentation


Expand Down
6 changes: 3 additions & 3 deletions t/sum.t
Expand Up @@ -3,7 +3,7 @@ BEGIN { @*INC.unshift: './lib'; }


use Test; use Test;


plan 72; plan 71;


use Sum; use Sum;
ok(1,'We use Sum and we are still alive'); ok(1,'We use Sum and we are still alive');
Expand Down Expand Up @@ -232,5 +232,5 @@ class sayer {
method print (*@s) { $.accum ~= [~] @s } method print (*@s) { $.accum ~= [~] @s }
} }
my sayer $s .= new(); my sayer $s .= new();
{ temp $*OUT = $s; eval $Sum::Doc::synopsis; } #{ temp $*OUT = $s; eval $Sum::Doc::synopsis; }
is $s.accum, $Sum::Doc::synopsis.comb(/<.after \#\s> (<.ws> \d+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works'; #is $s.accum, $Sum::Doc::synopsis.comb(/<.after \#\s> (<.ws> \d+)+/).join("\n") ~ "\n", 'Code in manpage synopsis actually works';

0 comments on commit a5e79d1

Please sign in to comment.