<commit_before>
#include "unity.h"
#include "CoinChanger.h"

void test_CoinChangerCreateShouldReturnNonNull(void) {
	TEST_ASSERT_NOT_NULL(CoinChangerCreate());
}

void test_CoinChangerDestroyShouldReturnNull(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_NULL(CoinChangerDestroy(changer));
}

void test_CoinChangerGetNickelsShouldStartUninitialized(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_EQUAL_INT8(COINCHANGER_PROPERTY_UNINITIALIZED, CoinChangerGetNickels(changer));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetNickelsShouldReturnTrue(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_TRUE(CoinChangerSetNickels(changer, 40));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetNickelsShouldPersist(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_TRUE(CoinChangerSetNickels(changer, 80));
	TEST_ASSERT_EQUAL_INT8(80, CoinChangerGetNickels(changer));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetNickelsInvalidValueShouldReturnFalse(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_FALSE(CoinChangerSetNickels(changer, 128));
	CoinChangerDestroy(changer);
}

void test_CoinChangerGetDimesShouldStartUninitialized(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_EQUAL_INT8(COINCHANGER_PROPERTY_UNINITIALIZED, CoinChangerGetDimes(changer));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetDimesShouldReturnTrue(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_TRUE(CoinChangerSetDimes(changer, 50));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetDimesShouldPersist(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_TRUE(CoinChangerSetDimes(changer, 80));
	TEST_ASSERT_EQUAL_INT8(80, CoinChangerGetDimes(changer));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetDimesInvalidValueShouldReturnFalse(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_FALSE(CoinChangerSetDimes(changer, 128));
	CoinChangerDestroy(changer);
}

int main(void) {
	UNITY_BEGIN();
	RUN_TEST(test_CoinChangerCreateShouldReturnNonNull);
	RUN_TEST(test_CoinChangerDestroyShouldReturnNull);
	RUN_TEST(test_CoinChangerGetNickelsShouldStartUninitialized);
	RUN_TEST(test_CoinChangerSetNickelsShouldReturnTrue);
	RUN_TEST(test_CoinChangerSetNickelsShouldPersist);
	RUN_TEST(test_CoinChangerSetNickelsInvalidValueShouldReturnFalse);
	RUN_TEST(test_CoinChangerGetDimesShouldStartUninitialized);
	RUN_TEST(test_CoinChangerSetDimesShouldReturnTrue);
	RUN_TEST(test_CoinChangerSetDimesShouldPersist);
	RUN_TEST(test_CoinChangerSetDimesInvalidValueShouldReturnFalse);
	return UNITY_END();
}<commit_msg>test CoinChangerSetDimes with two rolls<commit_after>
#include "unity.h"
#include "CoinChanger.h"

void test_CoinChangerCreateShouldReturnNonNull(void) {
	TEST_ASSERT_NOT_NULL(CoinChangerCreate());
}

void test_CoinChangerDestroyShouldReturnNull(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_NULL(CoinChangerDestroy(changer));
}

void test_CoinChangerGetNickelsShouldStartUninitialized(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_EQUAL_INT8(COINCHANGER_PROPERTY_UNINITIALIZED, CoinChangerGetNickels(changer));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetNickelsShouldReturnTrue(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_TRUE(CoinChangerSetNickels(changer, 40));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetNickelsShouldPersist(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_TRUE(CoinChangerSetNickels(changer, 80));
	TEST_ASSERT_EQUAL_INT8(80, CoinChangerGetNickels(changer));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetNickelsInvalidValueShouldReturnFalse(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_FALSE(CoinChangerSetNickels(changer, 128));
	CoinChangerDestroy(changer);
}

void test_CoinChangerGetDimesShouldStartUninitialized(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_EQUAL_INT8(COINCHANGER_PROPERTY_UNINITIALIZED, CoinChangerGetDimes(changer));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetDimesShouldReturnTrue(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_TRUE(CoinChangerSetDimes(changer, 50));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetDimesShouldPersist(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_TRUE(CoinChangerSetDimes(changer, 100));
	TEST_ASSERT_EQUAL_INT8(100, CoinChangerGetDimes(changer));
	CoinChangerDestroy(changer);
}

void test_CoinChangerSetDimesInvalidValueShouldReturnFalse(void) {
	CoinChanger *changer = CoinChangerCreate();
	TEST_ASSERT_FALSE(CoinChangerSetDimes(changer, 128));
	CoinChangerDestroy(changer);
}

int main(void) {
	UNITY_BEGIN();
	RUN_TEST(test_CoinChangerCreateShouldReturnNonNull);
	RUN_TEST(test_CoinChangerDestroyShouldReturnNull);
	RUN_TEST(test_CoinChangerGetNickelsShouldStartUninitialized);
	RUN_TEST(test_CoinChangerSetNickelsShouldReturnTrue);
	RUN_TEST(test_CoinChangerSetNickelsShouldPersist);
	RUN_TEST(test_CoinChangerSetNickelsInvalidValueShouldReturnFalse);
	RUN_TEST(test_CoinChangerGetDimesShouldStartUninitialized);
	RUN_TEST(test_CoinChangerSetDimesShouldReturnTrue);
	RUN_TEST(test_CoinChangerSetDimesShouldPersist);
	RUN_TEST(test_CoinChangerSetDimesInvalidValueShouldReturnFalse);
	return UNITY_END();
}
{'fraction_non_alphanumeric': 0.08521674694331234, 'fraction_numerical': 0.008521674694331233, 'mean_word_length': 13.711171662125341, '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': '734304', 'n_tokens_mistral': 2003, 'n_tokens_neox': 1932, 'n_words': 198}