Closed machakann closed 1 year ago
Additionally, this is optional but the definition of lastindex
is no longer needed, probably. Base.lastindex
also uses axes
to work.
Julia 1.0/1.3 have test failures
┌ Warning: Deprecated syntax `"begin" inside indexing expression` at /home/runner/work/HDF5.jl/HDF5.jl/test/extend_test.jl:26.
might need to version out the tests and or changes.
Additionally, this is optional but the definition of
lastindex
is no longer needed, probably.Base.lastindex
also usesaxes
to work.
If we don't need them, better to remove them for simplicity than cary uneccessary definitions.
Thank you for your comments. I will work on it. It seems I still need some tweaks for tests.
I found that the test failed without the two lines of lastindex
in julia v1.4.2 and v1.5.4. So, the two lines should be kept for v1.4 and v1.5. Probably, https://github.com/JuliaLang/julia/pull/38742 is required to remove them. I will just add a comment on it. (begin
just works without explicit firstindex
definitions.)
Does the @static
need to be pulled out of the testset ? Seems like it's not being respected
Finally, all tests passed. Since begin
is interpreted as a begin-end block in v1.3, I separate the file to avoid LoadError.
Great thanks!
Consider that
d
is aDataset
with two dimensions. Currently,d[:, end]
works, however,d[:, begin]
doesn't. This PR intended to make the latter work.The error message is: