From 5f5b7a43a0c9f4506cebb15d260a2e05d96d9104 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Fri, 28 Jun 2013 17:48:07 +1200 Subject: Add test for asDyeString --- test/mp/future.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/mp/future.js b/test/mp/future.js index 3d47c28..25f7a21 100644 --- a/test/mp/future.js +++ b/test/mp/future.js @@ -62,10 +62,15 @@ suite.addBatch({ "The manaportal dye": { topic: load("mp/dye", "mp/resource").expression("mp").document(), "parseDyeString": { - "Extracts the dye channel data from the dyestring": function(mp) { + "extracts the dye channel data from the dyestring": function(mp) { assert.equal(mp.dye.parseDyeString(dyeString), dyeData); } }, + "asDyeString": { + "reconstructs the dyestring from the dye channel data": function(mp) { + assert.equal(mp.dye.asDyeString(dyeData), dyeString); + } + }, "dyeImage": { "with the big recolorable cake": unshiftLoadImageBind("test/data/bigcake.png", { "to the big white cake dyed by TMWW": unshiftLoadImageBind("test/data/whitecake.png", { -- cgit v1.2.3-70-g09d2