Skip to content

Instantly share code, notes, and snippets.

@JJ
Created November 1, 2018 12: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 JJ/750c8d8c75239a1a0f411763d0aa265a to your computer and use it in GitHub Desktop.
Save JJ/750c8d8c75239a1a0f411763d0aa265a to your computer and use it in GitHub Desktop.
Compilation test for Mathx::Stat

Created this test file

use v6;
use Test;
use-ok 'Mathx::Stat::Probability';

Run with

perl6 -Ilib t/use.t

Produces this error:

not ok 1 - Mathx::Stat::Probability module can be use-d ok
# Failed test 'Mathx::Stat::Probability module can be use-d ok'
# at t/use.t line 5
# ===SORRY!=== Error while compiling /tmp/Mathx-Stat/lib/Mathx/Stat/Probability.pm6 (Mathx::Stat::Probability)
# Undeclared name:
#     DistributionPopulation used at line 11
# Undeclared routine:
#     new used at line 11 (in Perl 6 please use method call syntax instead)
# 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment