still debugging why only cl.exe on github actons (and not appveyor) sorts the tests for the new example differently... (cannot reproduce locally on windows)
diff --git a/doctest/doctest.h b/doctest/doctest.h
index 0dd3c6e..a7ff4bf 100644
--- a/doctest/doctest.h
+++ b/doctest/doctest.h
@@ -3733,6 +3733,7 @@
using namespace detail;
// for sorting tests by file/line
bool fileOrderComparator(const TestCase* lhs, const TestCase* rhs) {
+ std::cout << rhs->m_file << std::endl;
const int res = lhs->m_file.compare(rhs->m_file, true); // always ignore case
if(res != 0)
return res < 0;
diff --git a/doctest/parts/doctest.cpp b/doctest/parts/doctest.cpp
index 4e4f3aa..a0c0e93 100644
--- a/doctest/parts/doctest.cpp
+++ b/doctest/parts/doctest.cpp
@@ -1076,6 +1076,7 @@
using namespace detail;
// for sorting tests by file/line
bool fileOrderComparator(const TestCase* lhs, const TestCase* rhs) {
+ std::cout << rhs->m_file << std::endl;
const int res = lhs->m_file.compare(rhs->m_file, true); // always ignore case
if(res != 0)
return res < 0;