Skip to content

Commit

Permalink
fix parsing of *.pmc file, by adding a C startcomment
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Mar 23, 2009
1 parent 4a8ed6d commit 79b14fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pmc/eclectusboolean.pmc
Expand Up @@ -43,6 +43,7 @@ Return the string "boolean".
return Parrot_str_new_constant(INTERP, "EclectusBool");
}

/*

=item C<STRING* get_string()>

Expand Down
8 changes: 8 additions & 0 deletions t/pmc/boolean.t
Expand Up @@ -38,6 +38,14 @@ Tests C<EclectusBoolean> PMC.
false = new 'EclectusBoolean'
false = 0

.local string s1
s1 = false
say false
say true
say s1
s1 = true
say s1

is(true, 1, "true EclectusBoolean is 1")
is(false, 0, "false EclectusBoolean is 0")

Expand Down

0 comments on commit 79b14fd

Please sign in to comment.