Incomplete tests
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Chọn một mục chưa được đánh dấu thay vì đảm nhận toàn bộ tracking issue này, sau đó đọc file test được nêu tên cùng với TODO của nó hoặc issue được liên kết. Chạy module test hiện có liên quan để hiểu phạm vi bao phủ hiện tại của nó. Công việc được xem là hoàn thành khi khoảng trống đã chọn được bao phủ và test tương ứng chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
This is a tracking issue for tests that are currently incomplete. These are mostly notated in the code by TODO comments, but it's useful to note them all here too. I haven't checked everything throughly so if there is something missing that isn't noted in a comment it might not be listed here.
Note there are also some functions that aren't yet tested at all, but those are covered in separate issues (e.g., #248 #299). I also am not including tests that are currently skipped entirely as flaky (https://github.com/data-apis/array-api-tests/issues/300).
test_array_object.py
-
test_getitem_masking.py(key.ndim < x.ndim not tested)
test_creation_functions.py
The device keyword is never tested (see below)
-
test_meshgrid(no testing of theindexingargument, no testing the output shapes) -- fixed in https://github.com/data-apis/array-api-tests/pull/405
test_data_type_functions.py
-
test_astype(no complex types, no values testing, no test forcopy) -- gh-311 -
test_broadcast_arrays(no values testing) -
test_broadcast_to(no values testing) -
test_can_cast(no complex types) -- https://github.com/data-apis/array-api-tests/pull/320 -
test_finfo(no values testing) -
test_iinfo(no values testing)
test_fft.py
-
test_irfftn(no shape tests) -- fixed in https://github.com/data-apis/array-api-tests/pull/309 -
test_fftfreq,test_fftshift(no test for thedtypeargument, new in 2024.12) -- fixed in https://github.com/data-apis/array-api-tests/pull/408
test_has_names.py
- Several names are not tested for (see https://github.com/data-apis/array-api-tests/issues/224)
test_indexing.py
-
test_take(different dtypes for indices); axis=None done in https://github.com/data-apis/array-api-tests/issues/385); negative indices done in https://github.com/data-apis/array-api-tests/pull/397 -
test_take_along_axis(different dtypes for indices, broadcast-compatible indices); negative indices done in https://github.com/data-apis/array-api-tests/pull/397
test_inspection_functions.py
Basically none of the inspection APIs are currently tested, beyond the basic signature tests. Note that for many of these functions, we may not even need to use hypothesis. Just a basic test that the function outputs the right thing and a smoke test that the data outputted is correct.
- https://github.com/data-apis/array-api-tests/pull/362 adds some more smoke testing of inspection capabilities.
test_linalg.py
(note: values testing here might be hard. Values testing isn't as high priority for functions that already generally work)
-
test_det(no values testing) -
test_eigh(no values testing) -
test_eigvalsh(no values testing) -
test_eig(no values testing) -
test_eigvals(no values testing) -
test_inv(no values testing) -
test_matmul(the@__matmul__operator methods are not tested) -
test_matrix_norm(no values testing) -
test_qr(no test that Q is orthonormal) -
test_slogdet(no values testing) -
test_svdvals(no values testing; no test that it agrees withsvd()) -
test_trace(need to update dtype assertion, this should matchtest_sum) -
test_vector_norm(no values testing)
Additionally, there are some limitations in the hypothesis strategies used by some of the functions. These should be made more general so that the functions are actually tested on a full gamut of possible inputs:
-
symmetric_matrices(does not generate complex Hermitian matrices -
positive_definite_matrices(only generates stacks of identity matrices -
invertable_matrices(only generates stacks of diagonal matrices)
test_manipulation_functions.py
-
test_tile(no values testing) -- https://github.com/data-apis/array-api-tests/pull/376 -
test_repeat: only draws signed ints forrepeats; unsigned ints are problematic for numpy and torch; cf https://github.com/data-apis/array-api-tests/pull/424 -
test_reshape: no testing of thecopy=argument : done in https://github.com/data-apis/array-api-tests/pull/432
test_operators_and_elementwise_functions.py
-
test_divide(no complex numbers testing) -- fixed in gh-306 -
test_negative(there is a TODO about uints) - scalar support in binary functions: (better value testing, test complex dtypes); tracked in https://github.com/data-apis/array-api-tests/issues/364
-
test_clip: no testing of an int scalarmin/maxand a float array
test_signatures.py
Several issues tracked in other issues: https://github.com/data-apis/array-api-tests/issues/256, https://github.com/data-apis/array-api-tests/issues/171
test_sorting_functions.py
-
test_argsort(no testing of signed zeros or nans) -
test_sort(no testing of signed zeros or nans)
test_special_cases.py
Many special cases are not tested. This is tracked at https://github.com/data-apis/array-api-tests/issues/284
test_statistical_functions.py
See also https://github.com/data-apis/array-api-tests/issues/167
-
test_mean(no values testing) -
test_std(no values testing) -
test_var(no values testing)
test_utility_functions.py
-
test_diff(no values testing forn > 1)
OTHER
- Tests for device support https://github.com/data-apis/array-api-tests/issues/302
- Tests for dlpack (no cross-library tests, limited testing with non-default devices, limited testing of copy=False), cf https://github.com/data-apis/array-api-tests/pull/433
- Ngôn ngữ chính
- Python
- Star
- 74
- Fork
- 54
- Merge trung bình
- 4 giờ 35 phút
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của data-apis/array-api-tests
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
data-apis/array-api-tests#465 · 1 bình luận ·
-
Test reflected operators?Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
data-apis/array-api-tests#460 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
data-apis/array-api-tests#455 · 2 bình luận ·
-
tracking
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
data-apis/array-api-tests#381 · 9 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
data-apis/array-api-tests#379 · 10 bình luận ·
Tất cả issue của data-apis/array-api-tests
Issue tương tự
-
adr
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
kristofdegrave/homeassistant-smart-charging#1607 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
namespace operations
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
EclipseFdn/open-vsx.org#13665 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
doc good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
collective/icalendar#1865 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
canonical/opentelemetry-collector-operator#409 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
mozilla/addons-release-tests#1243 ·
Maintainer thường phản hồi trong vòng 1 ngày