Skip to content

Commit e3c51a9

Browse files
committed
np.f64
1 parent 35d4d93 commit e3c51a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

quaddtype/tests/test_quaddtype.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,16 +435,16 @@ def test_reduction_ops(self, op, input_array):
435435
def test_scalar_reduction_ops(self, val_str):
436436
"""Test reduction operations on scalar QuadPrecision values."""
437437
quad_val = QuadPrecision(val_str)
438-
float_val = float(val_str)
439-
440-
result_all = np.all(quad_val)
441-
expected_all_result = np.all(float_val)
438+
float_val = np.float64(val_str)
439+
440+
result_all = quad_val.all()
441+
expected_all_result = float_val.all()
442442
assert result_all == expected_all_result, (
443443
f"Scalar all failed for {val_str}: expected {expected_all_result}, got {result_all}"
444444
)
445445

446-
result_any = np.any(quad_val)
447-
expected_any_result = np.any(float_val)
446+
result_any = quad_val.any()
447+
expected_any_result = float_val.any()
448448
assert result_any == expected_any_result, (
449449
f"Scalar any failed for {val_str}: expected {expected_any_result}, got {result_any}"
450450
)

0 commit comments

Comments
 (0)