Skip to content

gha3mi/forunittest

Repository files navigation

GitHub Version Documentation License Build

ForUnitTest: A Fortran library for unit testing.

Usage

use forunittest

type(unit_test) :: ut

call ut%check(res, expected, tol, msg)

See example/demo.f90 for a complete example.

fpm dependency

To use ForUnitTest as a dependency in your fpm project, include the following line in your fpm.toml file:

[dependencies]
forunittest = {git="https://github.com/gha3mi/forunittest.git"}

How to Run the Demo

Clone the repository:

Clone the ForUnitTest repository from GitHub using:

git clone https://github.com/gha3mi/forunittest.git
cd forunittest

Run the demo:

fpm run --example demo

API documentation

The most up-to-date API documentation for the main branch is available here. To generate the API documentation for ForUnitTest using ford run the following command:

ford ford.yml

Contributing

Contributions to ForUnitTest are welcome! If you find any issues or would like to suggest improvements, please open an issue.