@@ -71,6 +71,7 @@ function results() result(test_results)
7171 ,test_description_t(" construction from string_t/character expressions 'a .equalsExpected. b'" , usher(check_equals_character_vs_string)) &
7272 ,test_description_t(" construction from the character expression 'a .equalsExpected. b'" , usher(check_equals_character)) &
7373 ,test_description_t(" construction from the type(c_ptr) expression 'p .equalsExpected. q'" , usher(check_equals_c_ptr)) &
74+ ,test_description_t(" construction from the logical expression 't .equalsExpected. t'" , usher(check_equals_logical)) &
7475 ,test_description_t(" construction from the string_t expression 'a .equalsExpected. b'" , usher(check_equals_string)) &
7576 ,test_description_t(" construction from the integer expression 'i .equalsExpected. j'" , usher(check_equals_integer)) &
7677 ,test_description_t(" construction from integer(int64) relational operators" , usher(check_int64_comparisons)) &
@@ -157,6 +158,12 @@ function check_equals_c_ptr() result(test_diagnosis)
157158 test_diagnosis = t_ptr .equalsExpected. c_loc(t)
158159 end function
159160
161+ function check_equals_logical () result(test_diagnosis)
162+ type (test_diagnosis_t) test_diagnosis
163+ logical , parameter :: t = .true. , f = .false.
164+ test_diagnosis = (t .equalsExpected. t) .also. (f .equalsExpected. f)
165+ end function
166+
160167 function check_equals_string () result(test_diagnosis)
161168 type (test_diagnosis_t) test_diagnosis
162169 type (string_t) expected_value
0 commit comments