7   use fruit
, only : assert_equals, assert_true, assert_false
    32     class(*), 
pointer :: raw_data
    38     raw_data=>c_get(options_database, 
"test1")
    39     call assert_true(
conv_to_logical(raw_data, .false.), 
"Logical no value is true")
    40     raw_data=>c_get(options_database, 
"test2")
    41     call assert_false(
conv_to_logical(raw_data, .false.), 
"Logical false values")
    42     raw_data=>c_get(options_database, 
"test3")
    43     call assert_true(
conv_to_logical(raw_data, .false.), 
"Logical true values")
    49     class(*), 
pointer :: raw_data
    56     raw_data=>c_get(options_database, 
"test1")
    57     call assert_equals(9542, 
conv_to_integer(raw_data, .false.), 
"Simple integer value added")
    58     raw_data=>c_get(options_database, 
"test2")
    59     call assert_equals(-1234, 
conv_to_integer(raw_data, .false.), 
"Negative integer value added")
    60     raw_data=>c_get(options_database, 
"test3")
    61     call assert_equals(82, 
conv_to_integer(raw_data, .false.), 
"Positive integer value added")
    62     raw_data=>c_get(options_database, 
"test4")
    63     call assert_equals(0, 
conv_to_integer(raw_data, .false.), 
"Zero integer value added")
    70     class(*), 
pointer :: raw_data
    77     raw_data=>c_get(options_database, 
"test1")
    78     call assert_equals(9542.342, 
conv_to_real(raw_data, .false.), 
"Simple float value added")
    79     raw_data=>c_get(options_database, 
"test2")
    80     call assert_equals(-1.33e9, 
conv_to_real(raw_data, .false.), 
"Negative with exponent value added")
    81     raw_data=>c_get(options_database, 
"test3")
    82     call assert_equals(987.232e-6, 
conv_to_real(raw_data, .false.), &
    83       "Positive with negative exponent value added")
    84       raw_data=>c_get(options_database, 
"test4")
    85     call assert_equals(-98.72, 
conv_to_real(raw_data, .false.), 
"Negative float value added")
    92     class(*), 
pointer :: raw_data
    97     raw_data=>c_get(options_database, 
"test1")
    98     call assert_equals(
"abc", 
conv_to_string(raw_data, .false., 44), 
"Simple string")
    99     raw_data=>c_get(options_database, 
"test2")
   100     call assert_equals(
"HeLlO", 
conv_to_string(raw_data, .false., 44), 
"Case sensitive string")
   106   use fruit
, only : init_fruit, run_test_case, fruit_summary
 subroutine test_add_string_key_value_pairs()
 
subroutine test_add_real_key_value_pairs()
 
Conversion between common inbuilt FORTRAN data types. 
 
Converts data types to strings. 
 
subroutine test_add_logical_key_value_pairs()
 
subroutine add_specific_option_key_value_pair(type_of_config, parse_options, specific_arg)
This will add a specific option key value pair to the options hashmap_type. 
 
Converts data types to logical. 
 
integer, parameter string_type
Type of string value data. 
 
Map data structure that holds string (length 20 maximum) key value pairs. 
 
integer, parameter integer_type
Type of integer value data. 
 
subroutine test_get_argument_value_type()
 
Collection data structures. 
 
subroutine test_add_integer_key_value_pairs()
 
integer function get_argument_value_type(specific_value)
Given a specific value this will determine the type of data. 
 
Converts data types to real. 
 
program test_optionsdatabase_driver
 
integer, parameter logical_type
Type of logical value data. 
 
Manages the options database. Contains administration functions and deduce runtime options from the c...
 
Converts data types to integers. 
 
integer, parameter real_type
Type of real value data.