Skip to content

Commit bf7919f

Browse files
authored
Add files via upload
1 parent 79b0227 commit bf7919f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<html>
2+
<!--Remember to change /v0.0-beta0.0/ to the version you are targeting -->
3+
<xscript src="https://cdn.rawgit.com/osofem/StringEncode.js/v0.0-beta0.0/StringEncode.js"></xscript>
4+
<script src="../../StringEncode.js"></script>
5+
<script src="assert.js"></script>
6+
<script>
7+
var string = "Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure.";
8+
assertEqual("moderate".toAscii85(), "<~D/WrrEaa\'$~>");
9+
assertEqual("easy".toAscii85(), "<~ARTY*~>");
10+
assertEqual("somewhat difficult".toAscii85(), "<~F)Po,GA(E,+Co1uAnbatCif~>");
11+
assertEqual(string.toAscii85().fromAscii85(), string);
12+
13+
assertEqual(string.toBase64(), btoa(string));
14+
assertEqual(string.toBase64().fromBase64(), string);
15+
</script>
16+
</html>

0 commit comments

Comments
 (0)