Sha256: 185da05ec90e2e3ebf97259614a6eb569e1c2d54fa76806a41b96aaa63a637e8
Contents?: true
Size: 732 Bytes
Versions: 2
Compression:
Stored size: 732 Bytes
Contents
/* ========================================================================= Ceedling - Test-Centered Build System for C ThrowTheSwitch.org Copyright (c) 2010-25 Mike Karlesky, Mark VanderVoord, & Greg Williams SPDX-License-Identifier: MIT ========================================================================= */ #include <signal.h> #include "unity.h" #include "example_file.h" void setUp(void) {} void tearDown(void) {} void test_add_numbers_adds_numbers(void) { TEST_ASSERT_EQUAL_INT(2, add_numbers(1,1)); } void test_add_numbers_will_fail(void) { // Platform-independent way of forcing a crash uint32_t* nullptr = (void*) 0; uint32_t i = *nullptr; TEST_ASSERT_EQUAL_INT(2, add_numbers(i,2)); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ceedling-1.0.1 | assets/test_example_file_crash.c |
ceedling-1.0.0 | assets/test_example_file_crash.c |