From b54a3b6c271c22e4183d2a9511a488defc404f26 Mon Sep 17 00:00:00 2001 From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Date: Tue, 24 Oct 2023 19:08:26 +0100 Subject: [PATCH] Add a test --- tests/dm/hash.dme | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/dm/hash.dme b/tests/dm/hash.dme index dcd5411f..5b64455f 100644 --- a/tests/dm/hash.dme +++ b/tests/dm/hash.dme @@ -21,3 +21,12 @@ var/list/reference = list() for (var/entry in reference) check_hash_base64(entry) + + // Test B64 decode stuff + var/input_str = "dGhpcyBpcyBzb21lIHRleHQ=" + var/expected_output = "this is some text" + var/actual = rustg_decode_base64(input_str) + + if (!cmptextEx(expected_output, actual)) + CRASH("Base64 decode failed | S: [input_str] | E: [expected_output] | A: [actual]") +