<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>
Hal Murray pushed to branch master
at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/0ded3250f47ee3cdd6cde55ebe7d582dab66c60b">0ded3250</a></strong>
<div>
<span>by Hal Murray</span>
<i>at 2015-12-28T18:09:35Z</i>
</div>
<pre class='commit-message'>Add a few more tests for lfptostr/ulfptoa</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
tests/libntp/lfptostr.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/0ded3250f47ee3cdd6cde55ebe7d582dab66c60b#diff-0'>
<strong>
tests/libntp/lfptostr.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/tests/libntp/lfptostr.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/tests/libntp/lfptostr.c
</span><span style="color: #aaaaaa">@@ -104,9 +104,31 @@ TEST(lfptostr, MillisecondsRoundingDown) {
</span> }
 
 TEST(lfptostr, UnsignedInteger) {
<span style="color: #000000;background-color: #ffdddd">-        l_fp test = {{3000000000UL}, 0};
-
-       TEST_ASSERT_EQUAL_STRING("3000000000.0", ulfptoa(&test, 1));
</span><span style="color: #000000;background-color: #ddffdd">+   l_fp test1 = {{3000000000UL}, 0};
+       l_fp test2 = {{3000000UL}, 0x80000000};
+       l_fp test3 = {{13UL}, 0xC0000000};
+       l_fp test4 = {{13UL}, 0x028F5C28};
+
+       l_fp test5 = {{4212665562UL}, 0x3C6BE7E6};
+       l_fp test6 = {{4212665562UL}, 0x36222683};
+       l_fp test7 = {{4212665562UL}, 0xBD3F2F5A};
+       l_fp test8a = {{1444359386UL}, 0x2E0C7582};
+       l_fp test8b = {{1444359386UL}, 0x2E0C7583};
+       l_fp test9 = {{3660323067UL}, 0x1CD3101C};
+
+       TEST_ASSERT_EQUAL_STRING("3000000000.0", ulfptoa(&test1, 1));
+       TEST_ASSERT_EQUAL_STRING("3000000000.000000", ulfptoa(&test1, 6));
+       TEST_ASSERT_EQUAL_STRING("3000000.5", ulfptoa(&test2, 1));
+       TEST_ASSERT_EQUAL_STRING("3000000.500", ulfptoa(&test2, 3));
+       TEST_ASSERT_EQUAL_STRING("13.750000", ulfptoa(&test3, 6));
+       TEST_ASSERT_EQUAL_STRING("13.010000", ulfptoa(&test4, 6));
+
+       TEST_ASSERT_EQUAL_STRING("4212665562.2360215127", ulfptoa(&test5, 10));
+       TEST_ASSERT_EQUAL_STRING("4212665562.2114585943", ulfptoa(&test6, 10));
+       TEST_ASSERT_EQUAL_STRING("4212665562.739245376", ulfptoa(&test7, 9));
+       TEST_ASSERT_EQUAL_STRING("1444359386.1798776095", ulfptoa(&test8a, 10));
+       TEST_ASSERT_EQUAL_STRING("1444359386.1798776097", ulfptoa(&test8b, 10));
+       TEST_ASSERT_EQUAL_STRING("3660323067.1125955647", ulfptoa(&test9, 10));
</span> }
 
 TEST_GROUP_RUNNER(lfptostr) {
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/0ded3250f47ee3cdd6cde55ebe7d582dab66c60b">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/0ded3250f47ee3cdd6cde55ebe7d582dab66c60b"}}</script>
</p>
</div>
</body>
</html>