package com.fishercoder;

import com.fishercoder.common.classes.Interval;
import com.fishercoder.solutions._436;
import org.junit.BeforeClass;
import org.junit.Test;

public class _436Test {
    private static _436.Solution1 solution1;

    @BeforeClass
    public static void setup() {
        solution1 = new _436.Solution1();
    }

    @Test
    public void test1() {
        Interval[] intervals = new Interval[3];
        intervals[0] = new Interval(3, 4);
        intervals[1] = new Interval(2, 3);
        intervals[2] = new Interval(1, 2);
        solution1.findRightInterval(intervals);
    }

    @Test
    public void test2() {
        Interval[] intervals = new Interval[3];
        intervals[0] = new Interval(1, 4);
        intervals[1] = new Interval(2, 3);
        intervals[2] = new Interval(3, 4);
        solution1.findRightInterval(intervals);
    }
}
@@ -23,56 +23,8 @@
 r;%0A%0A
-import com.fishercoder.common.classes.Interval;%0A
 impo
@@ -321,32 +321,29 @@
 ) %7B%0A        
-Interval
+int%5B%5D
 %5B%5D intervals
@@ -353,63 +353,40 @@
 new 
-Interval%5B3%5D;%0A        intervals%5B0%5D = new Interval(
+int%5B%5D%5B%5D%7B%0A                %7B
 3, 4
-);
+%7D,
 %0A   
@@ -394,84 +394,56 @@
     
-intervals%5B1%5D = new Interval(2, 3);%0A        intervals%5B2%5D = new Interval(1, 2)
+        %7B2, 3%7D,%0A                %7B1, 2%7D%0A        %7D
 ;%0A  
@@ -539,24 +539,21 @@
         
-Interval
+int%5B%5D
 %5B%5D inter
@@ -567,63 +567,40 @@
 new 
-Interval%5B3%5D;%0A        intervals%5B0%5D = new Interval(
+int%5B%5D%5B%5D%7B%0A                %7B
 1, 4
-);
+%7D,
 %0A   
@@ -608,84 +608,56 @@
     
-intervals%5B1%5D = new Interval(2, 3);%0A        intervals%5B2%5D = new Interval(3, 4)
+        %7B2, 3%7D,%0A                %7B3, 4%7D%0A        %7D
 ;%0A  

fix build