// a shorter sequence
IntSequence shorter = new ArraySequence(new int[] { 2, 3 });
System.out.printf("%s>%s\n", sequence, shorter);
assertTrue(sequence.compareTo(shorter) > 0);
System.out.printf("%s<%s\n", shorter, sequence);
assertTrue(shorter.compareTo(sequence) < 0);
// a longer sequence
IntSequence longer = new ArraySequence(new int[] { 2, 3, 4, 5 });
System.out.printf("%s<%s\n", sequence, longer);
assertTrue(sequence.compareTo(longer) < 0);
System.out.printf("%s>%s\n", longer, sequence);