Skip to content

Commit

Permalink
Add better labels to tests, reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Radchenko authored and stefanpenner committed Nov 1, 2014
1 parent 0e1ae99 commit 6db5880
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/ember-runtime/tests/core/compare_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ test('comparables should return values in the range of -1, 0, 1', function() {
var zero = Comp.create({ val: 0 });
var one = Comp.create({ val: 1 });

equal(compare('a', negOne), 1, 'Second item comparable - Should return valid range -1, 0, 1');
equal(compare('b', zero), 0, 'Second item comparable - Should return valid range -1, 0, 1');
equal(compare('c', one), -1, 'Second item comparable - Should return valid range -1, 0, 1');
equal(compare(negOne, 'a'), -1, 'First item comparable - returns -1 (not negated)');
equal(compare(zero, 'b'), 0, 'First item comparable - returns 0 (not negated)');
equal(compare(one, 'c'), 1, 'First item comparable - returns 1 (not negated)');

equal(compare(negOne, 'a'), -1, 'First itam comparable - Should return valid range -1, 0, 1');
equal(compare(zero, 'b'), 0, 'First itam comparable - Should return valid range -1, 0, 1');
equal(compare(one, 'c'), 1, 'First itam comparable - Should return valid range -1, 0, 1');
equal(compare('a', negOne), 1, 'Second item comparable - returns -1 (negated)');
equal(compare('b', zero), 0, 'Second item comparable - returns 0 (negated)');
equal(compare('c', one), -1, 'Second item comparable - returns 1 (negated)');
});

0 comments on commit 6db5880

Please sign in to comment.