Skip to content

Instantly share code, notes, and snippets.

@lucasbuchala
Last active November 19, 2018 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucasbuchala/64267c60b798047145c80561334c3cd5 to your computer and use it in GitHub Desktop.
Save lucasbuchala/64267c60b798047145c80561334c3cd5 to your computer and use it in GitHub Desktop.
Acme::Gistribution
Acme::Gistribution
zef install Acme::Gistribution
#!/usr/bin/env perl6
use v6;
use Acme::Gistribution;
hello;
unit module Acme::Gistribution::Example;
our sub is-example is export { True }
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 }
{
"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"
}
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