- Setup EGL context for Wayland. Test window now opens as black rectangle.
This commit is contained in:
@@ -16,23 +16,46 @@
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
// =====================================================================================================================
|
||||
|
||||
#ifndef FENNEC_TEST_LANG_SEQUENCES_H
|
||||
#define FENNEC_TEST_LANG_SEQUENCES_H
|
||||
///
|
||||
/// \file test_metaprogramming.h
|
||||
/// \brief
|
||||
///
|
||||
///
|
||||
/// \details
|
||||
/// \author Medusa Slockbower
|
||||
///
|
||||
/// \copyright Copyright © 2025 Medusa Slockbower ([GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html))
|
||||
///
|
||||
///
|
||||
|
||||
#include <fennec/lang/const_sequences.h>
|
||||
|
||||
#ifndef FENNEC_TEST_LANG_METAPROGRAMMING_H
|
||||
#define FENNEC_TEST_LANG_METAPROGRAMMING_H
|
||||
|
||||
#include "../../test.h"
|
||||
|
||||
namespace fennec::test
|
||||
{
|
||||
|
||||
inline void test_sequences()
|
||||
{
|
||||
static_assert(fennec::is_same_v<make_index_sequence_t<2>, const_index_sequence<0, 1>>);
|
||||
static_assert(fennec::is_same_v<make_index_sequence_t<3>, const_index_sequence<0, 1, 2>>);
|
||||
static_assert(fennec::is_same_v<make_index_sequence_t<4>, const_index_sequence<0, 1, 2, 3>>);
|
||||
struct metaprogramming_test {
|
||||
|
||||
// TODO
|
||||
}
|
||||
};
|
||||
|
||||
struct metaprogramming_test_base {
|
||||
|
||||
};
|
||||
|
||||
struct metaprogramming_test_derived : metaprogramming_test_base {
|
||||
|
||||
};
|
||||
|
||||
inline void fennec_test_lang_metaprogramming() {
|
||||
|
||||
fennec_test_run((is_base_of_v<metaprogramming_test_base, metaprogramming_test_derived>), true);
|
||||
fennec_test_run((is_base_of_v<metaprogramming_test, metaprogramming_test_derived>), false);
|
||||
|
||||
}
|
||||
|
||||
#endif // FENNEC_TEST_LANG_SEQUENCES_H
|
||||
}
|
||||
|
||||
#endif // FENNEC_TEST_LANG_METAPROGRAMMING_H
|
||||
Reference in New Issue
Block a user