summaryrefslogtreecommitdiff
path: root/test/sha1.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-10-19 00:51:25 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-10-19 00:51:25 +0200
commit42ab9f491dc9efb2732d09a4e6e1be5b833af3bb (patch)
tree805f9d8965d5f28cfbb8203d200b84ed83920997 /test/sha1.cc
parent72db7f53e47e9c3840b15383da4dc3905f62e77d (diff)
str & sha1: Improve test code coverage
Diffstat (limited to 'test/sha1.cc')
-rw-r--r--test/sha1.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/sha1.cc b/test/sha1.cc
index 7441f01..24821ba 100644
--- a/test/sha1.cc
+++ b/test/sha1.cc
@@ -14,4 +14,7 @@ TEST(Sha1, sanity) {
sha1::hash("The quick brown fox jumps over the lazy cog")));
EXPECT_EQ("2jmj7l5rSw0yVb/vlWAYkK/YBwk=", base64::encode(sha1::hash("")));
+
+ EXPECT_EQ("2jmj7l5rSw0yVb/vlWAYkK/YBwk=",
+ base64::encode(sha1::hash(std::span<char>{})));
}