mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-08-23 11:39:57 +00:00
- fixed order of test assert bits
- test_runner_generator now protects against directories in include statements git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@61 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
@@ -104,7 +104,7 @@ class UnityTestRunnerGenerator
|
|||||||
def find_mocks(includes)
|
def find_mocks(includes)
|
||||||
mock_headers = []
|
mock_headers = []
|
||||||
includes.each do |include_file|
|
includes.each do |include_file|
|
||||||
mock_headers << include_file if (include_file =~ /^mock/i)
|
mock_headers << File.basename(include_file) if (include_file =~ /^mock/i)
|
||||||
end
|
end
|
||||||
return mock_headers
|
return mock_headers
|
||||||
end
|
end
|
||||||
|
|||||||
+2
-2
@@ -109,7 +109,7 @@ void UnityPrintNumberHex(const unsigned long number, const char nibbles_to_print
|
|||||||
|
|
||||||
void UnityPrintMask(const unsigned long mask, const unsigned long number)
|
void UnityPrintMask(const unsigned long mask, const unsigned long number)
|
||||||
{
|
{
|
||||||
unsigned long bit = 0x00000001;
|
unsigned long bit = 0x80000000;
|
||||||
long i;
|
long i;
|
||||||
|
|
||||||
for (i = 0; i < 32; i++)
|
for (i = 0; i < 32; i++)
|
||||||
@@ -129,7 +129,7 @@ void UnityPrintMask(const unsigned long mask, const unsigned long number)
|
|||||||
{
|
{
|
||||||
UNITY_OUTPUT_CHAR('X');
|
UNITY_OUTPUT_CHAR('X');
|
||||||
}
|
}
|
||||||
bit = bit << 1;
|
bit = bit >> 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user