aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/tests/vector.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-23 08:10:49 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-23 08:10:49 +0100
commit754012dd458985a6a4953c99204c6651318892b2 (patch)
tree3c654198ae6704137d6da8f9396f3e8970630ea0 /libs/kstd/tests/vector.cpp
parentc9ce8625dd80f701e280f90cb30c30f8663473e9 (diff)
downloadteachos-754012dd458985a6a4953c99204c6651318892b2.tar.xz
teachos-754012dd458985a6a4953c99204c6651318892b2.zip
testing: enable build-host testing
Diffstat (limited to 'libs/kstd/tests/vector.cpp')
-rw-r--r--libs/kstd/tests/vector.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/kstd/tests/vector.cpp b/libs/kstd/tests/vector.cpp
new file mode 100644
index 0000000..3a45008
--- /dev/null
+++ b/libs/kstd/tests/vector.cpp
@@ -0,0 +1,11 @@
+#include <kstd/vector>
+
+#include <catch2/catch_test_macros.hpp>
+
+TEST_CASE("Creating an empty vector")
+{
+ kstd::vector<int> v;
+ REQUIRE(v.empty());
+ REQUIRE(v.size() == 0);
+ REQUIRE(v.capacity() == 0);
+}