Quellcode durchsuchen

test: add a compile-time test for interpolation of compound types.

undefined
Sam Hocevar vor 10 Jahren
Ursprung
Commit
a808cd8f8d
2 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. +1
    -1
      src/t/Makefile.am
  2. +6
    -0
      src/t/math/simplex_interpolator.cpp

+ 1
- 1
src/t/Makefile.am Datei anzeigen

@@ -20,7 +20,7 @@ test_math_SOURCES = test-common.cpp \
math/array2d.cpp math/array3d.cpp math/arraynd.cpp math/box.cpp \
math/cmplx.cpp math/half.cpp math/interp.cpp math/matrix.cpp \
math/quat.cpp math/rand.cpp math/real.cpp math/rotation.cpp \
math/trig.cpp math/vector.cpp
math/trig.cpp math/vector.cpp math/simplex_interpolator.cpp
test_math_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/tools/lolunit
test_math_DEPENDENCIES = @LOL_DEPS@



+ 6
- 0
src/t/math/simplex_interpolator.cpp Datei anzeigen

@@ -61,6 +61,12 @@ lolunit_declare_fixture(SimplexInterpolatorTest)

void TearDown() {}

lolunit_declare_test(CompoundVariable)
{
test_interpolator<2, real> b({{ real(0) }});
test_interpolator<2, vec2> c({{ vec2(0) }});
}

lolunit_declare_test(CoordinateMatrixTest)
{
test_interpolator<2> s2({{1.f}});


Laden…
Abbrechen
Speichern