Skip to content

Commit

Permalink
Remove now unneccesary references to Test::Util
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed May 20, 2014
1 parent 46c7e56 commit f1b0f1e
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 33 deletions.
2 changes: 0 additions & 2 deletions S02-names-vars/varnames.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ eval_dies_ok 'my $f!ao = "beh";', "normal varnames can't have ! in their name";
eval_dies_ok 'my $fo:o::b:ar = "bla"', "var names can't have colons in their names either";

{
use lib 't/spec/packages';
use Test::Util;
throws_like "my Int a = 10;", X::Syntax::Malformed, message => / sigilless /;
throws_like "my Int a;", X::Syntax::Malformed, message => / sigilless /;
throws_like "my a = 10;", X::Syntax::Malformed, message => / sigilless /;
Expand Down
2 changes: 0 additions & 2 deletions S02-types/array.t
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,6 @@ my @array2 = ("test", 1, Mu);
#?pugs skip 'Test Util parsefail'
#?DOES 8
{
use lib "t/spec/packages";
use Test::Util;
throws_like 'my @a = 1..*; @a[Inf] = "dog"', X::Item, index => Inf, aggregate => 1..*;
throws_like 'my @a = 1..*; @a[NaN] = "cat"', X::Item, index => NaN, aggregate => 1..*;
}
Expand Down
2 changes: 0 additions & 2 deletions S03-operators/range-basic.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use v6;

use Test;
use lib 't/spec/packages';
use Test::Util;

plan 140;

Expand Down
2 changes: 0 additions & 2 deletions S04-statements/repeat.t
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ plan 19;
#?pugs skip 'Test Util parsefail'
#?DOES 3
{
use lib "t/spec/packages";
use Test::Util;
throws_like 'repeat { "but I myself" }', X::Syntax::Missing, what => '"while" or "until"';
}

Expand Down
2 changes: 0 additions & 2 deletions S05-metasyntax/unknown.t
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ lives_ok({"aa!" ~~ /'a'/}, 'quoted "a" is valid');
#?niecza skip "throws_like"
#?DOES 3
{
use lib 't/spec/packages';
use Test::Util;
throws_like '$_ = "0"; s/-/1/', X::Syntax::Regex::UnrecognizedMetachar, metachar => '-';
}

Expand Down
3 changes: 0 additions & 3 deletions S05-substitution/subst.t
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,6 @@ is '12'.subst(/(.)(.)/,{$()*2}),'24', '.. and do nifty things in closures';
#?niecza skip 'Unable to resolve method postcircumfix:<( )> in type Any'
#?DOES 3
{
use lib "t/spec/packages";
use Test::Util;

$_ = "foo"; s[f] = 'bar';
is $_, "baroo", 's[f] is parsed as a substitution op';
throws_like q{$_ = "foo"; s[] = "bar";}, X::Syntax::Regex::NullRegex;
Expand Down
3 changes: 0 additions & 3 deletions S06-macros/unquoting.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
use v6;

use lib 't/spec/packages';
use Test::Util;

use Test;
plan 5;

Expand Down
2 changes: 0 additions & 2 deletions S11-modules/import-multi.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use v6;
use Test;
use lib 't/spec/packages';
use Test::Util;

plan 17;

Expand Down
2 changes: 0 additions & 2 deletions S11-modules/import.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use v6;
use Test;
use lib 't/spec/packages';
use Test::Util;
plan 16;

# L<S11/Importing without loading>
Expand Down
2 changes: 0 additions & 2 deletions S12-introspection/meta-class.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ eval_lives_ok "True.HOW.say", "can output the .gist of a .HOW";

# RT #114130
{
use lib "t/spec/packages";
use Test::Util;
throws_like 'Any.HOW(Foo)', X::Syntax::Argument::MOPMacro;
}

Expand Down
2 changes: 0 additions & 2 deletions S12-methods/private.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use v6;
use Test;
use lib 't/spec/packages';
use Test::Util;

plan 12;

Expand Down
3 changes: 0 additions & 3 deletions S17-supply/migrate.t
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
use v6;
use lib 't/spec/packages';

use Test;
use Test::Util;

plan 23;

#?rakudo.jvm todo "D: doesn't work in signatures"
Expand Down
2 changes: 0 additions & 2 deletions S32-array/create.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ is($array_obj, list(4, 5, 6), 'The list object contains the right values.');
is(+$array_obj, 3, 'Finding the length functions properly.');

{
use lib "t/spec/packages";
use Test::Util;
ok +Array[Int].new(1, 2, 3, 4), "typed array";
throws_like(q{ Array[Int].new(1, 2, "Foo") }, X::TypeCheck);
throws_like(q{ Array[Str].new(1, 2, "Foo") }, X::TypeCheck);
Expand Down
2 changes: 0 additions & 2 deletions S32-exceptions/misc.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use v6;
use Test;
use lib 't/spec/packages';
use Test::Util;

#?DOES 1
throws_like { Buf.new().Str }, X::Buf::AsStr, method => 'Str';;
Expand Down
2 changes: 0 additions & 2 deletions S32-num/rand.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use v6;

use Test;
use lib 't/spec/packages';
use Test::Util;

plan 113;

Expand Down

0 comments on commit f1b0f1e

Please sign in to comment.