mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 08:25:58 +01:00
More fixes to line endings
This commit is contained in:
102
test/testdata/mocksample.c
vendored
102
test/testdata/mocksample.c
vendored
@@ -1,51 +1,51 @@
|
||||
// This is just a sample test file to be used to test the generator script
|
||||
#ifndef TEST_SAMPLE_H
|
||||
#define TEST_SAMPLE_H
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "unity.h"
|
||||
#include "funky.h"
|
||||
#include "Mockstanky.h"
|
||||
|
||||
void setUp(void)
|
||||
{
|
||||
CustomSetupStuff();
|
||||
}
|
||||
|
||||
void tearDown(void)
|
||||
{
|
||||
CustomTeardownStuff
|
||||
}
|
||||
|
||||
//Yup, nice comment
|
||||
void test_TheFirstThingToTest(void)
|
||||
{
|
||||
TEST_ASSERT(1);
|
||||
|
||||
TEST_ASSERT_TRUE(1);
|
||||
}
|
||||
|
||||
/*
|
||||
void test_ShouldBeIgnored(void)
|
||||
{
|
||||
DoesStuff();
|
||||
}
|
||||
*/
|
||||
|
||||
//void test_ShouldAlsoNotBeTested(void)
|
||||
//{
|
||||
// Call_An_Expect();
|
||||
//
|
||||
// CallAFunction();
|
||||
// test_CallAFunctionThatLooksLikeATest();
|
||||
//}
|
||||
|
||||
void test_TheSecondThingToTest(void)
|
||||
{
|
||||
Call_An_Expect();
|
||||
|
||||
CallAFunction();
|
||||
test_CallAFunctionThatLooksLikeATest();
|
||||
}
|
||||
|
||||
#endif //TEST_SAMPLE_H
|
||||
// This is just a sample test file to be used to test the generator script
|
||||
#ifndef TEST_SAMPLE_H
|
||||
#define TEST_SAMPLE_H
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "unity.h"
|
||||
#include "funky.h"
|
||||
#include "Mockstanky.h"
|
||||
|
||||
void setUp(void)
|
||||
{
|
||||
CustomSetupStuff();
|
||||
}
|
||||
|
||||
void tearDown(void)
|
||||
{
|
||||
CustomTeardownStuff
|
||||
}
|
||||
|
||||
//Yup, nice comment
|
||||
void test_TheFirstThingToTest(void)
|
||||
{
|
||||
TEST_ASSERT(1);
|
||||
|
||||
TEST_ASSERT_TRUE(1);
|
||||
}
|
||||
|
||||
/*
|
||||
void test_ShouldBeIgnored(void)
|
||||
{
|
||||
DoesStuff();
|
||||
}
|
||||
*/
|
||||
|
||||
//void test_ShouldAlsoNotBeTested(void)
|
||||
//{
|
||||
// Call_An_Expect();
|
||||
//
|
||||
// CallAFunction();
|
||||
// test_CallAFunctionThatLooksLikeATest();
|
||||
//}
|
||||
|
||||
void test_TheSecondThingToTest(void)
|
||||
{
|
||||
Call_An_Expect();
|
||||
|
||||
CallAFunction();
|
||||
test_CallAFunctionThatLooksLikeATest();
|
||||
}
|
||||
|
||||
#endif //TEST_SAMPLE_H
|
||||
|
||||
16
test/testdata/sample.yml
vendored
16
test/testdata/sample.yml
vendored
@@ -1,9 +1,9 @@
|
||||
:unity:
|
||||
:includes:
|
||||
- two.h
|
||||
- three.h
|
||||
- <four.h>
|
||||
:plugins:
|
||||
- :cexception
|
||||
:suite_setup: |
|
||||
:unity:
|
||||
:includes:
|
||||
- two.h
|
||||
- three.h
|
||||
- <four.h>
|
||||
:plugins:
|
||||
- :cexception
|
||||
:suite_setup: |
|
||||
a_yaml_setup();
|
||||
102
test/testdata/testsample.c
vendored
102
test/testdata/testsample.c
vendored
@@ -1,51 +1,51 @@
|
||||
// This is just a sample test file to be used to test the generator script
|
||||
#ifndef TEST_SAMPLE_H
|
||||
#define TEST_SAMPLE_H
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "unity.h"
|
||||
#include "funky.h"
|
||||
#include "stanky.h"
|
||||
|
||||
void setUp(void)
|
||||
{
|
||||
CustomSetupStuff();
|
||||
}
|
||||
|
||||
void tearDown(void)
|
||||
{
|
||||
CustomTeardownStuff
|
||||
}
|
||||
|
||||
//Yup, nice comment
|
||||
void test_TheFirstThingToTest(void)
|
||||
{
|
||||
TEST_ASSERT(1);
|
||||
|
||||
TEST_ASSERT_TRUE(1);
|
||||
}
|
||||
|
||||
/*
|
||||
void test_ShouldBeIgnored(void)
|
||||
{
|
||||
DoesStuff();
|
||||
}
|
||||
*/
|
||||
|
||||
//void test_ShouldAlsoNotBeTested(void)
|
||||
//{
|
||||
// Call_An_Expect();
|
||||
//
|
||||
// CallAFunction();
|
||||
// test_CallAFunctionThatLooksLikeATest();
|
||||
//}
|
||||
|
||||
void test_TheSecondThingToTest(void)
|
||||
{
|
||||
Call_An_Expect();
|
||||
|
||||
CallAFunction();
|
||||
test_CallAFunctionThatLooksLikeATest();
|
||||
}
|
||||
|
||||
#endif //TEST_SAMPLE_H
|
||||
// This is just a sample test file to be used to test the generator script
|
||||
#ifndef TEST_SAMPLE_H
|
||||
#define TEST_SAMPLE_H
|
||||
|
||||
#include <setjmp.h>
|
||||
#include "unity.h"
|
||||
#include "funky.h"
|
||||
#include "stanky.h"
|
||||
|
||||
void setUp(void)
|
||||
{
|
||||
CustomSetupStuff();
|
||||
}
|
||||
|
||||
void tearDown(void)
|
||||
{
|
||||
CustomTeardownStuff
|
||||
}
|
||||
|
||||
//Yup, nice comment
|
||||
void test_TheFirstThingToTest(void)
|
||||
{
|
||||
TEST_ASSERT(1);
|
||||
|
||||
TEST_ASSERT_TRUE(1);
|
||||
}
|
||||
|
||||
/*
|
||||
void test_ShouldBeIgnored(void)
|
||||
{
|
||||
DoesStuff();
|
||||
}
|
||||
*/
|
||||
|
||||
//void test_ShouldAlsoNotBeTested(void)
|
||||
//{
|
||||
// Call_An_Expect();
|
||||
//
|
||||
// CallAFunction();
|
||||
// test_CallAFunctionThatLooksLikeATest();
|
||||
//}
|
||||
|
||||
void test_TheSecondThingToTest(void)
|
||||
{
|
||||
Call_An_Expect();
|
||||
|
||||
CallAFunction();
|
||||
test_CallAFunctionThatLooksLikeATest();
|
||||
}
|
||||
|
||||
#endif //TEST_SAMPLE_H
|
||||
|
||||
Reference in New Issue
Block a user