Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zoziha/mini-test

Minimal test library, born for Fortran.
https://github.com/zoziha/mini-test

fortran fpm minimal test

Last synced: 25 days ago
JSON representation

Minimal test library, born for Fortran.

Awesome Lists containing this project

README

        

# MINI-TEST

A minimal test library, born for `Fortran`.

## Getting started

### Get the code

```sh
git clone https://github.com/zoziha/mini-test.git
cd mini-test
```

### Build with [fortran-lang/fpm](https://github.com/fortran-lang/fpm)

Fortran Package Manager (fpm) is a great package manager and build system for Fortran.
You can build using provided `fpm.toml`:
```sh
fpm build
```

To use `mini-test` for your `fpm` project tests, add the following to your `fpm.toml` file:
```toml
[dev-dependencies]
mini-test = { git="https://github.com/zoziha/mini-test.git", branch="mt-fpm" }
```

## API-Doc

```fortran
public :: check, is_close, disp !! core
public :: optval, to_string !! extra
```

Some examples are prepared in the `./example` folder, and you can use `fpm` to run them:
```sh
fpm run --example --list
fpm run --example
```

## Links

The `check/optval/to_string` routines are from `fortran-lang/stdlib`; and the `disp` routine is from `keurfonluu/Forlab`.
Thanks for your contributions!

[fortran-lang/stdlib](https://github.com/fortran-lang/stdlib)
[keurfonluu/Forlab](https://github.com/keurfonluu/Forlab)