Skip to content

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

@MichaelChirico

Description

@MichaelChirico

#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingBugs related to package tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions