michael@0: function cmp(x, y) { michael@0: if (x < y) michael@0: return -1; michael@0: if (x > y) michael@0: return 1; michael@0: return 0; michael@0: } michael@0: assertEq(cmp('true', 'false'), 1);