Skip to content

Commit c0298ac

Browse files
committed
Report success to stdout
1 parent f4b5c5a commit c0298ac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/test_linear2d_layer.f90

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ program test_linear2d_layer
1717
call test_linear2d_layer_backward(linear, ok, sample_input, sample_gradient)
1818
call test_linear2d_layer_gradient_updates(ok)
1919

20+
if (ok) then
21+
print '(a)', 'test_linear2d_layer: All tests passed.'
22+
else
23+
write(stderr, '(a)') 'test_linear2d_layer: One or more tests failed.'
24+
stop 1
25+
end if
26+
2027
contains
28+
2129
subroutine test_linear2d_layer_forward(linear, ok, input)
2230
type(linear2d_layer), intent(in out) :: linear
2331
logical, intent(in out) :: ok
@@ -161,4 +169,5 @@ subroutine test_linear2d_layer_gradient_updates(ok)
161169
write(stderr, '(a)') 'incorrect updated biases.. failed'
162170
end if
163171
end subroutine test_linear2d_layer_gradient_updates
172+
164173
end program test_linear2d_layer

0 commit comments

Comments
 (0)