Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
JCash committed Dec 23, 2022
2 parents 6d6dec1 + 0c55fa0 commit 844ba38
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 17 deletions.
4 changes: 2 additions & 2 deletions hugo/content/api/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ regarding compile time and runtime.
| Feature vs Impl | jc_test | gtest | greatest | utest | doctest | catch2 | snow 2 |
|-----------------------:|---------|---------|----------|---------|---------|---------|---------|
| Header only | yes | no | yes | yes | yes | yes | yes |
| Version | C++98 | C++11 | C89 | C89 | C++11 | C++11 | c99/c11 |
| Version | C++11 | C++11 | C89 | C89 | C++11 | C++11 | c99/c11 |
| -Wall | yes | yes | no | no | yes | yes | yes |
| -Weverything | yes | no | no | no | yes | no | no |
| -pedantic | yes* | no | no | no | yes | no | no |
| Lines of Code** | ~1100 | 10000+ | <1000 | <400 | 4000+ | 11000+ | ~1100 |
| Lines of Code** | ~1300 | 10000+ | <1000 | <400 | 4000+ | 11000+ | ~1100 |
| Size of program*** | 27292 | 414608 | 19228 | 18280 | 146348 | 829572 | 23144 |
| Compile time*** | 217ms | 600ms | 141ms | 86ms | 1890ms | 10662ms | 216ms |
| Run time*** | 3ms | 3ms | 6ms | 5ms | 3ms | 4ms | 3ms |
Expand Down
1 change: 0 additions & 1 deletion scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ time compile_test expect -Wno-sign-compare
time compile_test death
time compile_test empty
time compile_test array
time compile_test_with_main doctest
time compile_test_with_main color_on
time compile_test_with_main color_off

Expand Down
1 change: 0 additions & 1 deletion scripts/compile_cl.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ set FLAGS=/O2 /D_CRT_SECURE_NO_WARNINGS /nologo /D_HAS_EXCEPTIONS=0 /EHsc /W4 /w
%TIMEIT% cl.exe %FLAGS% test\test_death.cpp test\main.cpp /link /out:.\build\test_death.exe
%TIMEIT% cl.exe %FLAGS% test\test_empty.cpp test\main.cpp /link /out:.\build\test_empty.exe
%TIMEIT% cl.exe %FLAGS% test\test_array.cpp test\main.cpp /link /out:.\build\test_array.exe
%TIMEIT% cl.exe %FLAGS% test\test_doctest.cpp /link /out:.\build\test_doctest.exe
%TIMEIT% cl.exe %FLAGS% test\test_color_off.cpp /link /out:.\build\test_color_off.exe
%TIMEIT% cl.exe %FLAGS% test\test_color_on.cpp /link /out:.\build\test_color_on.exe

Expand Down
7 changes: 1 addition & 6 deletions src/jc_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* HISTORY:
* 0.9 2022-12-22 Fixed proper printout for pointer values
* Minimum version is now C++11 due to usage of <type_traits>
* Removed doctest support
* 0.8 2021-04-03 Added fflush to logging to prevent test output becoming out of order
* 0.7 2021-02-07 Fixed null pointer warning on C++0x and above
* Test filtering now works on parameterized tests
Expand Down Expand Up @@ -598,10 +599,6 @@ struct jc_test_cmp_eq_helper {

#define SCOPED_TRACE(_MSG) // nop

// doctest compatible
#define CHECK( VALUE ) ASSERT_TRUE(VALUE)
#define CHECK_EQ( A, B ) ASSERT_EQ(A, B)

template<typename T>
struct jc_test_value_iterator {
virtual ~jc_test_value_iterator();
Expand Down Expand Up @@ -875,8 +872,6 @@ template<template <typename T> class BaseClass> struct jc_test_template_sel {
JC_TEST_MAKE_NAME2(testfixture,Types)>::register_test(#testfixture, #testfn, 0); \
template<typename T> void JC_TEST_MAKE_CLASS_NAME(testfixture,testfn)<T>::TestBody()

#define TEST_CASE(name) TEST3(JC_TEST_MAKE_NAME2(_JC_TEST_ANON, __LINE__), name, "")

#if !defined(_MSC_VER)
#pragma GCC diagnostic pop
#endif
Expand Down
7 changes: 0 additions & 7 deletions test/test_doctest.cpp

This file was deleted.

0 comments on commit 844ba38

Please sign in to comment.