Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:rakudo/rakudo
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Mar 22, 2009
2 parents 351793a + 1d2451d commit 637767b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
7 changes: 0 additions & 7 deletions Test.pm
Expand Up @@ -22,13 +22,6 @@ our $testing_started;

## test functions

# Compare numeric values with approximation
sub approx ($x, $y) {
my $epsilon = 0.00001;
my $diff = abs($x - $y);
($diff < $epsilon);
}

# you can call die_on_fail; to turn it on and die_on_fail(0) to turn it off
sub die_on_fail($fail=1) {
$die_on_fail = $fail;
Expand Down
9 changes: 6 additions & 3 deletions src/setting/Any-str.pm
Expand Up @@ -46,7 +46,10 @@ class Any is also {
my $s = ~self;
if $delimiter eq '' {
return gather {
take $s.substr($_, 1) for 0 .. $s.chars - 1;
take $s.substr($_, 1) for 0 .. ($s.chars - 1 min $l - 2);
if $l <= $s.chars {
take $s.substr($l - 1 );
};
}
}
return gather {
Expand Down Expand Up @@ -93,8 +96,8 @@ class Any is also {
}
sub split($delimiter, $target) {
$target.split($delimiter);
sub split($delimiter, $target, $limit = *) {
$target.split($delimiter, $limit);
}
# TODO: '$filename as Str' once support for that is in place
Expand Down
2 changes: 2 additions & 0 deletions src/setting/Match.pm
Expand Up @@ -12,6 +12,8 @@ class Match is also {
take " # and for debugging purposes only\n";
}
take $sp;
take "ast => {$.ast.perl},\n";
take $sp;
take "text => {$.text.perl},\n";
take $sp;
take "from => $.from,\n";
Expand Down
1 change: 1 addition & 0 deletions t/spectest.data
Expand Up @@ -215,6 +215,7 @@ S09-subscript_slice/slice.t
S10-packages/import.t
S10-packages/use-with-class.t
S11-modules/export.t
S11-modules/nested.t
S12-attributes/class2.t
S12-attributes/class.t
S12-attributes/clone.t
Expand Down

0 comments on commit 637767b

Please sign in to comment.