Skip to content

Commit b2578e1

Browse files
committed
Define minimal preamble instead of skipping compilation test
1 parent 35f0784 commit b2578e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/typesystem.pod6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,14 +782,14 @@ Returns the list of enum-pairs. Works both on the enum type and any key.
782782
783783
Returns the key of an enum-pair.
784784
785-
=for code :skip-test
785+
=for code :preamble<<enum Mass<g> >>
786786
say g.key; # OUTPUT: «g␤»
787787
788788
=head4 method value
789789
790790
Returns the value of an enum-pair.
791791
792-
=for code :skip-test
792+
=for code :preamble<<enum Mass<g> >>
793793
say g.value; # OUTPUT: «1␤»
794794
795795
=head4 method pair
@@ -801,7 +801,7 @@ method pair(::?CLASS:D:)
801801
802802
Returns a C<Pair> of the enum-pair.
803803
804-
=for code :skip-test
804+
=for code :preamble<<enum Mass<g> >>
805805
say g.pair; # OUTPUT: «g => 1␤»
806806
807807
=head4 method kv
@@ -813,7 +813,7 @@ multi method kv(::?CLASS:D:)
813813
814814
Returns a list with key and value of the enum-pair.
815815
816-
=for code :skip-test
816+
=for code :preamble<<enum Mass<g> >>
817817
say g.kv; # OUTPUT: «(g 1)␤»
818818
819819
=head3 Coercion

0 commit comments

Comments
 (0)