@@ -115,7 +115,7 @@ function chiSquaredTest(testCase)
115115 network_result = testCase .tests .runNetTestsPerm(testCase .network_test_options , testCase .edge_test_options .net_atlas , edge_result .edge_result );
116116
117117 expected_result = load(strcat(testCase .root_path , fullfile(" +nla" , " unittests" , " chi_squared_result.mat" )));
118- property_names = properties(network_result );
118+ property_names = properties(network_result{ 1 } );
119119 for prop_name = property_names
120120 testCase .verifyEqual(expected_result .network_result.(prop_name{1 }), network_result{1 }.(prop_name{1 }));
121121 end
@@ -127,7 +127,7 @@ function hyperGeometricTest(testCase)
127127 network_result = testCase .tests .runNetTestsPerm(testCase .network_test_options , testCase .edge_test_options .net_atlas , edge_result .edge_result );
128128
129129 expected_result = load(strcat(testCase .root_path , fullfile(" +nla" , " unittests" , " hypergeometric_result.mat" )));
130- property_names = properties(network_result );
130+ property_names = properties(network_result{ 1 } );
131131 for prop_name = property_names
132132 testCase .verifyEqual(expected_result .network_result.(prop_name{1 }), network_result{1 }.(prop_name{1 }));
133133 end
@@ -139,7 +139,7 @@ function kolmogorovSmirnovTest(testCase)
139139 network_result = testCase .tests .runNetTestsPerm(testCase .network_test_options , testCase .edge_test_options .net_atlas , edge_result .edge_result );
140140
141141 expected_result = load(strcat(testCase .root_path , fullfile(" +nla" , " unittests" , " kolmogorov_smirnov_result.mat" )));
142- property_names = properties(network_result );
142+ property_names = properties(network_result{ 1 } );
143143 for prop_name = property_names
144144 testCase .verifyEqual(expected_result .network_result.(prop_name{1 }), network_result{1 }.(prop_name{1 }));
145145 end
@@ -151,7 +151,7 @@ function studentTTest(testCase)
151151 network_result = testCase .tests .runNetTestsPerm(testCase .network_test_options , testCase .edge_test_options .net_atlas , edge_result .edge_result );
152152
153153 expected_result = load(strcat(testCase .root_path , fullfile(" +nla" , " unittests" , " student_t_result.mat" )));
154- property_names = properties(network_result );
154+ property_names = properties(network_result{ 1 } );
155155 for prop_name = property_names
156156 testCase .verifyEqual(expected_result .network_result.(prop_name{1 }), network_result{1 }.(prop_name{1 }));
157157 end
@@ -163,9 +163,9 @@ function welchTTest(testCase)
163163 network_result = testCase .tests .runNetTestsPerm(testCase .network_test_options , testCase .edge_test_options .net_atlas , edge_result .edge_result );
164164
165165 expected_result = load(strcat(testCase .root_path , fullfile(" +nla" , " unittests" , " welch_t_result.mat" )));
166- property_names = properties(network_result );
166+ property_names = properties(network_result{ 1 } );
167167 for prop_name = property_names
168- testCase .verifyEqual(expected_result .network_result.(prop_name ), network_result{1 }.(prop_name ));
168+ testCase .verifyEqual(expected_result .network_result.(prop_name{ 1 } ), network_result{1 }.(prop_name{ 1 } ));
169169 end
170170 end
171171
@@ -175,7 +175,7 @@ function wilcoxonTest(testCase)
175175 network_result = testCase .tests .runNetTestsPerm(testCase .network_test_options , testCase .edge_test_options .net_atlas , edge_result .edge_result );
176176
177177 expected_result = load(strcat(testCase .root_path , fullfile(" +nla" , " unittests" , " wilocoxon_result.mat" )));
178- property_names = properties(network_result );
178+ property_names = properties(network_result{ 1 } );
179179 for prop_name = property_names
180180 testCase .verifyEqual(expected_result .network_result.(prop_name{1 }), network_result{1 }.(prop_name{1 }));
181181 end
0 commit comments