Sha256: 8ce30e95b3a0bea3d3c9eeaa751637ab3553fcb526fd7041278ac555b54b80a8

Contents?: true

Size: 720 Bytes

Versions: 40

Compression:

Stored size: 720 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

40 entries across 17 versions & 1 rubygems

Version Path
ceedling-0.21.0 vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.21.0 vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.21.0 vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.21.0 vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.20.3 vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.20.3 vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.20.3 vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.20.3 vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.20.2 vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.20.2 vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.20.2 vendor/cmock/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.20.2 vendor/c_exception/vendor/unity/extras/fixture/test/template_fixture_tests.c
ceedling-0.19.0 vendor/c_exception/vendor/unity/extras/fixture/test/testunity_fixture.c
ceedling-0.19.0 vendor/unity/extras/fixture/test/testunity_fixture.c
ceedling-0.19.0 vendor/cmock/vendor/unity/extras/fixture/test/testunity_fixture.c
ceedling-0.19.0 vendor/cmock/vendor/c_exception/vendor/unity/extras/fixture/test/testunity_fixture.c
ceedling-0.18.0 vendor/unity/extras/fixture/test/testunity_fixture.c
ceedling-0.17.0 vendor/unity/extras/fixture/test/testunity_fixture.c
ceedling-0.16.0 vendor/unity/extras/fixture/test/testunity_fixture.c
ceedling-0.15.6 vendor/unity/extras/fixture/test/testunity_fixture.c