--- /dev/null
+# test sub split_pretoken
+my $bb = $^? ? "defined" : "not defined";
+my $aa = $^ if ($bb);
+my $yes = $^O eq "linux";
+my $no = $^O ne "linux";
+my $val = %^O;
+$str0 = 'hi' . 's' x 10 if (1);
+$str1 = 'merci' x 0.1e4 . $str0;
+$str2 = 'hi' . 's' x 10.2 . 'you';
+$str2 = 'hi' . 's' x 0.1e1;
+$str3 = 'tak' x 0 if ('bad');
../snippets24.t rt136417.rt136417
../snippets24.t numbers.def
../snippets24.t code_skipping.def
+../snippets24.t git51.def
+../snippets24.t git51.git51
../snippets3.t ce_wn1.ce_wn
../snippets3.t ce_wn1.def
../snippets3.t colin.colin
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
-../snippets24.t git51.def
-../snippets24.t git51.git51
+../snippets24.t pretok.def
--- /dev/null
+# test sub split_pretoken
+my $bb=$^??"defined":"not defined";
+my $aa=$^if($bb);
+my $yes=$^Oeq"linux";
+my $no=$ ^One"linux";
+my $val=% ^O;
+$str0='hi'.'s'x10if(1);
+$str1='merci'x0.1e4.$str0;
+$str2='hi'.'s'x10.2.'you';
+$str2='hi'.'s'x0.1e1;
+$str3='tak'x0if('bad');
#16 code_skipping.def
#17 git51.def
#18 git51.git51
+#19 pretok.def
# To locate test #13 you can search for its name or the string '#13'
0o12_345, # optional 'o' and 'O' added in perl v5.33.5
0O12_345,
);
+----------
+
+ 'pretok' => <<'----------',
+# test sub split_pretoken
+my $bb=$^??"defined":"not defined";
+my $aa=$^if($bb);
+my $yes=$^Oeq"linux";
+my $no=$ ^One"linux";
+my $val=% ^O;
+$str0='hi'.'s'x10if(1);
+$str1='merci'x0.1e4.$str0;
+$str2='hi'.'s'x10.2.'you';
+$str2='hi'.'s'x0.1e1;
+$str3='tak'x0if('bad');
----------
'rt136417' => <<'----------',
);
#18...........
},
+
+ 'pretok.def' => {
+ source => "pretok",
+ params => "def",
+ expect => <<'#19...........',
+# test sub split_pretoken
+my $bb = $^? ? "defined" : "not defined";
+my $aa = $^ if ($bb);
+my $yes = $^O eq "linux";
+my $no = $^O ne "linux";
+my $val = %^O;
+$str0 = 'hi' . 's' x 10 if (1);
+$str1 = 'merci' x 0.1e4 . $str0;
+$str2 = 'hi' . 's' x 10.2 . 'you';
+$str2 = 'hi' . 's' x 0.1e1;
+$str3 = 'tak' x 0 if ('bad');
+#19...........
+ },
};
my $ntests = 0 + keys %{$rtests};