<commit_before>use v6;
use Test;

plan 1;

# test that 'use' imports class names defined in importet packages

BEGIN { @*INC.unshift('t/spec/packages/'); };
use UseTest;

eval_lives_ok 'Stupid::Class.new()', 'can instantiate object of "imported" class';

# vim: ft=perl6<commit_msg>[t/spec] simplify 'use' test to work with current rakudo<commit_after>use v6;
use Test;

plan 1;

# test that 'use' imports class names defined in importet packages

use t::spec::packages::UseTest;

eval_lives_ok 'Stupid::Class.new()', 'can instantiate object of "imported" class';

# vim: ft=perl6
{'fraction_non_alphanumeric': 0.13275862068965516, 'fraction_numerical': 0.010344827586206896, 'mean_word_length': 5.6022727272727275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4413433', 'n_tokens_mistral': 214, 'n_tokens_neox': 203, 'n_words': 65}