You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
720 B
30 lines
720 B
/** @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"
|