test BUGFIX zero-compare sort result (#2178)
diff --git a/tests/utests/types/binary.c b/tests/utests/types/binary.c
index 94a1b99..35da7d5 100644
--- a/tests/utests/types/binary.c
+++ b/tests/utests/types/binary.c
@@ -305,9 +305,9 @@
v2 = "YWhveg=="; /* ahoz */
assert_int_equal(LY_SUCCESS, type->store(UTEST_LYCTX, lysc_type, v2, strlen(v2),
0, LY_VALUE_XML, NULL, LYD_VALHINT_STRING, NULL, &val2, NULL, &err));
- assert_int_equal(-1, type->sort(UTEST_LYCTX, &val1, &val2));
+ assert_true(0 > type->sort(UTEST_LYCTX, &val1, &val2));
assert_int_equal(0, type->sort(UTEST_LYCTX, &val1, &val1));
- assert_int_equal(1, type->sort(UTEST_LYCTX, &val2, &val1));
+ assert_true(0 < type->sort(UTEST_LYCTX, &val2, &val1));
type->free(UTEST_LYCTX, &val1);
type->free(UTEST_LYCTX, &val2);