<commit_before>package com.github.javachat.intrange;

import com.github.javachat.common.BoundType;
import org.testng.annotations.Test;

import static org.assertj.core.api.Assertions.assertThat;

public final class IntRangeContainsTest
{
    @Test
    public void singleValueRangeTest()
    {
        final IntRange range = new IntRange(1, BoundType.CLOSED, 2,
            BoundType.OPEN);

        assertThat(range.contains(1)).isTrue();
        assertThat(range.contains(2)).isFalse();
        assertThat(range.contains(0)).isFalse();
    }
}<commit_msg>More tests for .contains()<commit_after>package com.github.javachat.intrange;

import com.github.javachat.common.BoundType;
import org.testng.annotations.Test;

import static org.assertj.core.api.Assertions.assertThat;

public final class IntRangeContainsTest
{
    @Test
    public void singleValueRangeTest()
    {
        final IntRange range = new IntRange(1, BoundType.CLOSED, 2,
            BoundType.OPEN);

        assertThat(range.contains(1)).isTrue();
        assertThat(range.contains(2)).isFalse();
        assertThat(range.contains(0)).isFalse();
    }

    @Test
    public void rangeTest1()
    {
        final IntRange range = new IntRange(-7, BoundType.OPEN, 5,
            BoundType.OPEN);

        assertThat(range.contains(3)).isTrue();
        assertThat(range.contains(-7)).isFalse();
        assertThat(range.contains(5)).isFalse();
        assertThat(range.contains(-6)).isTrue();
        assertThat(range.contains(4)).isTrue();
        assertThat(range.contains(0)).isTrue();
    }
}
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.012148337595907928, 'mean_word_length': 3.2643051771117166, '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': '2893374', 'n_tokens_mistral': 472, 'n_tokens_neox': 471, 'n_words': 77}