Remove hashingWithUnknownAlgoExits

A valid hash type must be provided now. The hash itself can still be
invalid, but that doesn't cause an `abort()`.
This commit is contained in:
John Ericson 2020-06-02 16:28:54 +00:00
parent 64cffb804a
commit d73dbc8e4c

View file

@ -72,9 +72,4 @@ namespace nix {
"7299aeadb6889018501d289e4900f7e4331b99dec4b5433a"
"c7d329eeb6dd26545e96e55b874be909");
}
TEST(hashString, hashingWithUnknownAlgoExits) {
auto s = "unknown";
ASSERT_DEATH(hashString(HashType::SHA512, s), "");
}
}