File tree Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Expand file tree Collapse file tree 1 file changed +17
-9
lines changed Original file line number Diff line number Diff line change 1
1
# Classic CS Algorithms in CPP
2
2
3
- Unit tests are written with Boost.Test library. Run them like so:
3
+ [ ![ Build Status ] ( https://travis-ci.org/alisianoi/algos-cpp.svg?branch=master )] ( https://travis-ci.org/alisianoi/algos-cpp )
4
4
5
- ```
6
- mkdir build
7
- cd build
8
- cmake .. && make && ctest
9
- ```
5
+ ## How to set up?
10
6
11
- To run a specific test unit, say binary search tests, drop the ` test_ ` and run :
7
+ First, install the [ conan ] ( https://conan.io/ ) package manager for your system. Then build and run the unit tests like so :
12
8
9
+ ``` sh
10
+ mkdir build && cd build
11
+ conan install .. && cmake ..
12
+ ctest
13
13
```
14
- ctest -R binsearch
14
+
15
+ Unit tests are written with Boost.Test library. To run a specific test unit, say binary search tests, drop the ` test_ ` and run:
16
+
17
+ ``` sh
18
+ ctest --verbose -R binsearch
15
19
```
16
20
17
- Alternatively, run the file directly: ` ./tests/test_binsearch `
21
+ Alternatively, run the file directly:
22
+
23
+ ``` sh
24
+ ./tests/test_binsearch
25
+ ```
You can’t perform that action at this time.
0 commit comments