1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 21:23:56 +02:00

Fix build failure with clang

A slight issue with feb1d10f60.
This commit is contained in:
John Ericson 2024-05-06 13:38:21 -04:00
parent 2926ef0e90
commit 5e189025ca
2 changed files with 4 additions and 2 deletions

View file

@ -22,7 +22,7 @@ public:
TEST_F(FIXTURE, PublicKey_ ## NAME ## _from_json) { \
readTest(#NAME ".json", [&](const auto & encoded_) { \
fetchers::PublicKey expected { VAL }; \
auto got = nlohmann::json::parse(encoded_); \
fetchers::PublicKey got = nlohmann::json::parse(encoded_); \
ASSERT_EQ(got, expected); \
}); \
} \
@ -47,7 +47,7 @@ TEST_F(PublicKeyTest, PublicKey_noRoundTrip_from_json) {
readTest("noRoundTrip.json", [&](const auto & encoded_) {
fetchers::PublicKey expected = { .type = "ssh-ed25519", .key = "ABCDE" };
fetchers::PublicKey got = nlohmann::json::parse(encoded_);
ASSERT_EQ(got, nlohmann::json(expected));
ASSERT_EQ(got, expected);
});
}