6#include "gtest/gtest.h"
8TEST(_GTestCbmCut, DefConstructor)
15TEST(_GTestCbmCut, ParConstructor)
26TEST(_GTestCbmCut, CheckOnDefConstructor)
29 for (
float i = -1e+6; i < 1e+6; i++) {
30 EXPECT_EQ(
true, cut.
Check(i));
34TEST(_GTestCbmCut, CheckCase1)
39 for (
float i = -1e+6; i < 1e+6; i++) {
40 if (i < min || i >
max) {
41 EXPECT_EQ(
false, cut.
Check(i));
44 EXPECT_EQ(
true, cut.
Check(i));
49TEST(_GTestCbmCut, CheckCase2)
54 for (
float i = -1e+6; i < 1e+6; i++) {
55 if (i <= max || i >=
min) {
56 EXPECT_EQ(
true, cut.
Check(i));
59 EXPECT_EQ(
false, cut.
Check(i));
friend fscal max(fscal x, fscal y)
friend fscal min(fscal x, fscal y)
TEST(_GTestCbmCut, DefConstructor)
bool Check(T a) const
Check if the T is inside the configured ranges [min, max].