Skip to content

Commit 1fc8a91

Browse files
committed
Working version
1 parent a4cffb9 commit 1fc8a91

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
{
2-
"name": "C++ Dev",
3-
"image": "mcr.microsoft.com/devcontainers/base:jammy",
4-
"features": {
5-
"ghcr.io/devcontainers/features/common-utils:2": {},
6-
"ghcr.io/devcontainers/features/git:1": {},
7-
"ghcr.io/devcontainers/features/cmake:1": { "version": "3.24.x" }
8-
},
9-
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y build-essential gdb ninja-build && git config --global --add safe.directory ${containerWorkspaceFolder}",
2+
"name": "C++ Dev (Alpine)",
3+
"image": "mcr.microsoft.com/devcontainers/base:alpine",
4+
"postCreateCommand": "sudo apk update && sudo apk add --no-cache build-base cmake ninja gdb git && git config --global --add safe.directory ${containerWorkspaceFolder}",
105
"customizations": {
116
"vscode": {
127
"extensions": [
File renamed without changes.
File renamed without changes.

tests/test_ring_buffer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ TEST_CASE("RingBuffer basic push/pop") {
1111
REQUIRE(rb.full());
1212
REQUIRE_FALSE(rb.push(4));
1313

14-
auto a = rb.pop(); REQUIRE(a && *a == 1);
15-
auto b = rb.pop(); REQUIRE(b && *b == 2);
16-
auto c = rb.pop(); REQUIRE(c && *c == 3);
14+
auto a = rb.pop(); REQUIRE((a && *a == 1));
15+
auto b = rb.pop(); REQUIRE((b && *b == 2));
16+
auto c = rb.pop(); REQUIRE((c && *c == 3));
1717
REQUIRE(rb.empty());
1818
REQUIRE_FALSE(rb.pop().has_value());
1919
}

0 commit comments

Comments
 (0)