Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
AffectedArc07 committed Oct 24, 2023
1 parent f2c1be0 commit b54a3b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/dm/hash.dme
Original file line number Diff line number Diff line change
Expand Up @@ -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]")

0 comments on commit b54a3b6

Please sign in to comment.