@@ -50,25 +50,25 @@ using AGNI
5050 (" Fe" , 5.584500e-02 ),
5151 ]
5252 for (elem, expected) in element_mmw_cases
53- @test isapprox (AGNI. phys . formulae. _lookup_mmw[elem], expected; rtol= 1e-6 )
53+ @test isapprox (AGNI. formulae. _lookup_mmw[elem], expected; rtol= 1e-6 )
5454 end
5555
5656 # All MMW values should be positive
57- for (species, mmw) in AGNI. phys . formulae. _lookup_mmw
57+ for (species, mmw) in AGNI. formulae. _lookup_mmw
5858 @test mmw > 0.0 # MMW for all species should be positive
5959 end
6060
6161 # -------------
6262 # Atom counts for key molecules
6363 # -------------
64- @test AGNI. phys . formulae. _lookup_count_atoms[" H2O" ][" H" ] == 2
65- @test AGNI. phys . formulae. _lookup_count_atoms[" H2O" ][" O" ] == 1
66- @test AGNI. phys . formulae. _lookup_count_atoms[" CO2" ][" C" ] == 1
67- @test AGNI. phys . formulae. _lookup_count_atoms[" CO2" ][" O" ] == 2
68- @test AGNI. phys . formulae. _lookup_count_atoms[" S8" ][" S" ] == 8
64+ @test AGNI. formulae. _lookup_count_atoms[" H2O" ][" H" ] == 2
65+ @test AGNI. formulae. _lookup_count_atoms[" H2O" ][" O" ] == 1
66+ @test AGNI. formulae. _lookup_count_atoms[" CO2" ][" C" ] == 1
67+ @test AGNI. formulae. _lookup_count_atoms[" CO2" ][" O" ] == 2
68+ @test AGNI. formulae. _lookup_count_atoms[" S8" ][" S" ] == 8
6969
7070 # All atom counts should be positive integers
71- for (molecule, atoms) in AGNI. phys . formulae. _lookup_count_atoms
71+ for (molecule, atoms) in AGNI. formulae. _lookup_count_atoms
7272 for (element, count) in atoms
7373 @test count > 0 # Atom counts should be positive
7474 @test count == floor (count) # Atom counts should be integers
@@ -79,10 +79,10 @@ using AGNI
7979 # Plotting colours: known gases and key elements must be present
8080 # -------------
8181 for gas in [" H2O" , " CO2" , " H2" ]
82- @test haskey (lookup_colour , gas)
82+ @test haskey (AGNI . style . _lookup_colour , gas)
8383 end
8484 for elem in [" H" , " C" , " O" , " N" , " S" , " Fe" , " Si" ]
85- @test haskey (lookup_colour , elem)
85+ @test haskey (AGNI . style . _lookup_colour , elem)
8686 end
8787
8888 # -------------
@@ -100,10 +100,10 @@ using AGNI
100100 # For all molecules with defined atom counts, ensure constituent
101101 # elements are in elems_standard and have assigned colors
102102 # -------------
103- for (molecule, atoms_dict) in lookup_count_atoms
103+ for (molecule, atoms_dict) in AGNI . formulae . _lookup_count_atoms
104104 for element in keys (atoms_dict)
105105 @test element in AGNI. consts. elems_standard
106- @test haskey (lookup_colour , element)
106+ @test haskey (AGNI . style . _lookup_colour , element)
107107 end
108108 end
109109
@@ -113,7 +113,7 @@ using AGNI
113113 # Check if it's a single element (1-2 character string, starts with uppercase)
114114 if length (species) <= 2 && occursin (r" ^[A-Z][a-z]?$" , species)
115115 @test species in AGNI. consts. elems_standard
116- @test haskey (lookup_colour , species)
116+ @test haskey (AGNI . style . _lookup_colour , species)
117117 end
118118 end
119119
@@ -145,18 +145,18 @@ using AGNI
145145 # -------------
146146 # Liquid densities for ocean module
147147 # -------------
148- @test isapprox (lookup_liquid_rho [" H2O" ], 958.37 ; rtol= 1e-5 )
149- @test lookup_liquid_rho [" CO2" ] > lookup_liquid_rho [" H2O" ]
148+ @test isapprox (AGNI . phys . density . _lookup_liquid_rho [" H2O" ], 958.37 ; rtol= 1e-5 )
149+ @test AGNI . phys . density . _lookup_liquid_rho [" CO2" ] > AGNI . phys . density . _lookup_liquid_rho [" H2O" ]
150150
151151 # All liquid densities should be positive
152- for (species, rho) in lookup_liquid_rho
152+ for (species, rho) in AGNI . phys . density . _lookup_liquid_rho
153153 @test rho > 0.0 # All liquid densities should be positive
154154 end
155155
156156 # -------------
157157 # Color assignments: all colors should be valid hex codes
158158 # -------------
159- for (species, color) in AGNI. phys . species . style. _lookup_colour
159+ for (species, color) in AGNI. style. _lookup_colour
160160 @test occursin (r" ^#[0-9A-Fa-f]{6}$" , color) # Valid hex color format
161161 end
162162
@@ -165,7 +165,7 @@ using AGNI
165165 # -------------
166166 # Species with MMW should include key atmospheric gases
167167 for gas in [" H2O" , " CO2" , " H2" , " N2" , " CH4" , " O2" ]
168- @test haskey (AGNI. phys . formulae. _lookup_mmw, gas)
168+ @test haskey (AGNI. formulae. _lookup_mmw, gas)
169169 end
170170
171171 # gases_standard should contain most species without significant duplication
0 commit comments