Changeset 119 for trunk/test


Ignore:
Timestamp:
Jul 3, 2006, 9:45:58 AM (15 years ago)
Author:
Peter Johansson
Message:

update test of gnuplot to match the fact that gnuplot functions now are void

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/gnuplot_pipe.cc

    r108 r119  
    3939
    4040  svnstat::Gnuplot gnuplot1;
    41   if (gnuplot1.command("set output 'test1.png'; set term png ; set title 'sine'"))
    42     ok = false;
    43   if (gnuplot1.command("plot sin(x) title 'sine of x' with lines"))
    44     ok = false;
     41  gnuplot1.command("set output 'test1.png'; set term png ; set title 'sine'");
     42  gnuplot1.command("plot sin(x) title 'sine of x' with lines");
    4543
    4644  svnstat::Gnuplot gnuplot2;
    47   if (gnuplot2.command("set output 'test2.png'; set term png"))
    48     ok = false;
     45  gnuplot2.command("set output 'test2.png'; set term png");
    4946  gnuplot2.plot(x);
    5047
    5148  svnstat::Gnuplot gnuplot3;
    52   if (gnuplot3.command("set output 'test3.png'; set term png"))
    53     ok=false;
     49  gnuplot3.command("set output 'test3.png'; set term png");
    5450  gnuplot3.linetitle("parabola");
    55   if (gnuplot3.plot(x,y))
    56     ok=false;
    57   if (gnuplot3.command("set output 'test4.png'; set title 'composite'"))
    58     ok=false;
    59   gnuplot3.linestyle("linespoints");
    60   gnuplot3.linetitle("");
    61   if (gnuplot3.replot(x))
    62     ok=false;
     51  gnuplot3.plot(x,y);
     52  gnuplot3.command("set output 'test4.png'");
     53  gnuplot3.command("set title 'ddddd'");
     54  //gnuplot3.linestyle("linespoints");
     55  gnuplot3.linetitle("bajs");
     56  gnuplot3.plot(x);
    6357
    6458  /*
Note: See TracChangeset for help on using the changeset viewer.