Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shellsortorder tests should also test the update to 'i' #159

Open
MichaelChirico opened this issue Feb 2, 2025 · 0 comments
Open

shellsortorder tests should also test the update to 'i' #159

MichaelChirico opened this issue Feb 2, 2025 · 0 comments
Labels
testing Bugs related to package tests

Comments

@MichaelChirico
Copy link
Collaborator

#158 adds tests of shellsortorder(), but only of the y output, not of i. I don't really understand this function yet, and am only flying by for now, so earmarking this for future work.

x = as.integer64(1:3)
y = sample(x)
y
# integer64
# [1] 1 3 2
i = seq_along(y)
shellsortorder(y, i)
# [1] 0
y
# integer64
# [1] 1 2 3
i
# [1] 1 3 2
@MichaelChirico MichaelChirico added the testing Bugs related to package tests label Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Bugs related to package tests
Projects
None yet
Development

No branches or pull requests

1 participant