diff test/SbpOperators/stencil_set_test.jl @ 1596:84dc3b9b449b feature/boundary_conditions

Add positivity properties (the borrowing capacity) of the D2 operators to the operator toml as well as methods to parse them
author Vidar Stiernström <vidar.stiernstrom@gmail.com>
date Sun, 26 May 2024 18:13:58 -0700
parents 3bb94ce74697
children 8315c456e3b4
line wrap: on
line diff
--- a/test/SbpOperators/stencil_set_test.jl	Sun May 26 17:35:52 2024 -0700
+++ b/test/SbpOperators/stencil_set_test.jl	Sun May 26 18:13:58 2024 -0700
@@ -152,6 +152,14 @@
         @test_throws ArgumentError parse_tuple(toml["e3"])
         @test_throws ArgumentError parse_tuple(toml["e4"])
     end
+
+    @testset "parse_named_tuple" begin
+        toml = TOML.parse("""
+            NamedTuple = {a = "17/48", b = "0.2505765857"}
+        """)
+        @test parse_named_tuple(toml["NamedTuple"]) == (b = Rational(0.2505765857), a = 17//48)
+    end
+
 end
 
 @testset "parse_rational" begin