<commit_before>/**    / \____  _    ______   _____ / \____   ____  _____
 *    /  \__  \/ \  / \__  \ /  __//  \__  \ /    \/ __  \   Javaslang
 *  _/  // _\  \  \/  / _\  \\_  \/  // _\  \  /\  \__/  /   Copyright 2014-2015 <NAME>
 * /___/ \_____/\____/\_____/____/\___\_____/_/  \_/____/    Licensed under the Apache License, Version 2.0
 */
package javaslang.test;

import javaslang.Tuple;
import javaslang.control.None;
import org.junit.Test;

public class CheckResultAssertionsTest {

    // -- satisfied

    @Test
    public void shouldAssertThatCheckResultIsSatisfied() {
        CheckResultAssertions.assertThat(new CheckResult.Satisfied("test", 0, false)).isSatisfied();
    }

    @Test(expected = AssertionError.class)
    public void shouldThrowWhenAssertThatNonSatisfiedCheckResultIsSatisfied() {
        CheckResultAssertions.assertThat(new CheckResult.Falsified("test", 0, Tuple.empty())).isSatisfied();
    }

    @Test
    public void shouldAssertThatCheckResultIsSatisfiedWithExhaustionTrue() {
        CheckResultAssertions.assertThat(new CheckResult.Satisfied("test", 0, true)).isSatisfiedWithExhaustion(true);
    }

    @Test
    public void shouldAssertThatCheckResultIsSatisfiedWithExhaustionFalse() {<commit_msg>minor change/comment<commit_after>/**    / \____  _    ______   _____ / \____   ____  _____
 *    /  \__  \/ \  / \__  \ /  __//  \__  \ /    \/ __  \   Javaslang
 *  _/  // _\  \  \/  / _\  \\_  \/  // _\  \  /\  \__/  /   Copyright 2014-2015 <NAME>
 * /___/ \_____/\____/\_____/____/\___\_____/_/  \_/____/    Licensed under the Apache License, Version 2.0
 */
package javaslang.test;

import javaslang.Tuple;
import javaslang.control.None;
import org.junit.Test;

public class CheckResultAssertionsTest {

    // -- satisfied

    @Test
    public void shouldAssertThatCheckResultIsSatisfied() {
        CheckResultAssertions.assertThat(new CheckResult.Satisfied("test", 0, false)).isSatisfied();
    }

    @Test(expected = AssertionError.class)
    public void shouldThrowWhenAssertThatNonSatisfiedCheckResultIsSatisfied() {
        CheckResultAssertions.assertThat(new CheckResult.Falsified("test", 0, Tuple.empty())).isSatisfied();
    }

    // -- satisfiedWithExhaustion

    @Test
    public void shouldAssertThatCheckResultIsSatisfiedWithExhaustionTrue() {
        CheckResultAssertions.assertThat(new CheckResult.Satisfied("test", 0, true)).isSatisfiedWithExhaustion(true);
    }

    @Test
    public void shouldAssertThatCheckResultIsSatisfiedWithExhaustionFalse() {
{'fraction_non_alphanumeric': 0.12748212867355044, 'fraction_numerical': 0.010325655281969817, 'mean_word_length': 2.8224582701062215, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2367485', 'n_tokens_mistral': 881, 'n_tokens_neox': 804, 'n_words': 108}