fortran_tester
 All Classes Files Functions Variables Pages
test_tester_05.f90
Go to the documentation of this file.
1 ! This file is part of fortran_tester
2 ! Copyright 2015 Pierre de Buyl
3 ! License: BSD
4 
6  use tester
7  implicit none
8 
9  integer, parameter :: i_k1 = selected_int_kind(3)
10 
11  type(tester_t) :: test
12 
13  call test% init()
14 
15  call test% assert_equal(8765_i_k1, 8765_i_k1)
16 
17  call test% assert_equal( &
18  [-3261_i_k1, -1169_i_k1, 2967_i_k1, -3736_i_k1, 3504_i_k1], &
19  [-3261_i_k1, -1169_i_k1, 2967_i_k1, -3736_i_k1, 3504_i_k1])
20 
21  call test% assert_positive(1982_i_k1)
22 
23  call test% assert_positive([6987_i_k1, 0_i_k1])
24 
25  call test% print()
26 
27 end program test_tester_05
program test_tester_05
Routines to test Fortran programs.
Definition: tester.f90:11
The main tester class.
Definition: tester.f90:19