../snippets13.t align21.def
../snippets13.t align22.def
../snippets13.t align23.def
+../snippets13.t align24.def
+../snippets13.t align25.def
+../snippets13.t align26.def
+../snippets13.t align27.def
+../snippets14.t else1.def
+../snippets14.t else2.def
../snippets2.t angle.def
../snippets2.t arrows1.def
../snippets2.t arrows2.def
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
-../snippets13.t align24.def
-../snippets13.t align25.def
-../snippets13.t align26.def
-../snippets13.t align27.def
-../snippets14.t else1.def
-../snippets14.t else2.def
+../snippets14.t ternary3.def
# Contents:
#1 else1.def
#2 else2.def
+#3 ternary3.def
# To locate test #13 you can search for its name or the string '#13'
# no pad after 'if' when followed by 'else'
if ( $m = $g[$x][$y] ) { print $$m{v}; $$m{i}->() }
else { print " " }
+----------
+
+ 'ternary3' => <<'----------',
+# this previously caused trouble because of the = and =~
+push( @aligns,
+ ( ( $a = shift @a ) =~ /[^n]/ ) ? $a
+ : (@isnum) ? 'n'
+ : 'l' )
+ unless $opt_a;
+
----------
};
else { print " " }
#2...........
},
+
+ 'ternary3.def' => {
+ source => "ternary3",
+ params => "def",
+ expect => <<'#3...........',
+# this previously caused trouble because of the = and =~
+push(
+ @aligns,
+ ( ( $a = shift @a ) =~ /[^n]/ ) ? $a
+ : (@isnum) ? 'n'
+ : 'l'
+) unless $opt_a;
+
+#3...........
+ },
};
my $ntests = 0 + keys %{$rtests};