Skip to content

Commit

Permalink
Now #ifdef'ing out the "float" testcase if neither decimal nor expo…
Browse files Browse the repository at this point in the history
…nential specifiers are enabled (it's empty anyway in that case).
  • Loading branch information
eyalroz committed Feb 21, 2022
1 parent 29a7423 commit 5d00da1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_suite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ TEST_CASE("length - non-standard format", "[]" ) {
#endif


#if PRINTF_SUPPORT_DECIMAL_SPECIFIERS || PRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS
TEST_CASE("float", "[]" ) {
char buffer[100];

Expand Down Expand Up @@ -916,6 +917,7 @@ TEST_CASE("float", "[]" ) {
#endif
#endif
}
#endif // PRINTF_SUPPORT_DECIMAL_SPECIFIERS || PRINTF_SUPPORT_EXPONENTIAL_SPECIFIERS


TEST_CASE("types", "[]" ) {
Expand Down

0 comments on commit 5d00da1

Please sign in to comment.