Sha256: 7cee73782af294783c64970cb6deb8829a85e5c757dfed0a18687a1b308e94ca

Contents?: true

Size: 609 Bytes

Versions: 113

Compression:

Stored size: 609 Bytes

Contents

#include "vendor/unity.h"
#include "../src/palindrome_products.h"

void test_palindromes_list(void)
{
   Pair palind = getPalindromeProduct(1, 9);
   TEST_ASSERT_EQUAL_INT(1, palind.small_palind);
   TEST_ASSERT_EQUAL_INT(9, palind.larg_palind);
}

void test_palindromes_list2(void)
{
   Pair palind = getPalindromeProduct(10, 99);
   TEST_ASSERT_EQUAL_INT(121, palind.small_palind);
   TEST_ASSERT_EQUAL_INT(9009, palind.larg_palind);
}

int main(void)
{
   UnityBegin("test/test_palindrome_products.c");
   RUN_TEST(test_palindromes_list);
   RUN_TEST(test_palindromes_list2);
   UnityEnd();
   return 0;
}

Version data entries

113 entries across 113 versions & 1 rubygems

Version Path
trackler-2.2.1.42 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.41 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.40 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.39 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.38 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.37 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.36 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.35 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.34 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.33 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.32 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.31 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.30 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.29 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.28 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.27 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.26 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.25 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.24 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c
trackler-2.2.1.23 tracks/c/exercises/palindrome-products/test/test_palindrome_products.c