Audacity 3.2.0
Functions
TypeEnumeratorTest.cpp File Reference
#include <catch2/catch.hpp>
#include "TypeEnumerator.h"
Include dependency graph for TypeEnumeratorTest.cpp:

Go to the source code of this file.

Functions

 TEST_CASE ("Using different tags")
 
 TEST_CASE ("Dependency on location")
 
 TEST_CASE ("Distinct types, only")
 

Function Documentation

◆ TEST_CASE() [1/3]

TEST_CASE ( "Dependency on location"  )

Definition at line 37 of file TypeEnumeratorTest.cpp.

38{
39 struct Here1 : Tag1{};
40 struct Here2 : Tag2{};
41 static_assert(std::is_same_v<List<void, const volatile int&>,
43 static_assert(std::is_same_v<List<char, long>,
45}
typename Accumulate< 0 >::type type

◆ TEST_CASE() [2/3]

TEST_CASE ( "Distinct  types,
only"   
)

Definition at line 50 of file TypeEnumeratorTest.cpp.

51{
52 struct Here1 : Tag1{};
53 struct Here2 : Tag2{};
54 static_assert(std::is_same_v<List<void, const volatile int&>,
56 static_assert(std::is_same_v<List<char, long>,
58}

◆ TEST_CASE() [3/3]

TEST_CASE ( "Using different tags"  )

Definition at line 24 of file TypeEnumeratorTest.cpp.

25{
26 struct Here1 : Tag1{};
27 struct Here2 : Tag2{};
28 static_assert(std::is_same_v<List<void>,
30 static_assert(std::is_same_v<List<char>,
32}