Skip to content

Commit

Permalink
Ensure no entry is returned if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth committed Jan 5, 2024
1 parent 1416c04 commit ecf1620
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/src/core/SampleCacheTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ private slots:
QCOMPARE(*cache.get("test"), buffer);
}

void cannotGetNonExistingEntry()
{
using namespace lmms;

auto cache = SampleCache{};
QVERIFY(!cache.get("test").has_value());
}

void canRemoveEntry()
{
using namespace lmms;
Expand Down

0 comments on commit ecf1620

Please sign in to comment.