Sha256: a99d06778e3e20cf6bd0f0eec90102da450bd7add454db8917f04b60bf58949d

Contents?: true

Size: 761 Bytes

Versions: 6

Compression:

Stored size: 761 Bytes

Contents

/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
 * ==========================================
 *  Unity Project - A Test Framework for C
 *  Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
 *  [Released under MIT License. Please refer to license.txt for details]
 * ========================================== */

#include "unity_fixture.h"

static int data = -1;

TEST_GROUP(mygroup);

TEST_SETUP(mygroup)
{
    data = 0;
}

TEST_TEAR_DOWN(mygroup)
{
    data = -1;
}

TEST(mygroup, test1)
{
    TEST_ASSERT_EQUAL_INT(0, data);
}

TEST(mygroup, test2)
{
    TEST_ASSERT_EQUAL_INT(0, data);
    data = 5;
}

TEST(mygroup, test3)
{
    data = 7;
    TEST_ASSERT_EQUAL_INT(7, data);
}

Version data entries

6 entries across 2 versions & 1 rubygems

Version Path
ceedling-0.29.1 vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.29.1 vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.29.1 vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.29.0 vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.29.0 vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.29.0 vendor/unity/extras/fixture/test/template_fixture_tests.c