Empty { private Empty() {} private  Empty(); @SuppressWarnings("unchecked") static MSeq<T> mseq(); @SuppressWarnings("unchecked") static ISeq<T> iseq();  }
@Test public void seqSubSeq() { final Seq<String> empty = Seq.empty(); Assert.assertEquals(empty.subSeq(0), empty); Assert.assertEquals(empty.subSeq(0, 0), empty); }
@Test(expectedExceptions = IndexOutOfBoundsException.class) public void seqSubSeqOutOfBounds1() { Seq.empty().subSeq(-1); }
@Test(expectedExceptions = IllegalArgumentException.class) public void seqSubSeqOutOfBounds2() { Seq.empty().subSeq(1); }
@Test public void mseqSubSeq() { final MSeq<String> empty = MSeq.empty(); Assert.assertEquals(empty.subSeq(0), empty); Assert.assertEquals(empty.subSeq(0, 0), empty); }
@Test(expectedExceptions = IndexOutOfBoundsException.class) public void mseqSubSeqOutOfBounds1() { MSeq.empty().subSeq(-1); }
@Test(expectedExceptions = IllegalArgumentException.class) public void mseqSubSeqOutOfBounds2() { MSeq.empty().subSeq(1); }
@Test public void iseqSubSeq() { final ISeq<String> empty = ISeq.empty(); Assert.assertEquals(empty.subSeq(0), empty); Assert.assertEquals(empty.subSeq(0, 0), empty); }
@Test(expectedExceptions = IndexOutOfBoundsException.class) public void iseqSubSeqOutOfBounds1() { ISeq.empty().subSeq(-1); }
@Test(expectedExceptions = IllegalArgumentException.class) public void iseqSubSeqOutOfBounds2() { ISeq.empty().subSeq(1); }