pineapple-notepad/3rdparty/lexilla532/lexilla/test/unit/unitTest.cxx

30 lines
720 B
C++
Raw Normal View History

2024-07-02 23:47:26 +08:00
/** @file unitTest.cxx
** Unit Tests for Lexilla internal data structures
**/
/*
Currently tested:
WordList
SparseState
*/
#include <cstdio>
#include <cstdarg>
#include <string_view>
#include <vector>
#include <memory>
#if defined(__GNUC__)
// Want to avoid misleading indentation warnings in catch.hpp but the pragma
// may not be available so protect by turning off pragma warnings
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
#pragma GCC diagnostic ignored "-Wpragmas"
#if !defined(__clang__)
#pragma GCC diagnostic ignored "-Wmisleading-indentation"
#endif
#endif
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"