<commit_before>#!perl

# Copyright (C) 2006-2007, The Perl Foundation.
# $Id$

use strict;
use warnings;
use lib qw(t . lib ../lib ../../lib ../../../lib);
use Parrot::Test tests => 4;
use Test::More;

language_output_is( 'punie', <<'CODE', <<'OUT', 'a do block' );
do{
    print "ok 7\n";
    print "ok 8\n";
    print "ok 9\n";
};
CODE
ok 7
ok 8
ok 9
OUT

TODO: {
    local $TODO = 'unimplemented feature';

language_output_is( 'punie', <<'CODE', <<'OUT', 'sub call with no arguments' );
sub foobar {
    print "ok 10\n";
}

do foobar();
CODE
ok 10
OUT

language_output_is( 'punie', <<'CODE', <<'OUT', 'sub call with one argument' );
sub foobar {
    $x = $_[0];
    print $x, "\n";
    print "ok 11\n";
}

do foobar(5);
CODE
5
ok 11<commit_msg>[punie]: sub calls with no args now work<commit_after>#!perl

# Copyright (C) 2006-2007, The Perl Foundation.
# $Id$

use strict;
use warnings;
use lib qw(t . lib ../lib ../../lib ../../../lib);
use Parrot::Test tests => 4;
use Test::More;

language_output_is( 'punie', <<'CODE', <<'OUT', 'a do block' );
do{
    print "ok 7\n";
    print "ok 8\n";
    print "ok 9\n";
};
CODE
ok 7
ok 8
ok 9
OUT

language_output_is( 'punie', <<'CODE', <<'OUT', 'sub call with no arguments' );
sub foobar {
    print "ok 10\n";
}

do foobar();
CODE
ok 10
OUT

TODO: {
    local $TODO = 'unimplemented feature';

language_output_is( 'punie', <<'CODE', <<'OUT', 'sub call with one argument' );
sub foobar {
    $x = $_[0];
    print $x, "\n";
    print "ok 11\n";
}

do foobar(5);
CODE
5
ok 11
{'fraction_non_alphanumeric': 0.20184089414858647, 'fraction_numerical': 0.03418803418803419, 'mean_word_length': 3.1135135135135137, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 5, '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': '7428510', 'n_tokens_mistral': 674, 'n_tokens_neox': 603, 'n_words': 206}