Fix failing tests

This commit is contained in:
Michael Bradley 2025-01-10 19:34:12 +13:00
parent 7b74ab3687
commit 1a10720a06
Signed by: MichaelBradley
SSH key fingerprint: SHA256:cj/YZ5VT+QOKncqSkx+ibKTIn0Obg7OIzwzl9BL8EO8
2 changed files with 3 additions and 4 deletions

View file

@ -62,7 +62,6 @@ impl PairedQueue {
}
}
// TODO: Support u64
impl<'py> PairedQueue {
fn new_from_any(object: &Bound<'py, PyAny>) -> PyResult<Self> {
if let Ok(vec) = object.extract::<Vec<(Py<PyAny>, f64)>>() {

View file

@ -20,9 +20,9 @@ def test_empty_creation():
[("a", 0), ("b", 1), ("c", 2)],
((0, 0), (1, 1), (2, 2)),
((0.0, 0.0), (1.0, 1.0), (2.0, 2.0)),
((lambda: None, 0)),
((Exception(), 0.0)),
(([], -1)),
((lambda: None, 0),),
((Exception(), 0.0),),
(([], -1),),
{},
{"a": 0, "b": 1, "c": 2},
))