✘tests test_util.py

Gary E. Miller gem at rellim.com
Wed Apr 12 01:32:38 UTC 2017


Yo Ian!

I'm confused by some of the new tests. 

Like this one:

        self.assertEqual(f("1.234", nu.UNITS_SEC, nu.UNIT_MS),
                         " 1.234ms")

Does that mean the input is 1.234s and the output should be 1.234ms?

If not, the function is not very obvious.

Why is there UNITS_xxx and UNIT_xxx???  Like here:
	u.UNITS_SEC, nu.UNIT_NS

And what is this:  UNITS_PPX ??

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170411/04c02a8e/attachment.bin>


More information about the devel mailing list