Sha256: 40bd9febc5278c5aae3301ae9313c21e647c7a33f2f6e6a81d4f3a1a509880ff
Contents?: true
Size: 695 Bytes
Versions: 19
Compression:
Stored size: 695 Bytes
Contents
buster.testCase("Abbrev", { "returns short enough string": function () { assert.equals("Some string", gts.abbrev("Some string", 30)); }, "slices off end of too long string": function () { assert.equals("Some", gts.abbrev("Some string", 4)); }, "inserts padding in place of cut content": function () { assert.equals("Some...", gts.abbrev("Some string", 7, "...")); }, "does not insert padding if string is short enough": function () { assert.equals("Some string", gts.abbrev("Some string", 11, "...")); }, "does not cut words": function () { assert.equals("Some...", gts.abbrev("Some string", 10, "...")); } });
Version data entries
19 entries across 19 versions & 1 rubygems