| 1 | perl -MMath::Combinatorics=combine -MData::Dumper -e my @data = (qw(Moose::Object Point Point3D)); warn Dumper(map { combine($_, @data) } 0 .. @data) | ||
| 2 | |||
| 3 | test is a subclass of MX::Compile::Test | ||
| 4 | |||
| 5 | |||
| 6 | setup { | ||
| 7 | make a tempdir | ||
| 8 | |||
| 9 | compile next combination into the tempdir | ||
| 10 | |||
| 11 | verify that things have actually been compiled | ||
| 12 | } | ||
| 13 | |||
| 14 | sub run { | ||
| 15 | $^X -I tmpdir $actual_test_file @compiled_classes; # the list of compiled classes is used in the test file to check whether or not Moose has been loaded | ||
| 16 | renunmber tap | ||
| 17 | } | ||
| 18 | |||
| 19 | teardown { | ||
| 20 | remove tempdir; | ||
| 21 | } | ||
| 22 | |||
| 23 |