Fix failing tests
This commit is contained in:
parent
7b74ab3687
commit
1a10720a06
2 changed files with 3 additions and 4 deletions
|
@ -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)>>() {
|
||||
|
|
|
@ -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},
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue