From 358feec65030f081b70e4b8b13997c302c9fa35b Mon Sep 17 00:00:00 2001 From: hjp Date: Thu, 5 Jun 2008 08:56:59 +0000 Subject: [PATCH] New version of gnuplot creates /Title entry in dict - fixed test. --- t/2scripts.t | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/t/2scripts.t b/t/2scripts.t index e334533..e071960 100755 --- a/t/2scripts.t +++ b/t/2scripts.t @@ -15,10 +15,11 @@ ok($ps2 =~ m/\(val1\) Rshow/, 'Postscript output of tsplot contains a column na # title and creation date will be different, but the rest should be # identical: -$ps1 =~ s/^%%Title: .*//m; -$ps1 =~ s/^%%CreationDate: .*//m; -$ps2 =~ s/^%%Title: .*//m; -$ps2 =~ s/^%%CreationDate: .*//m; +for ($ps1, $ps2) { + s/^%%Title: .*//m; + s/^%%CreationDate: .*//m; + s/^ *\/Title \(.*\)//m; +} ok($ps1 eq $ps2, 'output of tsplot and tsplotv are identical'); my $ps3=`./blib/script/tsplot --output_format ps --log_y t/1.data`;