Skip to content

Commit

Permalink
Merge pull request #102 from libcheck/fix-printf-format
Browse files Browse the repository at this point in the history
Remove usage of "lg" in printf format
  • Loading branch information
brarcher authored Dec 23, 2016
2 parents b648c9a + ca8bd05 commit 19903b9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ test_script:
# Unit tests on Cygwin currently do not all pass
#- if %platform%==cygwin bash -c "make check || cat tests/test-suite.log && false"
# check_check does not work on MinGW
#- if %platform%==mingw32 tests\check_check.exe
- if %platform%==mingw32 tests\check_check.exe
- if %platform%==mingw64msys bash -c "tests/check_check"
30 changes: 15 additions & 15 deletions src/check.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_float_nonnan(X) _ck_assert_floating_nonnan(X, float, "l")
#define ck_assert_float_nonnan(X) _ck_assert_floating_nonnan(X, float, "")

/**
* Check two double precision floating point numbers to determine if X == Y
Expand All @@ -975,7 +975,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_eq(X, Y) _ck_assert_floating(X, ==, Y, double, "l")
#define ck_assert_double_eq(X, Y) _ck_assert_floating(X, ==, Y, double, "")
/**
* Check two double precision floating point numbers to determine if X != Y
*
Expand All @@ -988,7 +988,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_ne(X, Y) _ck_assert_floating(X, !=, Y, double, "l")
#define ck_assert_double_ne(X, Y) _ck_assert_floating(X, !=, Y, double, "")
/**
* Check two double precision floating point numbers to determine if X < Y
*
Expand All @@ -1001,7 +1001,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_lt(X, Y) _ck_assert_floating(X, <, Y, double, "l")
#define ck_assert_double_lt(X, Y) _ck_assert_floating(X, <, Y, double, "")
/**
* Check two double precision floating point numbers to determine if X <= Y
*
Expand All @@ -1014,7 +1014,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_le(X, Y) _ck_assert_floating(X, <=, Y, double, "l")
#define ck_assert_double_le(X, Y) _ck_assert_floating(X, <=, Y, double, "")
/**
* Check two double precision floating point numbers to determine if X > Y
*
Expand All @@ -1027,7 +1027,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_gt(X, Y) _ck_assert_floating(X, >, Y, double, "l")
#define ck_assert_double_gt(X, Y) _ck_assert_floating(X, >, Y, double, "")
/**
* Check two double precision floating point numbers to determine if X >= Y
*
Expand All @@ -1040,7 +1040,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_ge(X, Y) _ck_assert_floating(X, >=, Y, double, "l")
#define ck_assert_double_ge(X, Y) _ck_assert_floating(X, >=, Y, double, "")

/**
* Check two double precision floating point numbers to determine if X≈Y
Expand All @@ -1056,7 +1056,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_eq_tol(X, Y, T) _ck_assert_floating_absdiff_op_tol(X, Y, <, T, double, "l")
#define ck_assert_double_eq_tol(X, Y, T) _ck_assert_floating_absdiff_op_tol(X, Y, <, T, double, "")

/**
* Check two double precision floating point numbers to determine if not X≈Y
Expand All @@ -1072,7 +1072,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_ne_tol(X, Y, T) _ck_assert_floating_absdiff_op_tol(X, Y, >=, T, double, "l")
#define ck_assert_double_ne_tol(X, Y, T) _ck_assert_floating_absdiff_op_tol(X, Y, >=, T, double, "")

/**
* Check two double precision floating point numbers to determine if X>≈Y
Expand All @@ -1088,7 +1088,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_ge_tol(X, Y, T) _ck_assert_floating_op_tol(X, >, Y, T, -1, double, "l")
#define ck_assert_double_ge_tol(X, Y, T) _ck_assert_floating_op_tol(X, >, Y, T, -1, double, "")

/**
* Check two double precision floating point numbers to determine if X<≈Y
Expand All @@ -1104,7 +1104,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_le_tol(X, Y, T) _ck_assert_floating_op_tol(X, <, Y, T, 1, double, "l")
#define ck_assert_double_le_tol(X, Y, T) _ck_assert_floating_op_tol(X, <, Y, T, 1, double, "")

/**
* Check that a double precision floating point number is finite; i.e. is
Expand All @@ -1118,7 +1118,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_finite(X) _ck_assert_floating_finite(X, double, "l")
#define ck_assert_double_finite(X) _ck_assert_floating_finite(X, double, "")

/**
* Check that a double precision floating point number is infinite,
Expand All @@ -1132,7 +1132,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_infinite(X) _ck_assert_floating_infinite(X, double, "l")
#define ck_assert_double_infinite(X) _ck_assert_floating_infinite(X, double, "")

/**
* Check that a double precision floating point number
Expand All @@ -1146,7 +1146,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_nan(X) _ck_assert_floating_nan(X, double, "l")
#define ck_assert_double_nan(X) _ck_assert_floating_nan(X, double, "")

/**
* Check that a double precision floating point number is
Expand All @@ -1160,7 +1160,7 @@ do { \
*
* @since 0.11.0
*/
#define ck_assert_double_nonnan(X) _ck_assert_floating_nonnan(X, double, "l")
#define ck_assert_double_nonnan(X) _ck_assert_floating_nonnan(X, double, "")

/**
* Check two double precision floating point numbers to determine if X == Y
Expand Down

0 comments on commit 19903b9

Please sign in to comment.