--- /dev/null
+# should not get alignment here:
+my $c_sub_khwnd = WindowFromId $k_hwnd, 0x8008; # FID_CLIENT
+ok $c_sub_khwnd, 'have kids client window';
+ok IsWindow($c_sub_khwnd), 'IsWindow works on the client';
--- /dev/null
+# should not get alignment here:
+my $c_sub_khwnd = WindowFromId $k_hwnd, 0x8008; # FID_CLIENT
+ok $c_sub_khwnd, 'have kids client window';
+ok IsWindow($c_sub_khwnd), 'IsWindow works on the client';
# -iscl will not allow alignment of hanging side comments (currently)
- $gsmatch = ( $sub >= 50 ) ? "equal" : "lequal"; # Force an equal match for
- # dev, but be more forgiving
- # for releases
+ $gsmatch = ( $sub >= 50 ) ? "equal" : "lequal"; # Force an equal match for
+ # dev, but be more forgiving
+ # for releases
--- /dev/null
+# some side comments
+*{"${callpkg}::$sym"} = $type eq '&' ? \&{"${pkg}::$sym"} #
+ : $type eq '$' ? \${"${pkg}::$sym"} #
+ : $type eq '@' ? \@{"${pkg}::$sym"}
+ : $type eq '%' ? \%{"${pkg}::$sym"} # side comment
+ : $type eq '*' ? *{"${pkg}::$sym"} #
+ : do { require Carp; Carp::croak("Can't export symbol: $type$sym") };
../snippets17.t pbp6.pbp
../snippets17.t bos.bos
../snippets17.t bos.def
+../snippets17.t long_line.def
+../snippets17.t long_line.long_line
../snippets2.t angle.def
../snippets2.t arrows1.def
../snippets2.t arrows2.def
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
-../snippets17.t long_line.def
-../snippets17.t long_line.long_line
+../snippets17.t align32.def
+../snippets17.t ternary4.def
--- /dev/null
+# some side comments
+*{"${callpkg}::$sym"} =
+ $type eq '&' ? \&{"${pkg}::$sym"} #
+ : $type eq '$' ? \${"${pkg}::$sym"} #
+ : $type eq '@' ? \@{"${pkg}::$sym"}
+ : $type eq '%' ? \%{"${pkg}::$sym"} # side comment
+ : $type eq '*' ? *{"${pkg}::$sym"} #
+ : do { require Carp; Carp::croak("Can't export symbol: $type$sym") };
#13 bos.def
#14 long_line.def
#15 long_line.long_line
+#16 align32.def
+#17 ternary4.def
# To locate test #13 you can search for its name or the string '#13'
############################
$rsources = {
+ 'align32' => <<'----------',
+# should not get alignment here:
+my $c_sub_khwnd = WindowFromId $k_hwnd, 0x8008; # FID_CLIENT
+ok $c_sub_khwnd, 'have kids client window';
+ok IsWindow($c_sub_khwnd), 'IsWindow works on the client';
+----------
+
'bos' => <<'----------',
$top_label->set_text( gettext("check permissions.") )
;
};
----------
+ 'ternary4' => <<'----------',
+# some side comments
+*{"${callpkg}::$sym"} =
+ $type eq '&' ? \&{"${pkg}::$sym"} #
+ : $type eq '$' ? \${"${pkg}::$sym"} #
+ : $type eq '@' ? \@{"${pkg}::$sym"}
+ : $type eq '%' ? \%{"${pkg}::$sym"} # side comment
+ : $type eq '*' ? *{"${pkg}::$sym"} #
+ : do { require Carp; Carp::croak("Can't export symbol: $type$sym") };
+----------
+
'wn7' => <<'----------',
# do not weld paren to opening one-line non-paren container
$Self->_Add($SortOrderDisplay{$Field->GenerateFieldForSelectSQL()});
);
#15...........
},
+
+ 'align32.def' => {
+ source => "align32",
+ params => "def",
+ expect => <<'#16...........',
+# should not get alignment here:
+my $c_sub_khwnd = WindowFromId $k_hwnd, 0x8008; # FID_CLIENT
+ok $c_sub_khwnd, 'have kids client window';
+ok IsWindow($c_sub_khwnd), 'IsWindow works on the client';
+#16...........
+ },
+
+ 'ternary4.def' => {
+ source => "ternary4",
+ params => "def",
+ expect => <<'#17...........',
+# some side comments
+*{"${callpkg}::$sym"} = $type eq '&' ? \&{"${pkg}::$sym"} #
+ : $type eq '$' ? \${"${pkg}::$sym"} #
+ : $type eq '@' ? \@{"${pkg}::$sym"}
+ : $type eq '%' ? \%{"${pkg}::$sym"} # side comment
+ : $type eq '*' ? *{"${pkg}::$sym"} #
+ : do { require Carp; Carp::croak("Can't export symbol: $type$sym") };
+#17...........
+ },
};
my $ntests = 0 + keys %{$rtests};
params => "iscl",
expect => <<'#18...........',
# -iscl will not allow alignment of hanging side comments (currently)
- $gsmatch = ( $sub >= 50 ) ? "equal" : "lequal"; # Force an equal match for
- # dev, but be more forgiving
- # for releases
+ $gsmatch = ( $sub >= 50 ) ? "equal" : "lequal"; # Force an equal match for
+ # dev, but be more forgiving
+ # for releases
#18...........
},