1 (* Copyright (C) 2009 Matthew Fluet.
2 * Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
3 * Jagannathan, and Stephen Weeks.
5 * MLton is released under a BSD-style license.
6 * See the file MLton-LICENSE for details.
9 (* Base64 encoding, as in RFC 1421 *)
13 val decode: string -> string
14 val encode: string -> string
18 functor TestBase64 (S: BASE64): sig end =
25 ("TestBase64", fn () =>
26 List.forall(["a", "aa", "aaa", "aaaa", "aaaaa", "aaaaaa", "aaaaaaa",
27 "a", "ab", "abc", "abcd", "abcde", "abcdef", "abcdefg",
29 fn s => decode(encode s) = s))