UT: test for empty string with stringToHex and hexToString.

This commit is contained in:
Arthur Britto
2012-10-09 16:05:25 -07:00
parent 8714e40bcf
commit 891744431e

View File

@@ -24,6 +24,9 @@ buster.testCase("Utils", {
},
"Under 10: 1" : function () {
buster.assert.equals("01", utils.stringToHex(utils.hexToString("1")));
},
"Empty" : function () {
buster.assert.equals("", utils.stringToHex(utils.hexToString("")));
}
}
});