<commit_before>/**
 * Copyright (C) 2010-12 Brookhaven National Laboratory
 * All rights reserved. Use is subject to license terms.
 */
package org.epics.util.time;

import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.*;
import org.junit.Test;

/**
 *
 * @author carcassi
 */
public class TimeIntervalTest {

    public TimeIntervalTest() {
    }

    @Test
    public void interval1() {
        TimeInterval interval = TimeInterval.between(TimeStamp.of(0, 0), TimeStamp.of(3600, 0));
        assertThat(interval.getStart(), equalTo(TimeStamp.of(0, 0)));
        assertThat(interval.getEnd(), equalTo(TimeStamp.of(3600, 0)));
    }
}<commit_msg>TimeInterval adding test.<commit_after>/**
 * Copyright (C) 2010-12 Brookhaven National Laboratory
 * All rights reserved. Use is subject to license terms.
 */
package org.epics.util.time;

import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.*;
import org.junit.Test;

/**
 *
 * @author carcassi
 */
public class TimeIntervalTest {

    public TimeIntervalTest() {
    }

    @Test
    public void interval1() {
        TimeInterval interval = TimeInterval.between(TimeStamp.of(0, 0), TimeStamp.of(3600, 0));
        assertThat(interval.getStart(), equalTo(TimeStamp.of(0, 0)));
        assertThat(interval.getEnd(), equalTo(TimeStamp.of(3600, 0)));
    }

    @Test
    public void interval2() {
        TimeInterval interval = TimeInterval.between(TimeStamp.of(3600, 0), TimeStamp.of(7200, 0));
        assertThat(interval.getStart(), equalTo(TimeStamp.of(3600, 0)));
        assertThat(interval.getEnd(), equalTo(TimeStamp.of(7200, 0)));
    }
}
{'fraction_non_alphanumeric': 0.13772090188909203, 'fraction_numerical': 0.038391224862888484, 'mean_word_length': 3.7048710601719197, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6987208', 'n_tokens_mistral': 561, 'n_tokens_neox': 516, 'n_words': 116}