Skip to content

Commit

Permalink
Add one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
penelopeysm committed Sep 12, 2024
1 parent a984dc5 commit 4cbc104
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/varname.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,19 @@ end
@test varname_from_str(repr(vn)) == vn
end

# Variables
i = 10
vn = @varname(x[i])
@test varname_from_str(repr(vn)) == vn

# Post-concretisation
x = ones(10)
vn = @varname(x[begin:end])
@test varname_from_str(repr(vn)) == vn

# When forcing concretisation
# This is broken. Should we have a repr_concretised() method or
# something like that?
vn = @varname(x[:], true)
@test_broken varname_from_str(repr(vn)) == vn
dump(varname_from_str(repr(vn)))
Expand Down

0 comments on commit 4cbc104

Please sign in to comment.