File: test.h

package info (click to toggle)
veccore 0.8.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,968 kB
  • sloc: cpp: 2,894; ansic: 1,332; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 856 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef _TEST_H
#define _TEST_H

#undef NDEBUG

#include <VecCore/VecCore>

#include <gtest/gtest.h>
#include <type_traits>

using namespace testing;

template <class Backend>
using IntTypes = Types<typename Backend::Int16_v, typename Backend::Int32_v>;

template <class Backend>
using UIntTypes = Types<typename Backend::UInt16_v, typename Backend::UInt32_v>;

template <class Backend>
using FloatTypes = Types<typename Backend::Float_v, typename Backend::Double_v>;

template <class Backend>
using VectorTypes =
    Types<typename Backend::Float_v, typename Backend::Double_v,
          typename Backend::Int16_v, typename Backend::UInt16_v,
          typename Backend::Int32_v, typename Backend::UInt32_v>;

template <class T> class VectorTypeTest : public Test {
public:
  using Scalar_t = typename vecCore::Scalar<T>;
  using Vector_t = T;
};

#endif