From 4cbc104df78966b3de5bf971fc42150e7e5fe2d2 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Thu, 12 Sep 2024 22:23:44 +0100 Subject: [PATCH] Add one more test --- test/varname.jl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/varname.jl b/test/varname.jl index 4ca7912..5841f02 100644 --- a/test/varname.jl +++ b/test/varname.jl @@ -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)))