Skip to content

Commit

Permalink
Move the scheme based tests into t/scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Feb 8, 2009
1 parent 6b41b34 commit 6162ceb
Show file tree
Hide file tree
Showing 19 changed files with 16 additions and 12 deletions.
14 changes: 9 additions & 5 deletions driver_nqp.pir
@@ -1,10 +1,7 @@
# The dynamics PMCs used by Eclectus are loaded
.loadlib 'eclectus_group'

# for devel
.include 'library/dumper.pir'

.namespace []
.namespace ['Eclectus']

.sub '__onload' :init
load_bytecode 'PGE.pbc'
Expand All @@ -14,6 +11,13 @@
load_bytecode 'PCT.pbc'

load_bytecode 'languages/eclectus/src/builtins/all.pbc'

# The dynamics PMCs used by Eclectus are loaded
loadlib $P1, 'pair'
_dumper( 'p1', $P1 )
loadlib $P1, 'eclectus_group'
_dumper( 'p1', $P1 )

.end


Expand Down Expand Up @@ -58,7 +62,7 @@


.sub '__initconst' :init
$P0 = new 'EclectusBoolean'
$P0 = new [ 'EclectusBoolean' ]
$P0 = 1
set_root_global ['_eclectus'], '#t', $P0
$P0 = new 'EclectusBoolean'
Expand Down
2 changes: 1 addition & 1 deletion t/harness
Expand Up @@ -33,7 +33,7 @@ use Parrot::Test::Harness
? [ 'csi', '-R', 'alexpander', '-i', '-k', 'none', '-I', 'riaxpander',
'-e', '(load "chicken/prelude.scm")', '-s' ]
: [ 'gosh', '-fcase-fold', '-I', '.', '-I', 'riaxpander', '-l', 'gauche/prelude.scm' ],
files => [ 't/*.t' ];
files => [ 't/scheme/*.t' ];

=head1 SEE ALSO

Expand Down
12 changes: 6 additions & 6 deletions t/pmc/boolean.t
Expand Up @@ -12,11 +12,11 @@ t/pmc/boolean.t - Boolean PMC

=head1 DESCRIPTION

Tests C<PhpBoolean> PMC.
Tests C<EclectusBoolean> PMC.

=cut

.loadlib "php_group"
.loadlib "eclectus_group"

.sub 'main' :main
.include "include/test_more.pir"
Expand All @@ -28,14 +28,14 @@ Tests C<PhpBoolean> PMC.
.sub truth_tests
.local pmc true, false

true = new 'PhpBoolean'
true = new 'EclectusBoolean'
true = 1

false = new 'PhpBoolean'
false = new 'EclectusBoolean'
false = 0

is(true, 1, "true PhpBoolean is 1")
is(false, "", "false PhpBoolean is empty")
is(true, 1, "true EclectusBoolean is 1")
is(false, "", "false EclectusBoolean is empty")
.end

# Local Variables:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6162ceb

Please sign in to comment.