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

Different output in runtests.jl versus in REPL when prepending padding #57

Open
kpa28-git opened this issue Feb 14, 2023 · 0 comments
Open

Comments

@kpa28-git
Copy link

Running PaddedView(missing, 1:7, (-2:7,)) in the REPL outputs this:

10-element PaddedView(missing, ::UnitRange{Int64}, (-2:7,)) with eltype Union{Missing, Int64} with indices -2:7:
  missing
  missing
  missing
 1
 2
 3
 4
 5
 6
 7

This line @show PaddedView(missing, 1:7, (-2:7,)) in a runtests.jl for a package ExamplePackage (where Pkg>test ExamplePackage was used to run tests) shows this (using the latest release of PaddedViews):

PaddedView(missing, 1:7, (-2:7,)) = Union{Missing, Int64}[1, 2, 3, 4, 5, 6, 7, #undef, #undef,
#undef]

This behavior only happens with prepended padding, appended padding outputs the same result in both REPL and runtests.jl:

PaddedView(missing, 1:7, (1:10,)) = Union{Missing, Int64}[1, 2, 3, 4, 5, 6, 7, missing, missing, missing]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant