// Generated by CoffeeScript 1.3.3
(function() {

  describe('Scouter', function() {
    it('can properly score the specificity of W3C\'s examples', function() {
      var score, scouter, selector, selectors, _results;
      scouter = new Scouter();
      selectors = {
        '*': 0,
        'LI': 1,
        'UL LI': 2,
        '#x34y': 100,
        '#s12:not(F00)': 101
      };
      _results = [];
      for (selector in selectors) {
        score = selectors[selector];
        _results.push(expect(scouter.score(selector)).toBe(score));
      }
      return _results;
    });
    return it('can sort an array of selectors', function() {
      var scouter, selectors, sortedSelectors;
      scouter = new Scouter();
      selectors = ['.header h1', 'h1', '.header', '.header h1 > em'];
      sortedSelectors = ['.header h1 > em', '.header h1', '.header', 'h1'];
      return expect(scouter.sort(selectors)).toEqual(sortedSelectors);
    });
  });

}).call(this);
        'UL OL+LI': 3,
        'H1 + *[REL=up]': 11,
        'UL OL LI.red': 13,
        'LI.red.level': 21,