Skip to content

Commit ddbea8c

Browse files
committed
:skip-test cleanup for the rest of the Types
1 parent 932b69d commit ddbea8c

39 files changed

+66
-66
lines changed

doc/Type/Cancellation.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Defined as:
2222
2323
Usage:
2424
25-
=begin code :skip-test
26-
CANCELLATION.cancel
25+
=begin code
26+
Cancellation.cancel
2727
=end code
2828
2929
Cancels the scheduled execution of a task before normal completion.

doc/Type/Capture.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
X<|capture literal (Capture)>
88
X<|\() (Capture)>
99
10-
=for code :skip-test
10+
=for code :skip-test<compile time error>
1111
class Capture does Positional does Associative { }
1212
1313
A Capture is a container for passing arguments to a code object. Captures

doc/Type/Cool.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ However, since the set of symbols in a lexical scope is immutable after
14511451
compile time, an EVAL can never introduce symbols into the surrounding
14521452
scope.
14531453
1454-
=for code :skip-test
1454+
=for code :skip-test<compile time error>
14551455
EVAL 'my $lives = 9'; say $lives; # error, $lives not declared
14561456
14571457
Furthermore, the C<EVAL> is evaluated in the current package:

doc/Type/CurrentThreadScheduler.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
=SUBTITLE Scheduler that synchronously executes code on the current thread
66
7-
=for code :skip-test
7+
=for code :skip-test<compile time error>
88
class CurrentThreadScheduler does Scheduler {}
99
1010
C<CurrentThreadScheduler> executes tasks on the current threads. This means

doc/Type/DateTime.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ say $now; # 12:45 (or something like that)
4343
4444
Defined as:
4545
46-
=for code :skip-test
46+
=for code :skip-test<compile time error>
4747
multi method new(Int :$year!, Int :$month = 1, Int :$day = 1,
4848
Int :$hour = 0, Int :$minute = 0, :$second = 0,
4949
Int :$timezone = 0, :&formatter)

doc/Type/IO.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ Use L«C<indir>|/routine/indir» instead.
7070
7171
Defined as:
7272
73-
=for code :skip-test
74-
PROCESS:<&chdir> = sub (IO() $path --> IO::Path:D)
73+
=for code
74+
PROCESS::<&chdir> = sub (IO() $path --> IO::Path:D) { }
7575
7676
Changes value of C<$*CWD> variable to the provided C<$path> and sets
7777
the process's current directory to the value of

doc/Type/IO/ArgFiles.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ Thus the examples above can be simplified like so:
3333
Save one of the variations in a file, say C<argfiles.p6>. Then create
3434
another file (named, say C<sonnet18.txt> with the contents:
3535
36-
=for code :skip-test
36+
=for code :lang<text>
3737
Shall I compare thee to a summer's day?
3838
3939
Running the command
4040
41-
=for code :skip-test
41+
=for code :lang<text>
4242
$ perl6 argfiles.p6 sonnet18.txt
4343
4444
will then give the output
4545
46-
=for code :skip-test
46+
=for code :lang<text>
4747
Shall I compare thee to a summer's day?
4848
4949
As of 6.d language, C<$*ARGFILES> I<inside>

doc/Type/IO/CatHandle.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ L<IO::Handle>, an explicit call to C<.close> is often not necessary on a
114114
CatHandle, as merely exhausting all the input closes all the handles that
115115
need to be closed.
116116
117-
=begin code :skip-test
117+
=begin code :skip-test<compile time error>
118118
with IO::CatHandle.new: @bunch-of-handles {
119119
say .readchars: 42;
120120
.close; # we are done; close all the open handles

doc/Type/IO/Handle.pod6

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ supported:
280280
281281
X<|windows-1252>X<|windows-1251>X<|windows-932>X<|iso-8859-1>X<|ascii>
282282
283-
=for code :skip-test
283+
=for code :lang<text>
284284
utf8
285285
utf16
286286
utf16le
@@ -809,7 +809,7 @@ It's a common idiom to use L«C<LEAVE> phaser|/language/phasers#LEAVE» for
809809
closing the handles, which ensures the handle is closed regardless of how the
810810
block is left.
811811
812-
=begin code :skip-test
812+
=begin code :skip-test<compile time error>
813813
if $do-stuff-with-the-file {
814814
my $fh = open "path-to-file";
815815
LEAVE close $fh;
@@ -855,7 +855,7 @@ Defined as:
855855
Will flush the handle, writing any of the buffered data. Returns C<True>
856856
on success; otherwise, L<fails|/routine/fail> with C<X::IO::Flush>.
857857
858-
=begin code :skip-test
858+
=begin code :skip-test<compile time error>
859859
given "foo".IO.open: :w {
860860
LEAVE .close;
861861
$fh.print: 'something';

doc/Type/IO/Notification.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ X<|FileChanged (FileChangeEvent)>
99
X<|FileRenamed (FileChangeEvent)>
1010
=for code
1111
enum FileChangeEvent (:FileChanged(1), :FileRenamed(2));
12-
=for code :skip-test
12+
=for code :skip-test<compile time error>
1313
class IO::Notification {
1414
class Change {
1515
has $.path;

0 commit comments

Comments
 (0)