Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save notbenh/438258 to your computer and use it in GitHub Desktop.
Save notbenh/438258 to your computer and use it in GitHub Desktop.
Seems that describe and q{} **DO NOT** get along at all.
The following test...
<code>
package Test::Action::DescribeBareWord;
use strict;
use warnings;
use Carp::Always;
use Fennec;
describe q{feature} {
it q{will work} {
ok(1, 'HUZZA!');
}
}
1;
</code>
... fails with this error ...
<code>
/view/t/Fennec.t ..
Starting file (1/1) t/Action/DescribeBareWord.pm
----------------------------------------
# ** Reproduce this test order with this environment variable:
# ** FENNEC_SEED='40977'
not ok 0001 [0.0433] - /home/benh/git/ext/Fennec/t/Action/DescribeBareWord.pm
# Test failure at /home/benh/git/ext/Fennec/t/Action/DescribeBareWord.pm
# Bareword "feature" not allowed while "strict subs" in use at /usr/local/share/perl/5.10.1/Fennec/FileType/Module.pm line 25
Fennec::FileType::Module::load_file('Fennec::FileType::Module=ARRAY(0x8a113c0)', '/home/benh/git/ext/Fennec/t/Action/DescribeBareWord.pm') called at /usr/local/share/perl/5.10.1/Fennec/FileType.pm line 36
Fennec::FileType::load('Fennec::FileType::Module=ARRAY(0x8a113c0)') called at /usr/local/share/perl/5.10.1/Fennec/Runner.pm line 97
Fennec::Runner::_init_file('Fennec::Runner=HASH(0x8c46e70)', 'Fennec::FileType::Module=ARRAY(0x8a113c0)') called at /usr/local/share/perl/5.10.1/Fennec/Runner.pm line 66
Fennec::Runner::__ANON__() called at /usr/local/share/perl/5.10.1/Try/Tiny.pm line 71
eval {...} called at /usr/local/share/perl/5.10.1/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x8bcf9a0)', 'Try::Tiny::Catch=REF(0x87e8838)') called at /usr/local/share/perl/5.10.1/Fennec/Runner.pm line 89
Fennec::Runner::_test_thread('Fennec::Runner=HASH(0x8c46e70)', 'Fennec::FileType::Module=ARRAY(0x8a113c0)') called at /usr/local/share/perl/5.10.1/Fennec/Runner.pm line 54
Fennec::Runner::__ANON__() called at /usr/local/share/perl/5.10.1/Parallel/Runner.pm line 76
Parallel::Runner::_fork('Parallel::Runner=HASH(0x8a1ebf8)', 'CODE(0x8c0e0f0)', 0) called at /usr/local/share/perl/5.10.1/Parallel/Runner.pm line 43
Parallel::Runner::run('Parallel::Runner=HASH(0x8a1ebf8)', 'CODE(0x8c0e0f0)', 1) called at /usr/local/share/perl/5.10.1/Fennec/Runner.pm line 55
Fennec::Runner::run_tests('Fennec::Runner=HASH(0x8c46e70)') called at /view/t/Fennec.t line 24
1..1
Failed 1/1 subtests
Test Summary Report
-------------------
/view/t/Fennec.t (Wstat: 0 Tests: 1 Failed: 1)
Failed test: 0001
Files=1, Tests=1, 1 wallclock secs ( 0.03 usr 0.00 sys + 0.20 cusr 0.02 csys = 0.25 CPU)
Result: FAIL
shell returned 1
</code>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment