@@ -8,38 +8,9 @@ using Test
88
99end
1010
11- @testset " DAG conversionss " begin
11+ @testset " DAG conversions " begin
1212
1313 include (" test_dagitty_conversion.jl" )
14- @test d1 == OrderedDict (
15- :S2 => :W ,
16- :W => [:Y , :V ],
17- :S1 => :U ,
18- :U => [:X , :V ]
19- )
20- @test d2 == OrderedDict (
21- :S2 => :W ,
22- :W => [:Y , :V ],
23- :U => [:X , :V ],
24- :S1 => :U
25- )
26- @test d3 == OrderedDict (
27- :S2 => :W ,
28- :W => [:V , :Y ],
29- :U => [:V , :X ],
30- :S1 => :U
31- )
32- @test g1 == " dag { S2 <- W; W <- { Y V }; S1 <- U; U <- { X V } }"
33- @test g2 == " dag { S2 <- W; W <- { Y V }; U <- { X V }; S1 <- U }"
34- @test g3 == " dag { S2 <- W; W <- { V Y }; U <- { V X }; S1 <- U }"
35- @test g4 == " dag { u <- v; w <- v; u <- x; s1 <- u; w <- y; s2 <- w }"
36- @test dag. d == OrderedDict (
37- :S2 => :W ,
38- :W => [:Y , :V ],
39- :S1 => :U ,
40- :U => [:X , :V ]
41- )
42-
4314 include (" test_ggm_conversion.jl" )
4415 include (" test_graphviz_conversions.jl" )
4516
6334
6435end
6536
66-
6737@testset " Methods" begin
6838
6939 include (" test_sr6_4_3b.jl" )
7040 include (" test_ag.jl" )
71- println (" \n " )
7241
7342end
7443
7847 include (" test_open_paths_02.jl" )
7948 include (" test_open_paths_03.jl" )
8049 include (" test_open_paths_04.jl" )
81- #=
82- @test allpaths[1] == [:w, :s, :a, :d]
83- @test length(allpaths) == 4
84- @test backdoorpaths == Array{Symbol,1}[]
85- @test length(backdoorpaths) == 0
86- @test show_dag_path(dag, allpaths[1]) == ":w ⇒ :s ⇐ :a ⇐ :d"
87- @test adjustmentsets == Array{Symbol,1}[]
88- =#
89- println (" \n " )
9050
9151end
52+
9253@testset " SR6.4.2" begin
9354
9455 include (" test_sr6_4_2.jl" )
95- #=
96- @test allpaths[1] == [:x, :u, :b, :c, :y]
97- @test length(allpaths) == 2
98- @test backdoorpaths[1] == [:x, :u, :b, :c, :y]
99- @test length(backdoorpaths) == 2
100- @test show_dag_path(dag, backdoorpaths[1]) == ":x ⇐ :u ⇐ :a ⇒ :c ⇒ :y"
101- @test adjustmentsets == [[:a], [:c]]
102- include("test_sr6_4_2a.jl")
103- @test adjustmentsets == [[:a], [:c]]
104- =#
105- println (" \n " )
10656
10757end
10858
10959@testset " SR6.4.3" begin
11060
11161 include (" test_sr6_4_3.jl" )
112- #=
113- @test allpaths[1] == [:w, :s, :a, :d]
114- @test length(allpaths) == 4
115- @test backdoorpaths == Array{Symbol,1}[]
116- @test length(backdoorpaths) == 0
117- @test show_dag_path(dag, allpaths[1]) == ":w ⇒ :s ⇐ :a ⇐ :d"
118- @test adjustmentsets == Array{Symbol,1}[]
119- =#
120- println (" \n " )
12162
12263end
123-
0 commit comments