// Path: library/src/main/java/com/wdullaer/materialdatetimepicker/time/TimePickerDialog.java
// public static final int HOUR_INDEX = 0;
// 
// Path: library/src/main/java/com/wdullaer/materialdatetimepicker/time/TimePickerDialog.java
// public static final int MINUTE_INDEX = 1;


import static com.wdullaer.materialdatetimepicker.time.TimePickerDialog.HOUR_INDEX;
import static com.wdullaer.materialdatetimepicker.time.TimePickerDialog.MINUTE_INDEX;
import org.junit.Test;
import org.junit.Assert;
        Timepoint[] selectableDays = {
                new Timepoint(13),
                new Timepoint(14)
        };
        DefaultTimepointLimiter limiter  = new DefaultTimepointLimiter();

        limiter.setSelectableTimes(selectableDays);

        Assert.assertTrue(limiter.isOutOfRange(input));
    }

    @Test
    public void isOutOfRangeShouldReturnFalseIfInputSelectable() {
        Timepoint input = new Timepoint(15);
        Timepoint[] selectableDays = {
                new Timepoint(4),
                new Timepoint(10),
                new Timepoint(15)
        };
        DefaultTimepointLimiter limiter = new DefaultTimepointLimiter();

        limiter.setSelectableTimes(selectableDays);

        Assert.assertFalse(limiter.isOutOfRange(input));
    }

    @Test
    public void isOutOfRangeWithIndexShouldHandleNull() {
        DefaultTimepointLimiter limiter = new DefaultTimepointLimiter();

// Path: library/src/main/java/com/wdullaer/materialdatetimepicker/time/TimePickerDialog.java
// public static final int HOUR_INDEX = 0;
// 
// Path: library/src/main/java/com/wdullaer/materialdatetimepicker/time/TimePickerDialog.java
// public static final int MINUTE_INDEX = 1;


// Path: library/src/test/java/com/wdullaer/materialdatetimepicker/time/DefaultTimepointLimiterTest.java
import static com.wdullaer.materialdatetimepicker.time.TimePickerDialog.HOUR_INDEX;
import static com.wdullaer.materialdatetimepicker.time.TimePickerDialog.MINUTE_INDEX;
import org.junit.Test;
import org.junit.Assert;

        Timepoint[] selectableDays = {
                new Timepoint(13),
                new Timepoint(14)
        };
        DefaultTimepointLimiter limiter  = new DefaultTimepointLimiter();

        limiter.setSelectableTimes(selectableDays);

        Assert.assertTrue(limiter.isOutOfRange(input));
    }

    @Test
    public void isOutOfRangeShouldReturnFalseIfInputSelectable() {
        Timepoint input = new Timepoint(15);
        Timepoint[] selectableDays = {
                new Timepoint(4),
                new Timepoint(10),
                new Timepoint(15)
        };
        DefaultTimepointLimiter limiter = new DefaultTimepointLimiter();

        limiter.setSelectableTimes(selectableDays);

        Assert.assertFalse(limiter.isOutOfRange(input));
    }

    @Test
    public void isOutOfRangeWithIndexShouldHandleNull() {
        DefaultTimepointLimiter limiter = new DefaultTimepointLimiter();

        Assert.assertFalse(limiter.isOutOfRange(null, HOUR_INDEX, Timepoint.TYPE.SECOND));