Sha256: fd2e042046fe23ec9dc44581ea78f9040f069e50b643104e4fd9763349437429
Contents?: true
Size: 854 Bytes
Versions: 1
Compression:
Stored size: 854 Bytes
Contents
// ========================================================================== // Project: CoreTest Unit Testing Library // Copyright: ©2006-2009 Sprout Systems, Inc. and contributors. // Portions ©2008-2009 Apple Inc. All rights reserved. // License: Licened under MIT license (see license.js) // ========================================================================== /*globals Ct */ require('core-test'); var ut = require('core-test/utils'); Ct.module('core-test:utils.fmt'); Ct.test("should interpolate % @", function(t, done) { t.equal(ut.fmt('%@ is %@', 'foo', 'bar'), 'foo is bar', 'interpolate %@ is %@'); done(); }); Ct.test('should interpolate positional items', function(t, done) { t.equal(ut.fmt('%@2 is %@1', 'foo', 'bar'), 'bar is foo', 'should interpolate %@# as positional'); done(); }); Ct.run();
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spade-0.0.1 | packages/core-test/tests/utils/fmt-test.js |