<commit_before># $Id$
# Copyright (C) 2001-2007, The Perl Foundation.

package Parrot::Test::Scheme;

# pragmata
use strict;
use warnings;
use 5.008;

use Parrot::Config;
use Parrot::Test;

# Generate output_is(), output_isnt() and output_like() in current package.
Parrot::Test::generate_languages_functions(); 

sub new {
    my $class = shift;
 
    return bless {}, $class;
}


sub get_cd {
    my $self = shift;
    my ( $options ) = @_;

    return $self->{relpath};
}

sub get_lang_fn {
    my $self = shift;
    my ( $count, $options ) = @_;

    return Parrot::Test::per_test( '.scheme', $count );
}


sub get_out_fn {
    my $self = shift;
    my ( $count, $options ) = @_;

    return Parrot::Test::per_test( '.out', $count );
}

sub get_test_prog {
    my $self = shift;
    my ( $count, $options ) = @_;

    my $lang_fn = Parrot::Test::per_test( '.scheme', $count );
    my $pir_fn  = Parrot::Test::per_test( '.pir', $count );

    #return "mzscheme -r languages/$lang_fn";    
    return "$PConfig{perl} languages/scheme/schemec languages/$lang_fn > languages/$pir_fn && ./parrot languages/$pir_fn";
}

# never skip the reference implementation
sub skip_why {
    my $self = shift;
    my ($options) = @_;

    return;
}

1;

# Local Variables:
#   mode: cperl
#   cperl-indent-level: 4
#   fill-column: 100<commit_msg>[t/codingstd] check trailing whitespace in perl language files, not just C. [languages, lib, config] fix up 32 perl source files to pass trailing_space.t<commit_after># $Id$
# Copyright (C) 2001-2007, The Perl Foundation.

package Parrot::Test::Scheme;

# pragmata
use strict;
use warnings;
use 5.008;

use Parrot::Config;
use Parrot::Test;

# Generate output_is(), output_isnt() and output_like() in current package.
Parrot::Test::generate_languages_functions();

sub new {
    my $class = shift;

    return bless {}, $class;
}


sub get_cd {
    my $self = shift;
    my ( $options ) = @_;

    return $self->{relpath};
}

sub get_lang_fn {
    my $self = shift;
    my ( $count, $options ) = @_;

    return Parrot::Test::per_test( '.scheme', $count );
}


sub get_out_fn {
    my $self = shift;
    my ( $count, $options ) = @_;

    return Parrot::Test::per_test( '.out', $count );
}

sub get_test_prog {
    my $self = shift;
    my ( $count, $options ) = @_;

    my $lang_fn = Parrot::Test::per_test( '.scheme', $count );
    my $pir_fn  = Parrot::Test::per_test( '.pir', $count );

    #return "mzscheme -r languages/$lang_fn";
    return "$PConfig{perl} languages/scheme/schemec languages/$lang_fn > languages/$pir_fn && ./parrot languages/$pir_fn";
}

# never skip the reference implementation
sub skip_why {
    my $self = shift;
    my ($options) = @_;

    return;
}

1;

# Local Variables:
#   mode: cperl
#   cperl-indent-level: 4
#   fill-column: 100
{'fraction_non_alphanumeric': 0.15560314061384725, 'fraction_numerical': 0.01284796573875803, 'mean_word_length': 3.3934169278996866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6583574', 'n_tokens_mistral': 1058, 'n_tokens_neox': 981, 'n_words': 265}