mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
569 B
30 lines
569 B
4 years ago
|
# Tests
|
||
|
|
||
|
To run the tests make sure the two repositories are right next to each other:
|
||
|
|
||
|
- github.com/01-edu/piscine-go
|
||
|
- github.com/01-edu/public
|
||
|
|
||
4 years ago
|
To test a function, run this command in this folder (`public/go/tests`):
|
||
4 years ago
|
|
||
|
```
|
||
4 years ago
|
go run github.com/01-edu/public/go/tests/func/isnegative_test
|
||
4 years ago
|
```
|
||
|
|
||
|
and a program:
|
||
|
|
||
|
```
|
||
4 years ago
|
go run github.com/01-edu/public/go/tests/prog/printalphabet_test
|
||
4 years ago
|
```
|
||
|
|
||
4 years ago
|
Relative paths work anywhere in `public/go/tests`:
|
||
4 years ago
|
|
||
|
```
|
||
|
go run ./prog/printalphabet_test
|
||
|
cd prog
|
||
|
go run ./printalphabet_test
|
||
|
go run ../func/isnegative_test/
|
||
|
```
|
||
|
|
||
|
No output means success.
|