ThrowTheSwitch / Unity

Simple Unit Testing for C
ThrowTheSwitch.org
MIT License
4.02k stars 969 forks source link

Remove redundant line casts from `UNITY_TEST_ASSERT_*` macros #723

Closed astro-stan closed 5 months ago

astro-stan commented 5 months ago

Removes redundant type casting, which upsets static analyzers such as clang-tidy.

The line arg was casted twice - once inside the UNITY_TEST_ASSERT_* macros and then again in the UNITY_TEST_FAIL macro.