diff options
| author | zhibog <zhibog-github@web.de> | 2019-11-08 20:06:58 +0100 |
|---|---|---|
| committer | zhibog <zhibog-github@web.de> | 2019-11-08 20:06:58 +0100 |
| commit | dc2d5239c5801fb8ac7fea5b4b9717067eb5ce8f (patch) | |
| tree | 577232a3f8a730e2ef385cd52f696389543a1425 /core/encoding/base32 | |
| parent | 4b718aae7556511e7461faf89b147a3416ea8f8e (diff) | |
Removed comments regarding RFC test vectors
Diffstat (limited to 'core/encoding/base32')
| -rw-r--r-- | core/encoding/base32/base32.odin | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/core/encoding/base32/base32.odin b/core/encoding/base32/base32.odin index ed27e9b3a..f88c21e2e 100644 --- a/core/encoding/base32/base32.odin +++ b/core/encoding/base32/base32.odin @@ -142,39 +142,4 @@ decode :: proc(data: string, DEC_TBL := DEC_TABLE, allocator := context.allocato outi += 5;
}
return out;
-}
-
-// @note(zh): Test inputs. Taken from RFC4648
-/*
-import "core:fmt"
-main :: proc() {
- Test :: struct {
- plain: string,
- encoded: string,
- };
-
- test_vectors := [?]Test {
- Test{"", ""},
- Test{"f", "MY======"},
- Test{"fo", "MZXQ===="},
- Test{"foo", "MZXW6==="},
- Test{"foob", "MZXW6YQ="},
- Test{"fooba", "MZXW6YTB"},
- Test{"foobar", "MZXW6YTBOI======"},
- };
-
- // Encode test
- for v in test_vectors {
- enc := encode(([]byte)(v.plain));
- fmt.printf("encode(\"%s\") => \"%s\" \t| want: \"%s\"\n", v.plain, enc, v.encoded);
- delete(enc);
- }
-
- // Decode test
- for v in test_vectors {
- dec := decode(v.encoded);
- fmt.printf("decode(\"%s\") => \"%s\" \t| want: \"%s\"\n", v.encoded, string(dec), v.plain);
- delete(dec);
- }
-}
-*/
\ No newline at end of file +}
\ No newline at end of file |