MONC
test_naming_conventions.F90
Go to the documentation of this file.
1 ! Tests the collections_mod utility functions
3  use fruit, only : assert_equals, add_fail, assert_false, assert_true
6  implicit none
7 
8 contains
9  ! Tests the value of the different variables
10  subroutine test_conventions_value
11 
12 
13  call assert_equals(k_per_day,'K/day', "k_per_day")
14  call assert_equals(k_per_second,'K/s', "k_per_second")
15  call assert_equals(m_per_second_per_day,'m/s/day', "m_per_second_per_day")
16  call assert_equals(m_per_second_per_second,'m/s/s', "m_per_second_per_second")
17  call assert_equals(kg_per_kg_per_second,'kg/kg/s', "kg_per_kg_per_second")
18  call assert_equals(kg_per_kg_per_day,'kg/kg/day', "kg_per_kg_per_day")
19  call assert_equals(g_per_kg_per_day,'g/kg/day', "g_per_kg_per_day")
20  call assert_equals(g_per_kg_per_second,'g/kg/s', "g_per_kg_per_second")
21 
22  end subroutine test_conventions_value
24 
26  use fruit, only : init_fruit, run_test_case, fruit_summary
28 
29  implicit none
30 
31  call init_fruit
32  call run_test_case(test_conventions_value, "Values")
33 
34  call fruit_summary
35 end program test_naming_conventions
character(len=7), parameter, public m_per_second_per_day
program test_naming_conventions
character(len=3), parameter, public k_per_second
character(len=5), parameter, public m_per_second_per_second
character(len=8), parameter, public g_per_kg_per_day
character(len=6), parameter, public g_per_kg_per_second
character(len=9), parameter, public kg_per_kg_per_day
character(len=7), parameter, public kg_per_kg_per_second
character(len=5), parameter, public k_per_day