test-drive
test-drive copied to clipboard
The simple testing framework
### Description - [x] Add rank-1 arrays support for check interface; - [x] Add new tests; - [x] Add the pure keyword to pure functions. **Method:** In order to avoid...
At present, `test-drive` can check **scalars** of Fortran built-in types, such as `logical` scalars, `integer` scalars, and `real` scalars; however, it does not support **arrays**, so users need to write...
With many tests, the status: - is not always obvious, - does not jump out at you, - give you a warm and fuzzy feeling. Propose adding green/red color to...
Currently test-drive will automatically ~~enable~~ disable support for quadruple precision if the preprocessor is not defined: https://github.com/fortran-lang/test-drive/blob/00bb499f0c46bc376c3aacbbe93f6b38abbe824b/src/testdrive.F90#L14-L17 In case of the meson and CMake build this never happens, since we...
Why not simplify: ```fortran call check(error, all(input == expected)) if (allocated(error)) return ``` to: ```fortran if (check(error, all(input == expected))) return ``` Beyond that, the only other way to simplify...
The latest 0.5.0 release broke the builds on AArch64 machines with GFortran, I assume somehow by the changes from #21 . Here is an attached build log with compiler and...
Make NaN support optional if not supported via ieee_value
This PR adds automatic deallocation of strings at the end of scopes to avoid possible memory leaks.