* tests/misc/base64: Factor a long, repetitive string.
authorJim Meyering <jim@meyering.net>
Sat, 30 Dec 2006 16:46:09 +0000 (17:46 +0100)
committerJim Meyering <jim@meyering.net>
Sat, 30 Dec 2006 16:46:09 +0000 (17:46 +0100)
ChangeLog
tests/misc/base64

index accd2cb..f8f9177 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-12-30  Jim Meyering  <jim@meyering.net>
 
+       * tests/misc/base64: Factor a long, repetitive string.
+
        * src/c99-to-c89.diff: Adjust remove.c offsets.
 
        Clean up after the change of 2006-12-28.
index 02591da..60332a0 100755 (executable)
@@ -37,8 +37,7 @@ use strict;
 # Turn off localisation of executable's ouput.
 @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
 
-my $a39 = "YWFhY\nWFhYW\nFhYWF\nhYWFh\nYWFhY\nWFhYW\nFhYWF\n"
-  . "hYWFh\nYWFhY\nWFhYW\nFh";
+(my $a39 = 'YWFh' x 13) =~ s/(.{5})/$1\n/g;
 
 my @Tests =
     (