Commit 460f4d6a authored by Paul Asmuth's avatar Paul Asmuth
Browse files

fix tests

parent 89f18f27
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ ReturnCode configure_style(
  auto domain_y = find_ptr(scales, SCALE_DEFAULT_Y);

  static const ParserDefinitions pdefs = {
    {"axis-x-type", bind(&domain_configure, _1, domain_x)},
    {"axis-x", bind(&domain_configure, _1, domain_x)},
    {"axis-x-min", bind(&configure_float_opt, _1, &domain_x->min)},
    {"axis-x-max", bind(&configure_float_opt, _1, &domain_x->max)},
    {
@@ -294,7 +294,7 @@ ReturnCode configure_style(
          bind(&axis_configure_label_placement, _1, &config->axis_bottom.label_placement),
      })
    },
    {"axis-y-type", bind(&domain_configure, _1, domain_y)},
    {"axis-y", bind(&domain_configure, _1, domain_y)},
    {"axis-y-min", bind(&configure_float_opt, _1, &domain_y->min)},
    {"axis-y-max", bind(&configure_float_opt, _1, &domain_y->max)},
    {
+2 −3
Original line number Diff line number Diff line
@@ -2,9 +2,8 @@ width: 1200px;
height: 480px;

plot {
  data: csv('tests/testdata/simple.csv');
  x: $0;
  y: $1;
  x: csv('tests/testdata/simple.csv', var1);
  y: csv('tests/testdata/simple.csv', var2);

  layer {
    type: lines;
+1 −1
Original line number Diff line number Diff line
@@ -68,5 +68,5 @@
  <text x="22.822917" y="161.171422" fill="#333333" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif">9.6</text>
  <text x="15.760417" y="105.285688" fill="#333333" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif">11.5</text>
  <text x="14.666667" y="49.400000" fill="#333333" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif">13.4</text>
  <path stroke-width="2.666667" stroke="#000000" fill="none" d="M54.946875 399.768888 L176.069792 309.754144 L297.192708 341.506918 L418.315625 248.287766 L539.438542 335.098101 L660.561458 76.706263 L781.684375 198.473781 L902.807292 284.118877 L1023.930208 333.641552 L1145.053125 371.511833 "/>
  <path stroke-width="2.666667" stroke="#4572a7" fill="none" d="M54.946875 399.768888 L176.069792 309.754144 L297.192708 341.506918 L418.315625 248.287766 L539.438542 335.098101 L660.561458 76.706263 L781.684375 198.473781 L902.807292 284.118877 L1023.930208 333.641552 L1145.053125 371.511833 "/>
</svg>
 No newline at end of file
+2 −3
Original line number Diff line number Diff line
@@ -2,9 +2,8 @@ width: 1200px;
height: 480px;

plot {
  data: csv('tests/testdata/simple.csv');
  x: $0;
  y: $2;
  x: csv('tests/testdata/simple.csv', var1);
  y: csv('tests/testdata/simple.csv', var3);

  layer {
    type: lines;
+1 −1
Original line number Diff line number Diff line
@@ -68,5 +68,5 @@
  <text x="22.822917" y="161.171422" fill="#333333" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif">7.9</text>
  <text x="15.760417" y="105.285688" fill="#333333" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif">11.0</text>
  <text x="14.666667" y="49.400000" fill="#333333" font-size="14.666667" font-family="Arial,Helvetica,'Helvetica Neue',sans-serif">14.2</text>
  <path stroke-width="2.666667" stroke="#000000" fill="none" d="M54.946875 272.915792 L176.069792 370.737824 L297.192708 351.525929 L418.315625 407.927822 L539.438542 233.786979 L660.561458 77.447984 L781.684375 151.122956 L902.807292 386.248344 L1023.930208 356.284839 L1145.053125 255.818968 "/>
  <path stroke-width="2.666667" stroke="#4572a7" fill="none" d="M54.946875 272.915792 L176.069792 370.737824 L297.192708 351.525929 L418.315625 407.927822 L539.438542 233.786979 L660.561458 77.447984 L781.684375 151.122956 L902.807292 386.248344 L1023.930208 356.284839 L1145.053125 255.818968 "/>
</svg>
 No newline at end of file
Loading