[Git][NTPsec/ntpsec][tests_numtoa] Adjusted test values for realism.
Ian Bruene
gitlab at mg.gitlab.com
Mon Jul 30 16:09:36 UTC 2018
Ian Bruene pushed to branch tests_numtoa at NTPsec / ntpsec
Commits:
3da3b42a by Ian Bruene at 2018-07-30T16:09:09Z
Adjusted test values for realism.
- - - - -
1 changed file:
- tests/libntp/numtoa.c
Changes:
=====================================
tests/libntp/numtoa.c
=====================================
@@ -29,11 +29,11 @@ TEST(numtoa, RefidStr) {
const char *res;
// Test stratum > 1
- res = refid_str(42, 8);
- TEST_ASSERT_EQUAL_STRING("42.0.0.0", res);
+ res = refid_str(0x11223344, 8);
+ TEST_ASSERT_EQUAL_STRING("68.51.34.17", res);
// Test !(stratum > 1)
- res = refid_str(42, 0);
- TEST_ASSERT_EQUAL_STRING(".*.", res);
+ res = refid_str(0x40414243, 0);
+ TEST_ASSERT_EQUAL_STRING(".CBA at .", res);
}
TEST_GROUP_RUNNER(numtoa) {
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3da3b42a0502a117aa7279cea7937dbd3e67658a
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3da3b42a0502a117aa7279cea7937dbd3e67658a
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180730/e8678b8b/attachment.html>
More information about the vc
mailing list