/* -------------------------------------------------- Project: a1q2 File: powersum_ptest.c Author: HBF Version: 2025-01-09 -------------------------------------------------- */ #include #include "powersum.h" int bases[] = {2, 3}; int exp_tests[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 31, 32}; int tests[] = {1, 2, 3, 4, 5, 6}; void test_power_overflow(void) { printf("------------------\n"); printf("Test: power_overflow(base,exponent)\n\n"); int base_count = sizeof bases / sizeof *bases; int exp_count = sizeof exp_tests / sizeof *exp_tests; for (int j=0; j