@@ -0,0 +1,1357 @@
+//  Copyright 2016 The Minorminor Open Source Project%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A//     http://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A//%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class IntervalsTest %7B%0A%0A    @Test(timeout = 3000L, expected = Test.None.class)%0A    public void testHavePermutation() %7B%0A        Intervals is = new Intervals();%0A        is.add(6, 7);%0A        is.add(3, 5);%0A        Assert.assertEquals(is.toString(), %22%5B%5B3, 5%5D, %5B6, 7%5D%5D%22);%0A%0A        is.add(8, 9);%0A        Assert.assertEquals(is.toString(), %22%5B%5B3, 5%5D, %5B6, 7%5D, %5B8, 9%5D%5D%22);%0A%0A        is.add(7, 9);%0A        Assert.assertEquals(is.toString(), %22%5B%5B3, 5%5D, %5B6, 9%5D%5D%22);%0A%0A        is.add(1, 19);%0A        Assert.assertEquals(is.toString(), %22%5B%5B1, 19%5D%5D%22);%0A%0A        Assert.assertEquals(is.query(4), true);%0A        Assert.assertEquals(is.query(0), false);%0A        Assert.assertEquals(is.query(20), false);%0A    %7D%0A%7D%0A

Add IntervalsTest