mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-06-05 21:15:22 +00:00
- added target for checking ANSI compliance
- fixed ANSI (C89) issues, including #418
This commit is contained in:
Vendored
+1
-1
@@ -8,4 +8,4 @@
|
||||
#define Try if (e)
|
||||
#define Catch(a) if (!a)
|
||||
|
||||
#endif //CEXCEPTION_H
|
||||
#endif
|
||||
|
||||
Vendored
+1
-1
@@ -5,4 +5,4 @@
|
||||
|
||||
extern int CounterSuiteSetup;
|
||||
|
||||
#endif //DEF_H
|
||||
#endif
|
||||
|
||||
Vendored
+1
-1
@@ -11,4 +11,4 @@ void mockMock_Init(void) { mockMock_Init_Counter++; }
|
||||
void mockMock_Verify(void) { mockMock_Verify_Counter++; }
|
||||
void mockMock_Destroy(void) { mockMock_Destroy_Counter++; }
|
||||
|
||||
#endif //CMOCK_H
|
||||
#endif
|
||||
|
||||
Vendored
+1
-1
@@ -10,4 +10,4 @@ void mockMock_Init(void);
|
||||
void mockMock_Verify(void);
|
||||
void mockMock_Destroy(void);
|
||||
|
||||
#endif //MOCK_MOCK_H
|
||||
#endif
|
||||
|
||||
Vendored
+2
-2
@@ -108,10 +108,12 @@ void custtest_ThisTestPassesWhenCustomTeardownRan(void)
|
||||
TEST_ASSERT_EQUAL_MESSAGE(2, CounterTeardown, "Custom Teardown Wasn't Run");
|
||||
}
|
||||
|
||||
#ifndef UNITY_EXCLUDE_TESTING_NEW_COMMENTS
|
||||
//void test_NewStyleCommentsShouldBeIgnored(void)
|
||||
//{
|
||||
// TEST_ASSERT_FAIL("New Style Comments Should Be Ignored");
|
||||
//}
|
||||
#endif
|
||||
|
||||
void test_NotBeConfusedByLongComplicatedStrings(void)
|
||||
{
|
||||
@@ -185,5 +187,3 @@ void suitetest_ThisTestPassesWhenCustomSuiteSetupAndTeardownRan(void)
|
||||
{
|
||||
TEST_ASSERT_EQUAL_MESSAGE(1, CounterSuiteSetup, "Suite Setup Should Have Run");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -109,10 +109,12 @@ void custtest_ThisTestPassesWhenCustomTeardownRan(void)
|
||||
TEST_ASSERT_EQUAL_MESSAGE(2, CounterTeardown, "Custom Teardown Wasn't Run");
|
||||
}
|
||||
|
||||
#ifndef UNITY_EXCLUDE_TESTING_NEW_COMMENTS
|
||||
//void test_NewStyleCommentsShouldBeIgnored(void)
|
||||
//{
|
||||
// TEST_ASSERT_FAIL("New Style Comments Should Be Ignored");
|
||||
//}
|
||||
#endif
|
||||
|
||||
void test_NotBeConfusedByLongComplicatedStrings(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user