Skip to content
Browse files

Tests for spaces inside user-defined circumfixes.

  • Loading branch information...
1 parent 6e76108 commit 0f3284cd221b3bc1f10cbcf3bdaf3d8b567790a0 @jnthn jnthn committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 S06-operator-overloading/sub.t
View
4 S06-operator-overloading/sub.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 68;
+plan 70;
=begin pod
@@ -294,9 +294,11 @@ Testing operator overloading subroutines
{
sub circumfix:<<` `>>(*@args) { @args.join('-') }
is `3, 4, "f"`, '3-4-f', 'slurpy circumfix:<<...>> works';
+ is ` 3, 4, "f" `, '3-4-f', 'slurpy circumfix:<<...>> works, allows spaces';
sub circumfix:<⌊ ⌋>($e) { $e.floor }
ispi⌋, 3, 'circumfix with non-Latin1 bracketing characters';
+ ispi ⌋, 3, 'circumfix with non-Latin1 bracketing characters, allows spaces';
}
{

0 comments on commit 0f3284c

Please sign in to comment.
Something went wrong with that request. Please try again.