Pfunit tests Part I
Update Summary for FORCES pFUnit tests Part 1
Unit-tests:
-
test_mo_anneal, converted
- Only changed to pFUnit assertion.
- Print outs of initialization and annealing results still kept.
-
test_mo_append, converted
- Added tests for additional data types: i8, sp, dp, logical.
- Added test for:
- Appending non-allocated vector with scalars.
- Appending non-allocated matrix with a matrix.
- Appending matrices with larger/smaller columns with filler values. Note: Exception outcome w/o filler values cannot be tested.
- Appending 3d matrix; non-allocated and matrix with equal size in 2nd and 3rd component. For dp, along a component of choice idim.
- Pasting matrix by scalar and vector; non-allocated, different row size, and nodata.
- Pasting 3d matrix; non-allocated and nodata.
- Pasting 4d matrix; non-allocated and nodata. For dp, along a component of choice idim.
-
test_mo_append, converted
- Added function append_i4_3d for the append() interface.
- Added tests for additional data types: i8, sp, dp, logical.
- Added test for:
- Appending non-allocated vector with scalars.
- Appending non-allocated matrix with a matrix.
- Appending matrices with larger/smaller columns with filler values. Note: Exception outcome w/o filler values cannot be tested.
- Appending 3d matrix; non-allocated and matrix with equal size in 2nd and 3rd component. For dp, along a component of choice idim.
- Pasting matrix by scalar and vector; non-allocated, different row size, and nodata.
- Pasting 3d matrix; non-allocated and nodata.
- Pasting 4d matrix; non-allocated and nodata. For dp, along a component of choice idim.
-
test_mo_boxcox, converted
- Added test for masked data and small exponent power for boxcox transform.
-
test_mo_corr, converted
- Added test for masked data.
-
test_mo_dds, converted
- Only changed to pFUnit assertion.
- Print outs of initialization and DDS algorithm results still kept.
-
test_mo_errormeasures, converted
- Added tests for error measures KGEnocorr, wNSE.
- Added tests for masked/unmasked data.
-
test_mo_finish, removed
- Removed as module is deemed redundant.
-
test_mo_julian, converted
- Only changed to pFUnit assertion.
-
test_mo_linfit, converted
- Only changed to pFUnit assertion.
-
test_mo_mcmc, converted
- Only changed to pFUnit assertion.
-
test_mo_moment, converted
- Only changed to pFUnit assertion.
-
test_mo_ncread, converted
- Only changed to pFUnit assertion.
-
test_mo_netcdf, converted
- Only changed to pFUnit assertion.
-
test_mo_nml, converted
- Only changed to pFUnit assertion.
-
test_mo_orderpack, converted
- Only changed to pFUnit assertion.
-
test_mo_percentile, converted
- Added tests for odd numbers of data points.
- Added tests for masked data percentile, n_element, median, and qmedian.
- Added tests for 0d data for all functions.
- Added tests for different modes in sp data type.
-
test_mo_poly, converted
- Added test for the evaluation of point at the vertex.
-
test_mo_sce, converted
- Added SCE test for griewank function.
-
test_mo_spatialsimilarity, converted
- Only changed to pFUnit assertion.
-
test_mo_standard_score, converted
- Added test for masked data with classified standard score.
-
test_mo_string_utils, converted
- Only changed to pFUnit assertion.
-
test_mo_temporal_aggregation, created
- Monthly average calculation for daily data.
- Hourly average calculation for hourly data.
- Optional input for missing value substitute untested.
-
test_mo_timer, converted
- Removed timer printout.
- Perform simple time sanity check.
-
test_mo_utils, converted
- Only changed to pFUnit assertion.
- Since mo_utils has many functionality as logical operators, most assertion used are simple logical, i.e. assertTrue() and assertFalse()
-
test_mo_xor4096, converted
- Only changed to pFUnit assertion.
Modules:
-
mo_append, modified
- Added function append_i4_3d for the append() interface.
-
mo_percentile, modified
- Fixed a typo in the module function n_elements() so that masking works properly.
-
mo_xor4096, modified
- Implemented a fix by Mathias Cuntz to solve overflow on RNG.
Data files:
-
namelist.txt, moved
- Moved to pf_tests/files for use in test_mo_nml.
-
field.dat, moved
- Moved to pf_tests/files for use in test_mo_errormeasures.
-
field_maskf90.dat, moved
- Moved to pf_tests/files for use in test_mo_errormeasures.
-
period10day.dat, created
- 10 day hourly data from date 01.01.2021 for use in test_mo_temporal_aggregation.
-
year.dat, created
- daily data from 01.01.2021 to 31.12.2021 for use in test_mo_temporal_aggregation.
-
year_leap.dat, created
- daily data from 01.01.2020 to 31.12.2020 for use in test_mo_temporal_aggregation.
Edited by Sebastian Müller