text: // ==========================================================================
  // Project:   SproutCore Costello - Property Observing Library
  // Copyright: ©2006-2011 Strobe Inc. and contributors.
  //            Portions ©2008-2011 Apple Inc. All rights reserved.
  // License:   Licensed under MIT license (see license.js)
  // ==========================================================================
  import { SC, GLOBAL } from '../../../../core/core.js';
  
  
  var set ;
  
  module("SC.IndexSet.indexAfter", {
    beforeEach: function() {
      set = SC.IndexSet.create(5).add(10,5).add(100);
    }
  });
  
  test("no earlier index in set", function(){ 
    assert.equal(set.indexAfter(3), 5, 'set.indexAfter(3) in %@ should start of first index range'.fmt(set));
  });
  
  test("with index after end of set", function() {
    assert.equal(set.indexAfter(1000), -1, 'set.indexAfter(1000) in %@ should return -1'.fmt(set));
  });
  
  test("inside of multi-index range", function() {
    assert.equal(set.indexAfter(12), 13, 'set.indexAfter(12) in %@ should return next index'.fmt(set));
  });
  
  test("end of multi-index range", function() {
    assert.equal(set.indexAfter(14), 100, 'set.indexAfter(14) in %@ should start of next range'.fmt(set));
  });
  
  
  test("single index range", function() {
    assert.equal(set.indexAfter(5), 10, 'set.indexAfter(5) in %@ should start of next range multi-index range'.fmt(set));
  });
  
  
  
  