aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/samplecode
diff options
context:
space:
mode:
authorEd Slocomb <edslocomb@gmail.com>2023-11-11 16:24:28 -0800
committerGitHub <noreply@github.com>2023-11-11 16:24:28 -0800
commitf884d1d61108d4942dd02c95bf5fd05daeedf47e (patch)
treea23cc0a46e651fabe95b22e7cb24124265567e26 /test/formatters/samplecode
parent314af56e8dc1eb9f71a70e6c1858e6f6021cf708 (diff)
Bump test environment to Ubuntu 22.04 (#242)
This also fixes a few test installers: - rustfmt is available via apt-get in 22.04, use that instead of tarball that's no longer available - brittany now installs cleanly in the default haskell ghc/cabal in 22.04, so just use that - perltidy in 22.04 has slightly different output - nixfmt download url changed (now includes OS/arch). There was initially no binary available when nixfmt was updated, but the devs there were kind enough to provide one: https://github.com/serokell/nixfmt/issues/139 This runs a full `make fmt-build` without errors, though it takes a while ;). All tests pass, too.
Diffstat (limited to 'test/formatters/samplecode')
-rw-r--r--test/formatters/samplecode/perltidy/out.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/formatters/samplecode/perltidy/out.pl b/test/formatters/samplecode/perltidy/out.pl
index 7cc9d40..b22e297 100644
--- a/test/formatters/samplecode/perltidy/out.pl
+++ b/test/formatters/samplecode/perltidy/out.pl
@@ -5,7 +5,7 @@ while ( read +STDIN, $_, 2048 ) {
$c = 142;
$t = 255;
@t = map {
- $_ % 16
+ $_ % 16
or $t ^= $c ^=
( $m = ( 11, 10, 116, 100, 11, 122, 20, 100 )[ $_ / 16 % 8 ] ) & 110;
$t ^= (
@@ -15,8 +15,8 @@ while ( read +STDIN, $_, 2048 ) {
)[ $_ % 8 ]
} ( 16 .. 271 );
if ( ( @a = unx "C*", $_ )[20] & 48 ) {
- $h = 5;
- $_ = unxb24, join "",
+ $h = 5;
+ $_ = unxb24, join "",
@b = map { xB8, unxb8, chr( $_ ^ $a[ --$h + 84 ] ) } @ARGV;
s/...$/1$&/;
$d = unxV, xb25, $_;