Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
use exported variables directly
Browse files Browse the repository at this point in the history
e.g. CARGILLE instead of GlassCat.CARGILLE
  • Loading branch information
alfredclwong committed Apr 30, 2021
1 parent edf90a8 commit 3a94c1c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/testsets/GlassCat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ using StaticArrays
@test repr(GlassCat.Glass(GlassID(GlassCat.AIR, 1), empty_args...)) === "GlassCat.Air" # repeated code

@test glassforid(GlassID(GlassCat.AIR, 1)) === Air
@test glassforid(GlassID(GlassCat.OTHER, 1)) === GlassCat.CARGILLE.OG0607
@test glassforid(GlassID(GlassCat.OTHER, 1)) === CARGILLE.OG0607

info_lines = [
"ID: OTHER:2",
Expand Down Expand Up @@ -258,23 +258,23 @@ using StaticArrays
""
]
io = IOBuffer()
info(io, GlassCat.CARGILLE.OG0607)
info(io, CARGILLE.OG0607)
@test String(take!(io)) === join(info_lines, '\n')

# TODO the rest of the string tests
end

@testset "search.jl" begin
@test glasscatalogs() == [
GlassCat.CARGILLE,
GlassCat.HOYA,
GlassCat.NIKON,
GlassCat.OHARA,
GlassCat.SCHOTT,
GlassCat.Sumita,
CARGILLE,
HOYA,
NIKON,
OHARA,
SCHOTT,
Sumita,
]

@test glassnames(GlassCat.CARGILLE) == [
@test glassnames(CARGILLE) == [
:OG0607,
:OG0608,
:OG081160,
Expand Down

0 comments on commit 3a94c1c

Please sign in to comment.