Lines Matching refs:equal

20       assert.equal(underscore.identity(1), 1);
22 assert.equal(this._, void 0, 'global underscore is removed');
44 assert.equal(context._, 'oldvalue');
45 assert.equal(context.underscore.VERSION, _.VERSION);
61 assert.equal(_.identity(stooge), stooge, 'stooge is the same as his identity');
66 assert.equal(_.constant(stooge)(), stooge, 'should create a function that returns stooge');
75 … assert.equal(_.property('name')(stooge), 'moe', 'should return the property with the given name');
76 assert.equal(_.property('name')(null), void 0, 'should return undefined for null values');
77 … assert.equal(_.property('name')(void 0), void 0, 'should return undefined for undefined values');
82 assert.equal(stoogeRanks('curly'), 2, 'should return the property with the given name');
83 assert.equal(stoogeRanks(null), void 0, 'should return undefined for null values');
84 assert.equal(stoogeRanks(void 0), void 0, 'should return undefined for undefined values');
89 …assert.equal(moreStoogeRanks('curly'), 2, 'should return properties from further up the prototype …
92 assert.equal(nullPropertyOf('curly'), void 0, 'should return undefined when obj is null');
95 assert.equal(undefPropertyOf('curly'), void 0, 'should return undefined when obj is undefined');
120 assert.equal(_.uniq(ids).length, ids.length, 'can generate a globally-unique stream of ids');
145 assert.equal(ret, _, 'returns the _ object to facilitate chaining');
146 assert.equal(_.myReverse('panacea'), 'aecanap', 'mixed in a function to _');
147 assert.equal(_('champ').myReverse(), 'pmahc', 'mixed in a function to the OOP wrapper');
151 assert.equal(_.escape(null), '');
156 assert.equal(_.unescape(null), '');
157 assert.equal(_.unescape(_.escape(string)), string);
158 assert.equal(_.unescape(string), string, 'don\'t unescape unnecessarily');
170 assert.equal(s, _.unescape(e), escapeChar + ' can be unescaped');
175 assert.equal(e.indexOf(escapeChar), -1, 'can escape multiple occurances of ' + escapeChar);
176 assert.equal(_.unescape(e), s, 'multiple occurrences of ' + escapeChar + ' can be unescaped');
193 assert.equal(_.unescape(str), str, 'can unescape &');
199 assert.equal(result, "This is gettin' on my noives!", 'can do basic attribute interpolation');
202 assert.equal(sansSemicolonTemplate(), 'A B');
205 assert.equal(backslashTemplate({thing: 'This'}), 'This is \\ridanculous');
208 …assert.equal(escapeTemplate({a: true}), 'checked="checked"', 'can handle slash escapes in interpol…
214 …assert.equal(result, '<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>', 'can run arbitrary javas…
218 …assert.equal(result, '<ul><li>one</li><li>two</li><li>three</li><li>four</li></ul>', 'Can use esca…
229 …assert.equal(result, '3 p3-thumbnail.gif <div class="thumbnail" rel="p1-thumbnail.gif"></div><div …
233 …assert.equal(result, '<div><p>Just some text. Hey, I know this is silly but it aids consistency.</…
236 assert.equal(quoteTemplate({}), "It's its, not it's");
241 assert.equal(quoteInStatementAndBody({foo: 'bar'}), "Statement quotes and 'quotes'.");
244 assert.equal(withNewlinesAndTabs({x: 'that'}), 'This\n\t\tis: that.\n\tok.\nend.');
248 assert.equal(result, '<i>&lt;script&gt;</i>');
254 assert.equal(stooge.template(), "I'm Moe");
262 assert.equal(template({data: 12345}).replace(/\s/g, ''), '<li>24690</li>');
271 …assert.equal(result, '<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>', 'can run arbitrary javas…
274 assert.equal(customQuote({}), "It's its, not it's");
277 assert.equal(quoteInStatementAndBody({foo: 'bar'}), "Statement quotes and 'quotes'.");
286 …assert.equal(result, '<ul><li>Moe</li><li>Larry</li><li>Curly</li></ul>', 'can run arbitrary javas…
289 assert.equal(customWithSpecialCharsQuote({}), "It's its, not it's");
292 assert.equal(quoteInStatementAndBody({foo: 'bar'}), "Statement quotes and 'quotes'.");
299 assert.equal(mustache({planet: 'World'}), 'Hello World!', 'can mimic mustache.js');
302 …assert.equal(templateWithNull({planet: 'world'}), 'a null undefined world', 'can handle missing es…