mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-05 12:34:47 +00:00
Merge branch 'master' into xmlcomment
This commit is contained in:
@@ -50,4 +50,19 @@ test_roundtrip :: proc(t: ^testing.T) {
|
||||
for v, i in decoded {
|
||||
testing.expect_value(t, v, values[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@(test)
|
||||
test_base64url :: proc(t: ^testing.T) {
|
||||
plain := ">>>"
|
||||
url := "Pj4-"
|
||||
|
||||
encoded := base64.encode(transmute([]byte)plain, base64.ENC_URL_TABLE)
|
||||
defer delete(encoded)
|
||||
testing.expect_value(t, encoded, url)
|
||||
|
||||
decoded := string(base64.decode(url, base64.DEC_URL_TABLE))
|
||||
defer delete(decoded)
|
||||
testing.expect_value(t, decoded, plain)
|
||||
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ xml_test_entities_unbox_decode :: proc(t: ^testing.T) {
|
||||
},
|
||||
expected_doctype = "html",
|
||||
},
|
||||
crc32 = 0x3c0973e2,
|
||||
crc32 = 0x6e45a697,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user