Skip to content

Commit

Permalink
[ test ] More comprehensive test for getVis
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobjwalters committed Mar 15, 2024
1 parent 18b165b commit da6b21a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/idris2/reflection/reflection028/GetVis.idr
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ import Language.Reflection
private fooPriv : Int
export fooExp : Int
public export fooPubExp : Int

namespace A
private foo : Int

namespace B
export foo : Int

namespace C
public export foo : Int
1 change: 1 addition & 0 deletions tests/idris2/reflection/reflection028/expected
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
GetVis> GetVis> [(NS (MkNS ["GetVis"]) (UN (Basic "fooPriv")), Private)]
GetVis> [(NS (MkNS ["GetVis"]) (UN (Basic "fooExp")), Export)]
GetVis> [(NS (MkNS ["GetVis"]) (UN (Basic "fooPubExp")), Public)]
GetVis> [(NS (MkNS ["A", "GetVis"]) (UN (Basic "foo")), Private), (NS (MkNS ["B", "GetVis"]) (UN (Basic "foo")), Export), (NS (MkNS ["C", "GetVis"]) (UN (Basic "foo")), Public)]
GetVis> Bye for now!
1 change: 1 addition & 0 deletions tests/idris2/reflection/reflection028/input
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
%runElab getVis `{fooPriv}
%runElab getVis `{fooExp}
%runElab getVis `{fooPubExp}
%runElab getVis `{foo}
:q

0 comments on commit da6b21a

Please sign in to comment.