@@ -9,6 +9,9 @@ program test_assert
99 type (test_suite_type) :: test_suite_equal
1010 type (test_suite_type) :: test_suite_great_than
1111
12+ logical , allocatable :: test_suite_assert_results(:)
13+ logical , allocatable :: test_case_assert_results(:)
14+
1215 ! test assert_approximate routines
1316 call test_suite_init(' Approximate' , test_suite_approximate)
1417
@@ -191,6 +194,14 @@ program test_assert
191194 call assert_great_than(reshape ([1.0D0 , 1.0D0 , 1.0D0 , 1.0D0 ], [2 , 2 ]), reshape ([0.0D0 , 2.0D0 , 0.0D0 , 0.0D0 ], [2 , 2 ]), __FILE__, __LINE__, test_suite_great_than)
192195 call assert_great_than(reshape ([1.0D0 , 1.0D0 , 1.0D0 , 1.0D0 ], [2 , 2 ]), reshape ([0.0D0 , 0.0D0 , 0.0D0 , 0.0D0 ], [2 , 2 ]), __FILE__, __LINE__, test_suite_great_than)
193196
197+ test_case_assert_results = test_case_get_assert_results(' real' , test_suite_great_than)
198+ call assert_false(all (test_case_assert_results(1 :12 :2 )), __FILE__, __LINE__, test_suite_great_than)
199+ call assert_true(all (test_case_assert_results(2 :12 :2 )), __FILE__, __LINE__, test_suite_great_than)
200+
201+ test_suite_assert_results = test_suite_get_assert_results(test_suite_great_than)
202+ call assert_false(all (test_suite_assert_results(1 :38 :2 )), __FILE__, __LINE__, test_suite_great_than)
203+ call assert_true(all (test_suite_assert_results(2 :38 :2 )), __FILE__, __LINE__, test_suite_great_than)
204+
194205 call test_suite_report(test_suite_great_than)
195206 call test_suite_final(test_suite_great_than)
196207
0 commit comments