Package ns.foundation

Examples of ns.foundation.NSMutableRange.location()


    assertEquals(0, range.length());
  }

  public void testNSMutableRangeIntInt() {
    NSMutableRange range = new NSMutableRange(2,3);
    assertEquals(2, range.location());
    assertEquals(3, range.length());
  }

  public void testNSMutableRangeNSRange() {
    NSMutableRange range = new NSMutableRange(1,1);
View Full Code Here


  public void testIntersectRange() {
    NSMutableRange range = new NSMutableRange(2,3);
    NSRange otherRange = new NSRange(3, 3);
    range.intersectRange(otherRange);
    assertEquals(3, range.location());
    assertEquals(2, range.length());
  }

  public void testSetLength() {
    NSMutableRange range = new NSMutableRange(2,3);
View Full Code Here

    assertEquals(1, range.length());
  }

  public void testSetLocation() {
    NSMutableRange range = new NSMutableRange(2,3);
    assertEquals(2, range.location());
    range.setLocation(1);
    assertEquals(1, range.location());
  }

  public void testUnionRange() {
View Full Code Here

  public void testSetLocation() {
    NSMutableRange range = new NSMutableRange(2,3);
    assertEquals(2, range.location());
    range.setLocation(1);
    assertEquals(1, range.location());
  }

  public void testUnionRange() {
    NSMutableRange range = new NSMutableRange(2,3);
    NSRange otherRange = new NSRange(3, 3);
View Full Code Here

  public void testUnionRange() {
    NSMutableRange range = new NSMutableRange(2,3);
    NSRange otherRange = new NSRange(3, 3);
    range.unionRange(otherRange);
    assertEquals(2, range.location());
    assertEquals(4, range.length());
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.