Skip to content

Commit 95de828

Browse files
committed
update dsa pages
1 parent 719f567 commit 95de828

26 files changed

Lines changed: 4516 additions & 578 deletions

pages/Godot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ keywords: "Godot engine, Godot 4, game development, Godot nodes, Godot physics,
11381138
-
11391139
- ## Minimal C++ GDExtension
11401140
collapsed:: true
1141-
- ```cpp
1141+
- ```c++
11421142
// my_node.h
11431143
#include <godot_cpp/classes/node.hpp>
11441144
using namespace godot;

pages/Google Test (gtest).md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ displayTitle: Google Test (gtest)
6161
collapsed:: true
6262
- ## Basic Test Structure
6363
collapsed:: true
64-
- ```cpp
64+
- ```c++
6565
#include <gtest/gtest.h>
6666
6767
// TEST(TestSuiteName, TestName)
@@ -83,7 +83,7 @@ displayTitle: Google Test (gtest)
8383
-
8484
- ## Assertion Macros
8585
collapsed:: true
86-
- ```cpp
86+
- ```c++
8787
// EXPECT_* — non-fatal: test continues on failure
8888
// ASSERT_* — fatal: test stops on failure
8989
@@ -111,13 +111,13 @@ displayTitle: Google Test (gtest)
111111
-
112112
- ## Custom Failure Messages
113113
collapsed:: true
114-
- ```cpp
114+
- ```c++
115115
EXPECT_EQ(result, expected) << "Failed for input: " << input;
116116
ASSERT_GT(size, 0) << "Container should not be empty";
117117
```
118118
- # Test Fixtures
119119
collapsed:: true
120-
- ```cpp
120+
- ```c++
121121
#include <gtest/gtest.h>
122122
#include <vector>
123123
@@ -152,7 +152,7 @@ displayTitle: Google Test (gtest)
152152
```
153153
- # Parameterized Tests
154154
collapsed:: true
155-
- ```cpp
155+
- ```c++
156156
#include <gtest/gtest.h>
157157
158158
// Function to test
@@ -188,7 +188,7 @@ displayTitle: Google Test (gtest)
188188
```
189189
- # Exception & Death Tests
190190
collapsed:: true
191-
- ```cpp
191+
- ```c++
192192
// Exception tests
193193
EXPECT_THROW(throw std::runtime_error("err"), std::runtime_error);
194194
EXPECT_NO_THROW(safeFunction());
@@ -202,7 +202,7 @@ displayTitle: Google Test (gtest)
202202
```
203203
- # gMock — Mocking
204204
collapsed:: true
205-
- ```cpp
205+
- ```c++
206206
#include <gmock/gmock.h>
207207
208208
// Interface to mock

0 commit comments

Comments
 (0)