Skip to content

Commit 0e12b43

Browse files
committed
Update detail-stack implementation after ThrowTheSwitch#784
1 parent bddb136 commit 0e12b43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/example_5/test/TestProductionCode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void test_BitExtractor(void)
3333
{
3434
const test_vector_t test_vectors[] = {
3535
{__LINE__, 7, BIT_DIRECTION_UP, {1,1,1,0,0,0,0,0}},
36-
{__LINE__, 7, BIT_DIRECTION_DOWN, {0,0,0,0,0,1,0,1}},
36+
{__LINE__, 7, BIT_DIRECTION_DOWN, {0,0,0,0,0,1,0,1}}, // intentionally wrong to demonstrate detail output
3737
{0}
3838
};
3939
const test_vector_t* tv;

src/unity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ static void UnityAddMsgIfSpecified(const char* msg)
601601
if ((label[0] == '#') && (label[1] != 0)) {
602602
UnityPrint(label + 2);
603603
UNITY_OUTPUT_CHAR(' ');
604-
UnityPrintNumberByStyle(Unity.CurrentDetailStackValues[c], label[1]);
604+
UnityPrintUintNumberByStyle(Unity.CurrentDetailStackValues[c], label[1]);
605605
} else if (Unity.CurrentDetailStackValues[c] != 0){
606606
UnityPrint(label);
607607
UNITY_OUTPUT_CHAR(' ');

0 commit comments

Comments
 (0)