| 1 | use libscip-perl cpan Perl-Tidy-Sweetened 1.20 lib/ 't/lib'; |
| 2 | use Test::Morescip-perl cpan Perl-Tidy-Sweetened 1.20 Test/More/; |
| 3 | use TidierTestsscip-perl cpan Perl-Tidy-Sweetened 1.20 TidierTests/; |
| 4 | |
| 5 | run_testscip-perl cpan Perl-Tidy-Sweetened 1.20 main/run_test().( <<'RAW', <<'TIDIED', 'Annonymouns function', '', ); |
| 6 | my $code = async sub { return 456 }; |
| 7 | RAW |
| 8 | my $code = async sub { return 456 }; |
| 9 | TIDIED |
| 10 | |
| 11 | run_testscip-perl cpan Perl-Tidy-Sweetened 1.20 main/run_test().( <<'RAW', <<'TIDIED', 'Async function', '', ); |
| 12 | async sub do_a_thing |
| 13 | { |
| 14 | my $first = await do_first_thing(); |
| 15 | return $first; |
| 16 | } |
| 17 | RAW |
| 18 | async sub do_a_thing { |
| 19 | my $first = await do_first_thing(); |
| 20 | return $first; |
| 21 | } |
| 22 | TIDIED |
| 23 | |
| 24 | done_testing; |