-
-
Save lucasbuchala/64267c60b798047145c80561334c3cd5 to your computer and use it in GitHub Desktop.
Acme::Gistribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Acme::Gistribution | |
zef install Acme::Gistribution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl6 | |
use v6; | |
use Acme::Gistribution; | |
hello; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit module Acme::Gistribution::Example; | |
our sub is-example is export { True } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit module Acme::Gistribution; | |
our sub answer is export { 42 } | |
our sub what is export { 'This is Acme::Gistribution' } | |
our sub hello is export { say what } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"perl" : "6.*", | |
"name" : "Acme::Gistribution", | |
"version" : "0.0.1", | |
"description" : "A Perl 6 test distribution in a GitHub Gist", | |
"authors" : [ "Lucas Buchala" ], | |
"license" : "Artistic-2.0", | |
"provides" : { "Acme::Gistribution" : "Gistribution.pm", | |
"Acme::Gistribution::Example" : "Example.pm" }, | |
"depends" : [], | |
"build-depends" : [], | |
"source-url" : "https://gist.github.com/64267c60b798047145c80561334c3cd5.git" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
use Test; | |
use Acme::Gistribution; | |
use Acme::Gistribution::Example; | |
pass 'start testing'; | |
is answer, 42, 'right answer'; | |
ok is-example, 'is example'; | |
done-testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment