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

https://github.com/msisdev/baekjoon-go

Solve and test baekjoon from local
https://github.com/msisdev/baekjoon-go

Last synced: 9 months ago
JSON representation

Solve and test baekjoon from local

Awesome Lists containing this project

README

          

# baekjoon-go
## Accelerate your baekjoon solution
- Define how your program scans in `read()`
- Define your solution in `main()`
- Fulfill testcases in `assets/testcase.txt`
- Run `go test .`

## Things you should do
### Test main() only
- Edit:
- testcase.txt
- read.go - `read()`
- main.go - `main()`
- Run: `$ go test main_test.go`

### Test main() and read()
- Edit:
- testcase.txt
- read_test.go - `var readResult input{ }`
- read.go - `read()`
- main.go - `main()`
- Run: `$ go test .`

### Custom testcase format
- Edit:
- testcase_test.go - `readSingleTestCase()`

## Useful commands
- ```$ go test .```
- ```$ go test my_test.go```
- ```$ go test [-v] my_test.go```
- ```$ go test [-run ] my_test.go```