From 3a94c1cd65084d73057c88dae71e0efabe00e926 Mon Sep 17 00:00:00 2001 From: Alfred Wong Date: Fri, 30 Apr 2021 10:03:30 +0100 Subject: [PATCH] use exported variables directly e.g. CARGILLE instead of GlassCat.CARGILLE --- test/testsets/GlassCat.jl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/testsets/GlassCat.jl b/test/testsets/GlassCat.jl index caa1a19a1..ab3cb39a2 100644 --- a/test/testsets/GlassCat.jl +++ b/test/testsets/GlassCat.jl @@ -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", @@ -258,7 +258,7 @@ 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 @@ -266,15 +266,15 @@ using StaticArrays @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,