aboutsummaryrefslogtreecommitdiffstats
path: root/src/nkeys.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/nkeys.zig')
-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()));