diff options
author | Rutger Broekhoff | 2021-05-25 15:19:33 +0200 |
---|---|---|
committer | Rutger Broekhoff | 2021-05-25 15:19:33 +0200 |
commit | 7914eed7b4a37b9c0b0da9aa9481d9666353b45e (patch) | |
tree | e8eba0f04ffbb469d04e55eebbe2605928f75bab /src/base32.zig | |
parent | 55b14e7fcfa3c340d27107f2b7cdf9836e7c4758 (diff) | |
download | zig-nkeys-7914eed7b4a37b9c0b0da9aa9481d9666353b45e.tar.gz zig-nkeys-7914eed7b4a37b9c0b0da9aa9481d9666353b45e.zip |
Write a few more tests
Diffstat (limited to 'src/base32.zig')
-rw-r--r-- | src/base32.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base32.zig b/src/base32.zig index 749c313..339566d 100644 --- a/src/base32.zig +++ b/src/base32.zig | |||
@@ -132,7 +132,7 @@ pub const Encoder = struct { | |||
132 | } | 132 | } |
133 | }; | 133 | }; |
134 | 134 | ||
135 | pub const DecodeError = error{CorruptInputError}; | 135 | pub const DecodeError = error{CorruptInput}; |
136 | 136 | ||
137 | pub const Decoder = struct { | 137 | pub const Decoder = struct { |
138 | const Self = @This(); | 138 | const Self = @This(); |
@@ -178,7 +178,7 @@ pub const Decoder = struct { | |||
178 | // '2' -> 26 | 178 | // '2' -> 26 |
179 | return @truncate(u5, c - @as(u8, '2') + 26); | 179 | return @truncate(u5, c - @as(u8, '2') + 26); |
180 | } else { | 180 | } else { |
181 | return error.CorruptInputError; | 181 | return error.CorruptInput; |
182 | } | 182 | } |
183 | } | 183 | } |
184 | 184 | ||