Updating built in Io code to use += instead of x = x + y
[io/quag.git] / addons / Blowfish / tests / BlowfishTest.io
bloba99ac7f74a9f9f798e5944adaebbaec07dc4731f
2 /*
3 Sequence asChars := method(
4 b := Sequence clone
5 self foreach(i, v, b write(v asString, " "))
8 */
10 BlowfishTest := UnitTest clone do(
11 type := "BlowfishTest"
13 testBasic := method(
14 s := "This is a test."
16 es := Blowfish clone setKey("secret") encrypt(s)
17 ds := Blowfish clone setKey("secret") decrypt(es)
18 ds setSize(s size)
20 assertEquals(ds, s)