From a28ebc2d05e7fe00b3fd32a09820a096710f8160 Mon Sep 17 00:00:00 2001 From: Jeremiah Morgan Date: Mon, 9 Dec 2024 01:02:10 +0000 Subject: [PATCH] s --- libopenage/curve/tests/curve_types.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/libopenage/curve/tests/curve_types.cpp b/libopenage/curve/tests/curve_types.cpp index b45a08e44d..9d3465ab2e 100644 --- a/libopenage/curve/tests/curve_types.cpp +++ b/libopenage/curve/tests/curve_types.cpp @@ -5,13 +5,13 @@ #include #include +#include "curve/array.h" #include "curve/continuous.h" #include "curve/discrete.h" #include "curve/discrete_mod.h" #include "curve/keyframe.h" #include "curve/keyframe_container.h" #include "curve/segmented.h" -#include "curve/array.h" #include "event/event_loop.h" #include "testing/testing.h" #include "time/time.h" @@ -233,7 +233,7 @@ void curve_types() { TESTEQUALS(c.get(8), 4); } - //Check the discrete type + // Check the discrete type { auto f = std::make_shared(); Discrete c(f, 0); @@ -258,7 +258,7 @@ void curve_types() { TESTEQUALS(complex.get(10), "Test 10"); } - //Check the discrete mod type + // Check the discrete mod type { auto f = std::make_shared(); DiscreteMod c(f, 0); @@ -291,7 +291,7 @@ void curve_types() { TESTEQUALS(c.get_mod(15, 0), 0); } - //check set_last + // check set_last { auto f = std::make_shared(); Discrete c(f, 0); @@ -388,7 +388,7 @@ void curve_types() { TESTEQUALS(c.get(5), 0); } - {//array + { // array Array a; a.set_insert(time::time_t(1), 0, 0); a.set_insert(time::time_t(1), 1, 1); @@ -396,11 +396,9 @@ void curve_types() { TESTEQUALS(res[0], 0); TESTEQUALS(res[1], 1); - for(auto r : a) - { + for (auto r : a) { std::cout << r << std::endl; } - } }