Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
niecza fudging
  • Loading branch information
coke committed Oct 5, 2011
1 parent 18c3485 commit 2f1dec0
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions S02-literals/string-interpolation.t
Expand Up @@ -46,6 +46,7 @@ line 4
}

#?rakudo skip 'RT #73144'
#?niecza skip 'System.InvalidCastException: Cannot cast from source type to destination type.'
{
is 'something'.new, '', '"string literal".new just creates an empty string';
}
Expand Down
2 changes: 2 additions & 0 deletions S02-types/array.t
Expand Up @@ -205,6 +205,7 @@ my @array2 = ("test", 1, Mu);
}

# RT #76676
#?niecza todo
{
is ~<a b>.[^10], 'a b', 'Range subscript as rvalues clip to existing elems';
}
Expand Down Expand Up @@ -313,6 +314,7 @@ my @array2 = ("test", 1, Mu);
}

# RT #79270
#?niecza todo
{
my @a = <a b c>;
@a[0 ..^ *-1] >>~=>> "x";
Expand Down
2 changes: 1 addition & 1 deletion S02-types/whatever.t
Expand Up @@ -147,11 +147,11 @@ is (0,0,0,0,0,0) >>+>> ((1,2) xx *), <1 2 1 2 1 2>, 'xx * works';
# L<S02/Currying of Unary and Binary Operators/This rewrite happens after variables are looked up
# in their lexical scope>

#?niecza todo
{
my $x = 3;
{
#?rakudo todo '* and lexicals'
#?niecza todo
is (* + (my $x = 5)).(8), 40,
'can use a declaration in Whatever-curried expression';
is $x, 5, 'and it did not get promoted into its own scope';
Expand Down
1 change: 1 addition & 0 deletions S03-metaops/cross.t
Expand Up @@ -108,6 +108,7 @@ is (<a b> X <c d> X < e f>).join(','),
'cross works with three lists';

#?rakudo todo 'RT 74072'
#?niecza todo
is ([1,2] X~ <a b>), '1 2a1 2b', '[] does not flatten';

# vim: ft=perl6
2 changes: 1 addition & 1 deletion S03-operators/range.t
Expand Up @@ -112,13 +112,13 @@ is (<c b a> Z 1..5).join('|'), 'c|1|b|2|a|3', 'Ranges and infix:<Z>';
# two ranges
is (1..6 Z 'a' .. 'c').join, '1a2b3c', 'Ranges and infix:<Z>';

#?niecza todo
{
# Test with floats
# 2006-12-05:
# 16:16 <TimToady> ~(1.9 ^..^ 4.9) should produce 2.9, 3.9
# 16:17 <pmichaud> and ~(1.9 ^..^ 4.5) would produce the same?
# 16:17 <TimToady> yes
#?niecza 16 todo
is ~(1.1 .. 4) , "1.1 2.1 3.1", "range with float .min";
is ~(1.9 .. 4) , "1.9 2.9 3.9", "range with float .min";
is ~(1.1 ^.. 4), "2.1 3.1" , "bottom exclusive range of float";
Expand Down
2 changes: 1 addition & 1 deletion S05-grammar/action-stubs.t
Expand Up @@ -104,7 +104,7 @@ is $action.calls, 'ab', '... and in the right order';
}
}

#?niecza 2 todo
#?niecza todo
is ActionsTestGrammar.parse("ab\ncd", :actions(TestActions.new)).ast, 123,
'Can call Str.subst in an action method without any trouble';
# RT #78510
Expand Down
1 change: 1 addition & 0 deletions S06-other/misc.t
Expand Up @@ -10,4 +10,5 @@ sub a () { my $a=4; }; #zero-arg sub to test the underlying problem #OK not us

eval_dies_ok 'e("wtz")', "e should not be defined to accept arguments";
eval_dies_ok 'pi("wtz")',"pi should not be defined to accept arguments either :) ";
#?niecza skip 'Excess arguments to MAIN a, used 0 of 1 positionals'
nok eval('a(3)'), "this should die, no arguments defined";
1 change: 1 addition & 0 deletions S06-signature/errors.t
Expand Up @@ -18,6 +18,7 @@ eval_dies_ok 'sub quuux ($?VERSION) { ... }',
eval_lives_ok 'sub quuuux ($!) { ... }', 'but $! is OK';

# RT #64344
#?niecza skip 'Excess arguments to MAIN empty_sig, used 0 of 1 positionals'
{
sub empty_sig() { return };
nok eval('empty_sig("RT #64344")'),
Expand Down
1 change: 1 addition & 0 deletions S06-signature/optional.t
Expand Up @@ -85,6 +85,7 @@ eval_dies_ok 'sub opt($a = 1, $b) { }',
'Cannot put required parameter after optional parameters';

# RT #74758
#?niecza skip 'Nominal type check failed in binding Int $x = "str"'
{
sub opt-type1(Int $x?) { $x };
ok opt-type1() === Int,
Expand Down
1 change: 1 addition & 0 deletions S06-traits/is-rw.t
Expand Up @@ -17,6 +17,7 @@ plan 7;
is foo($bar), 19, "calling a sub with an is rw param";
is $bar, 42, "sub changed our variable";
# RT #74830
#?niecza skip 'Binding $a is rw in MAIN foo, cannot bind read-only value to is rw parameter'
nok eval('foo(28)'), 'is rw requires a variable';
}

Expand Down

0 comments on commit 2f1dec0

Please sign in to comment.