Hypothesis-awkward: Property-Based Testing Strategies for Awkward Array
Tai Sakuma, Ianna Osborne, Peter Elmer
Key points
From the paper's conclusion- Property-based tests written with these strategies have begun to run in the continuous integration of Awkward Array; to date, they cover a small part of Awkward Array and have found 37 bugs in it, as well as one in Hypothesis itself.
Abstract
Hypothesis-awkward is a collection of Hypothesis strategies for Awkward Array. Awkward Array can represent a wide variety of nested, variable-length, mixed-type data. Many tools that process Awkward Arrays are widely used and actively developed. The unit test cases of many of these tools list predefined input samples. In practice, such samples can cover only a small portion of the vast combinatorial space of Awkward Array instances. Hypothesis, a Python property-based testing library, generates test data that can make test cases fail and automatically explores edge cases. The main strategy of Hypothesis-awkward generates nearly all possible Awkward Arrays, with options to control the layout, data types, missing values, masks, and other array attributes. Property-based tests written with these strategies have begun to run in the continuous integration of Awkward Array; to date, they cover a small part of Awkward Array and have found 37 bugs in it, as well as one in Hypothesis itself. These strategies make the tests of Awkward Array and of the tools that use it more reliable.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- PropCov: Effective Coverage Reporting for Property-Based TestingProceedings of the ACM on Software Engineering · 2026
- GPU Acceleration of Awkward Arrays: Using Python cuda.computearXiv · 2026
- Underpinning Property-Based TestingarXiv · 2026
- Ephyra: A Property-Based Testing Framework for the LLM EraarXiv · 2026
- A Multi-Domain Study on the Effectiveness of LLMs at Writing Property-Based TestsarXiv · 2026
- Property-Based Testing for Robust Softmax and Cross-EntropyarXiv · 2026