Commit Graph

21 Commits

Author SHA1 Message Date
rdb a01711148b tests: add an assorted variety of unit tests
I'm mostly trying to make sure we have over-coverage for a couple of places that are being hit intermittently by our current unit tests, generating noisy codecov reports.  If we make sure these places are hit always, we hopefully won't have codecov misreport lost/gained coverage for unrelated changes.
2020-04-02 13:45:09 +02:00
rdb 9d8c523dfa putil: Assorted improvements to BitArray, SparseArray, *BitMask*:
* Support converting BitMask types to int
* BitArray constructor accepts a Python long of arbitrary size
* DoubleBitMask (and QuadBitMask, by extension) supports Python long in constructor
* Support for pickling (except DoubleBitMask)
* All of them now properly define __bool__()
* More unit tests

Fixes #886
2020-04-01 20:31:16 +02:00
rdb 30d9f88f8e Merge branch 'release/1.10.x' 2020-04-01 18:53:00 +02:00
rdb 064da09cf0 putil: add pickling support to Datagram class 2020-04-01 18:25:43 +02:00
rdb 35135ea0e1 Merge branch 'release/1.10.x' 2019-09-01 21:54:57 +02:00
rdb 61a276f49a tests: add some ModifierButtons unit tests 2019-08-28 11:04:20 +02:00
rdb daa57733cb Merge branch 'release/1.10.x' 2019-04-14 23:11:03 +02:00
rdb 6464327e6f tests: add more thorough unit test for SparseArray::clear_range 2019-04-14 17:59:55 +02:00
Epihaius 83723d38a5 tests: Create test_sparsearray.py
Closes #590
2019-04-14 17:59:29 +02:00
Hitesh Saini fff422fab7 tests: add unit tests for ClockObject
Closes #593
2019-04-02 21:34:13 +02:00
rdb a90159271b tests: remove unused fixture from Datagram tests 2018-08-26 14:02:52 +02:00
rdb 4f9a2aca85 tests: fix issues with temp files without correct case on Windows 2018-08-20 16:56:45 +02:00
rdb b1d2111037 express: add Datagram add_blob and add_blob32, et al.
This is for writing Python 2/3 agnostic code for writing binary data to a datagram, and reading from it using DatagramIterator.
2018-08-19 16:01:39 +02:00
rdb 4f55e26e61 tests: add tests for BitMask*.is_all_on() 2018-05-30 23:06:47 +02:00
rdb 8d84c58d73 express: explicitly declare defaulted Datagram copy/move ctor/assign
Fixes #329
2018-05-27 15:38:19 +02:00
Sam Edwards 339e1ce4d8 tests: Update the datagram tests 2018-05-26 18:36:46 -06:00
rdb ddc45e3529 tests: fix broken test case, add more WeakNodePath comparisons 2018-05-24 22:25:20 +02:00
rdb ae8e9d159d tests: add some unit tests for UpdateSeq 2018-05-24 21:39:05 +02:00
rdb 22f933a419 tests: disable datagram bytes() test on Python 2
See #297
2018-04-06 20:34:48 +02:00
rdb b4d29e6096 express: allow using bytes() on Datagram
Closes: #297
2018-04-06 17:42:59 +02:00
Sam Edwards 89be2c19af tests: Add tests for Datagram{,Iterator,InputFile,OutputFile}
This also includes a test for my previous commit which changes
DatagramInputFile::get_datagram().
2018-02-23 03:08:01 -07:00