From bd9d50097afe9c9c26000473921efb1d2b1811a1 Mon Sep 17 00:00:00 2001 From: Igor Furgala Date: Fri, 27 Feb 2026 08:58:58 +0100 Subject: [PATCH 1/3] chore: cpp tests --- .github/workflows/test-cpp.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test-cpp.yml diff --git a/.github/workflows/test-cpp.yml b/.github/workflows/test-cpp.yml new file mode 100644 index 000000000..62da9f842 --- /dev/null +++ b/.github/workflows/test-cpp.yml @@ -0,0 +1,32 @@ +name: Test C++ + +on: + push: + branches: + - main + paths: + - 'cpp/**' + pull_request: + branches: + - main + paths: + - 'cpp/**' + merge_group: + types: + - checks_requested + +jobs: + test-cpp: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Configure CMake + run: cmake -S cpp -B cpp/build -DCMAKE_BUILD_TYPE=Release + + - name: Build + run: cmake --build cpp/build --parallel + + - name: Run tests + run: ctest --test-dir cpp/build --output-on-failure From 770ff4dde1fbf5be7dbb1aa6da02b4f679eb19d1 Mon Sep 17 00:00:00 2001 From: Igor Furgala Date: Fri, 27 Feb 2026 09:01:46 +0100 Subject: [PATCH 2/3] chore: test failing cpp --- cpp/tests/GumboParserTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/tests/GumboParserTest.cpp b/cpp/tests/GumboParserTest.cpp index f45b7ec93..213631ef0 100644 --- a/cpp/tests/GumboParserTest.cpp +++ b/cpp/tests/GumboParserTest.cpp @@ -3,7 +3,7 @@ TEST(GumboParserTest, TagRemappings) { EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); - EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); + EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); From edf8a2bf31eac7b51df881ac506e364968f4a072 Mon Sep 17 00:00:00 2001 From: Igor Furgala Date: Fri, 27 Feb 2026 09:03:58 +0100 Subject: [PATCH 3/3] chore: revert test change --- cpp/tests/GumboParserTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/tests/GumboParserTest.cpp b/cpp/tests/GumboParserTest.cpp index 213631ef0..f45b7ec93 100644 --- a/cpp/tests/GumboParserTest.cpp +++ b/cpp/tests/GumboParserTest.cpp @@ -3,7 +3,7 @@ TEST(GumboParserTest, TagRemappings) { EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); - EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); + EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); EXPECT_EQ(GumboParser::normalizeHtml("x"), "x"); EXPECT_EQ(GumboParser::normalizeHtml("x"), "x");