Add tests to cover 95.3% of constrainteq.cpp branches.

This commit is contained in:
whitequark 2016-08-02 17:38:42 +00:00
parent 4b4944264b
commit e462387fca
141 changed files with 426 additions and 112 deletions

View File

@ -53,7 +53,7 @@ Expr *ConstraintBase::VectorsParallel(int eq, ExprVector a, ExprVector b) {
}
if(eq == 0) return e0;
if(eq == 1) return e1;
if(eq == 1) return e1; // BRANCH_ALWAYS_TAKEN
ssassert(false, "Unexpected index of equation");
}
@ -729,7 +729,7 @@ void ConstraintBase::GenerateReal(IdList<Equation,hEquation> *l) const {
// an endpoint; so that's normal to the tangent, not
// parallel.
parallel = !parallel;
} else if(e->type == Entity::Type::CUBIC) {
} else if(e->type == Entity::Type::CUBIC) { // BRANCH_ALWAYS_TAKEN
if(oth) {
dir[i] = e->CubicGetFinishTangentExprs();
} else {

View File

@ -227,8 +227,8 @@ void Constraint::DoLineWithArrows(Canvas *canvas, Canvas::hStroke hcs,
if(!onlyOneExt) {
DoLine(canvas, hcs, b, be.Plus(out.WithMagnitude(10*pixels)));
} else {
Vector prj = be;
DoProjectedPoint(canvas, hcs, &prj);
// Vector prj = be;
// DoProjectedPoint(canvas, hcs, &prj);
}
int within = DoLineTrimmedAgainstBox(canvas, hcs, ref, ae, be);

View File

@ -65,8 +65,10 @@ add_custom_target(solvespace-test ALL
# coverage reports
if(ENABLE_COVERAGE)
set(LCOV_FLAGS -q --rc lcov_branch_coverage=1 --rc lcov_excl_line=ssassert)
set(LCOV_FLAGS ${LCOV_FLAGS} --gcov-tool ${GCOV})
set(LCOV_FLAGS -q --gcov-tool ${GCOV})
set(LCOV_FLAGS ${LCOV_FLAGS} --rc lcov_branch_coverage=1)
set(LCOV_FLAGS ${LCOV_FLAGS} --rc "lcov_excl_line=(ssassert|switch)")
set(LCOV_FLAGS ${LCOV_FLAGS} --rc "lcov_excl_br_line=BRANCH_ALWAYS_TAKEN")
set(LCOV_COLLECT -c -b ${CMAKE_SOURCE_DIR}/src -d ${CMAKE_BINARY_DIR}/src --no-external)
add_custom_command(

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,49 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(free_in_3d_roundtrip) {
CHECK_LOAD("free_in_3d.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}
TEST_CASE(free_in_3d_migrate_from_v20) {
CHECK_LOAD("free_in_3d_v20.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}
TEST_CASE(reference_roundtrip) {
CHECK_LOAD("reference.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}
TEST_CASE(reference_migrate_from_v20) {
CHECK_LOAD("reference_v20.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}
TEST_CASE(reference_free_in_3d_roundtrip) {
CHECK_LOAD("reference_free_in_3d.slvs");
CHECK_RENDER("reference_free_in_3d.png");
CHECK_SAVE("reference_free_in_3d.slvs");
}
TEST_CASE(reference_free_in_3d_migrate_from_v20) {
CHECK_LOAD("reference_free_in_3d_v20.slvs");
CHECK_RENDER("reference_free_in_3d.png");
CHECK_SAVE("reference_free_in_3d.slvs");
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

@ -1,12 +1,12 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

@ -1,13 +1,49 @@
#include "harness.h"
TEST_CASE(roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
TEST_CASE(line_pt_normal_roundtrip) {
CHECK_LOAD("line_pt_normal.slvs");
CHECK_RENDER("line_pt_normal.png");
CHECK_SAVE("line_pt_normal.slvs");
}
TEST_CASE(migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
TEST_CASE(line_pt_normal_migrate_from_v20) {
CHECK_LOAD("line_pt_normal_v20.slvs");
CHECK_RENDER("line_pt_normal.png");
CHECK_SAVE("line_pt_normal.slvs");
}
TEST_CASE(line_pt_free_in_3d_roundtrip) {
CHECK_LOAD("line_pt_free_in_3d.slvs");
CHECK_RENDER("line_pt_free_in_3d.png");
CHECK_SAVE("line_pt_free_in_3d.slvs");
}
TEST_CASE(line_pt_free_in_3d_migrate_from_v20) {
CHECK_LOAD("line_pt_free_in_3d_v20.slvs");
CHECK_RENDER("line_pt_free_in_3d.png");
CHECK_SAVE("line_pt_free_in_3d.slvs");
}
TEST_CASE(line_plane_normal_roundtrip) {
CHECK_LOAD("line_plane_normal.slvs");
CHECK_RENDER("line_plane_normal.png");
CHECK_SAVE("line_plane_normal.slvs");
}
TEST_CASE(line_plane_normal_migrate_from_v20) {
CHECK_LOAD("line_plane_normal_v20.slvs");
CHECK_RENDER("line_plane_normal.png");
CHECK_SAVE("line_plane_normal.slvs");
}
TEST_CASE(line_plane_free_in_3d_roundtrip) {
CHECK_LOAD("line_plane_free_in_3d.slvs");
CHECK_RENDER("line_plane_free_in_3d.png");
CHECK_SAVE("line_plane_free_in_3d.slvs");
}
TEST_CASE(line_plane_free_in_3d_migrate_from_v20) {
CHECK_LOAD("line_plane_free_in_3d_v20.slvs");
CHECK_RENDER("line_plane_free_in_3d.png");
CHECK_SAVE("line_plane_free_in_3d.slvs");
}

View File

@ -1,12 +1,12 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -1,13 +1,25 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(free_in_3d_roundtrip) {
CHECK_LOAD("free_in_3d.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}
TEST_CASE(free_in_3d_migrate_from_v20) {
CHECK_LOAD("free_in_3d_v20.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,25 @@
#include "harness.h"
TEST_CASE(roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
TEST_CASE(arc_arc_roundtrip) {
CHECK_LOAD("arc_arc.slvs");
CHECK_RENDER("arc_arc.png");
CHECK_SAVE("arc_arc.slvs");
}
TEST_CASE(migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
TEST_CASE(arc_arc_migrate_from_v20) {
CHECK_LOAD("arc_arc_v20.slvs");
CHECK_RENDER("arc_arc.png");
CHECK_SAVE("arc_arc.slvs");
}
TEST_CASE(arc_cubic_roundtrip) {
CHECK_LOAD("arc_cubic.slvs");
CHECK_RENDER("arc_cubic.png");
CHECK_SAVE("arc_cubic.slvs");
}
TEST_CASE(arc_cubic_migrate_from_v20) {
CHECK_LOAD("arc_cubic_v20.slvs");
CHECK_RENDER("arc_cubic.png");
CHECK_SAVE("arc_cubic.slvs");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,25 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(reference_roundtrip) {
CHECK_LOAD("reference.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}
TEST_CASE(reference_migrate_from_v20) {
CHECK_LOAD("reference_v20.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}

View File

@ -1,12 +1,12 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");

View File

@ -1,12 +1,12 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,25 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(other_roundtrip) {
CHECK_LOAD("other.slvs");
CHECK_RENDER("other.png");
CHECK_SAVE("other.slvs");
}
TEST_CASE(other_migrate_from_v20) {
CHECK_LOAD("other_v20.slvs");
CHECK_RENDER("other.png");
CHECK_SAVE("other.slvs");
}

View File

@ -1,12 +1,12 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

View File

@ -1,13 +1,23 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(pi) {
CHECK_LOAD("pi.slvs");
CHECK_RENDER("pi.png");
}
TEST_CASE(tau) {
CHECK_LOAD("tau.slvs");
CHECK_RENDER("tau.png");
}

View File

@ -1,12 +1,12 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

View File

@ -1,7 +1,13 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(reference_roundtrip) {
CHECK_LOAD("reference.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,25 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(reference_roundtrip) {
CHECK_LOAD("reference.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}
TEST_CASE(reference_migrate_from_v20) {
CHECK_LOAD("reference_v20.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,25 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(free_in_3d_roundtrip) {
CHECK_LOAD("free_in_3d.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}
TEST_CASE(free_in_3d_migrate_from_v20) {
CHECK_LOAD("free_in_3d_v20.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}

View File

@ -1,12 +1,12 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,25 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(free_in_3d_roundtrip) {
CHECK_LOAD("free_in_3d.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}
TEST_CASE(free_in_3d_migrate_from_v20) {
CHECK_LOAD("free_in_3d_v20.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,25 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(reference_roundtrip) {
CHECK_LOAD("reference.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}
TEST_CASE(reference_migrate_from_v20) {
CHECK_LOAD("reference_v20.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,12 +1,24 @@
#include "harness.h"
// TEST_CASE(roundtrip) {
// CHECK_LOAD("normal.slvs");
// CHECK_RENDER("normal.png");
// CHECK_SAVE("normal.slvs");
// }
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
// TEST_CASE(migrate_from_v20) {
// CHECK_LOAD("normal_v20.slvs");
// CHECK_SAVE("normal.slvs");
// }
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(reference_roundtrip) {
CHECK_LOAD("reference.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}
TEST_CASE(reference_migrate_from_v20) {
CHECK_LOAD("reference_v20.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}

View File

@ -1,12 +1,12 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Binary file not shown.

View File

@ -1,18 +1,42 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(render_extended) {
TEST_CASE(free_in_3d_roundtrip) {
CHECK_LOAD("free_in_3d.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}
TEST_CASE(free_in_3d_migrate_from_v20) {
CHECK_LOAD("free_in_3d_v20.slvs");
CHECK_RENDER("free_in_3d.png");
CHECK_SAVE("free_in_3d.slvs");
}
TEST_CASE(reference_roundtrip) {
CHECK_LOAD("reference.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}
TEST_CASE(reference_migrate_from_v20) {
CHECK_LOAD("reference_v20.slvs");
CHECK_RENDER("reference.png");
CHECK_SAVE("reference.slvs");
}
TEST_CASE(extended_render) {
CHECK_LOAD("extended.slvs");
CHECK_RENDER("extended.png");
}

View File

@ -1,12 +1,12 @@
#include "harness.h"
TEST_CASE(roundtrip) {
TEST_CASE(normal_roundtrip) {
CHECK_LOAD("normal.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");
}
TEST_CASE(migrate_from_v20) {
TEST_CASE(normal_migrate_from_v20) {
CHECK_LOAD("normal_v20.slvs");
CHECK_RENDER("normal.png");
CHECK_SAVE("normal.slvs");

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More