<commit_before><?php

namespace Concise\Matcher;

use \Concise\TestCase;

class BooleanTest extends AbstractMatcherTestCase
{
	public function setUp()
	{
		parent::setUp();
		$this->matcher = new Boolean();
	}

	public function _test_comparisons()
	{
		$this->a = true;
		$this->b = false;
		return array(
			'true',
			'a is true',
			'b is false'
		);
	}
}
<commit_msg>Failed messages for boolean matchers<commit_after><?php

namespace Concise\Matcher;

use \Concise\TestCase;

class BooleanTest extends AbstractMatcherTestCase
{
	public function setUp()
	{
		parent::setUp();
		$this->matcher = new Boolean();
	}

	public function _test_comparisons()
	{
		$this->a = true;
		$this->b = false;
		return array(
			'true',
			'a is true',
			'b is false'
		);
	}

	public function failedMessages()
	{
		return array(
			array('false', array(), 'Failed'),
			array('? is true', array(false), 'Value is not true.'),
			array('? is false', array(true), 'Value is not false.'),
		);
	}

	/**
	 * @dataProvider failedMessages
	 */
	public function testFailedMessageForFalse($syntax, $args, $message)
	{
		$this->assertEquals($message, $this->matcher->match($syntax, $args));
	}
}

{'fraction_non_alphanumeric': 0.15659574468085105, 'fraction_numerical': 0.0, 'mean_word_length': 3.9, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '915533', 'n_tokens_mistral': 443, 'n_tokens_neox': 405, 'n_words': 102}