diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 16:20:49 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-14 16:20:49 +0100 |
commit | 6bc0025e4c24ed6659d993f3469c10615fb0e273 (patch) | |
tree | 48fba6d397630a4cae0a7ffc44660ce5d053896e /src/test/DBTest.cpp | |
parent | 5ae2b3c2f7dc207980c6d475e54fa2c5242c560d (diff) |
fix DB facade + add regression tests
Diffstat (limited to 'src/test/DBTest.cpp')
-rw-r--r-- | src/test/DBTest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/DBTest.cpp b/src/test/DBTest.cpp index 99dedff..0c98e10 100644 --- a/src/test/DBTest.cpp +++ b/src/test/DBTest.cpp @@ -27,3 +27,12 @@ TEST_F(DBTest, Has) { db.set("foo", "bar"); EXPECT_EQ(db.has("foo"), true); } + +TEST_F(DBTest, MultipleKeys) { + db.set("foo", "foo"); + db.set("bar", "bar"); + + EXPECT_EQ(db.get("foo"), "foo"); + EXPECT_EQ(db.get("bar"), "bar"); +} + |