aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2021-05-25 20:39:45 +0200
committerLibravatar Rutger Broekhoff2021-05-25 20:39:45 +0200
commitf78b029e55db9bce054d7b7cb7e290f2a4ade964 (patch)
treef18b6fb7517423dca1b644028dbe56b1bdacf1ec /src
parent11a48061b0f52d36e0919a6d9a6d90d251141eb2 (diff)
downloadzig-nkeys-f78b029e55db9bce054d7b7cb7e290f2a4ade964.tar.gz
zig-nkeys-f78b029e55db9bce054d7b7cb7e290f2a4ade964.zip
Give all tests names
Diffstat (limited to 'src')
-rw-r--r--src/nkeys.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nkeys.zig b/src/nkeys.zig
index 1d15623..05922bd 100644
--- a/src/nkeys.zig
+++ b/src/nkeys.zig
@@ -455,7 +455,7 @@ fn wipeBytes(bs: []u8) void {
455 for (bs) |*b| b.* = 0; 455 for (bs) |*b| b.* = 0;
456} 456}
457 457
458test { 458test "reference all delcarations" {
459 testing.refAllDecls(@This()); 459 testing.refAllDecls(@This());
460 testing.refAllDecls(Role); 460 testing.refAllDecls(Role);
461 testing.refAllDecls(SeedKeyPair); 461 testing.refAllDecls(SeedKeyPair);
@@ -463,7 +463,7 @@ test {
463 testing.refAllDecls(PrivateKey); 463 testing.refAllDecls(PrivateKey);
464} 464}
465 465
466test { 466test "key conversions" {
467 var key_pair = try SeedKeyPair.generate(.server); 467 var key_pair = try SeedKeyPair.generate(.server);
468 var decoded_seed = try SeedKeyPair.fromTextSeed(&key_pair.seedText()); 468 var decoded_seed = try SeedKeyPair.fromTextSeed(&key_pair.seedText());
469 try testing.expect(isValidEncoding(&decoded_seed.seedText())); 469 try testing.expect(isValidEncoding(&decoded_seed.seedText()));