Sha256: f97aab5e36902bb64944563659e6a1598c0fd189b249921e23f768e6d55f4da0

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 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 "unity.h"
#include "example_file_call.h"
// mock header should have higher priority than real file
#include "example_file.h"
#include "mock_example_file.h"

void setUp(void) {}
void tearDown(void) {}

void test_add_numbers_adds_numbers(void) {
  add_numbers_ExpectAndReturn(1, 1, 2);
  TEST_ASSERT_EQUAL_INT(2, call_add_numbers(1, 1));
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ceedling-1.0.1 assets/test_example_file_with_mock.c
ceedling-1.0.0 assets/test_example_file_with_mock.c