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
- Host: GitHub
- URL: https://github.com/msisdev/baekjoon-go
- Owner: msisdev
- License: mit
- Created: 2023-09-06T04:35:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-26T08:32:30.000Z (over 2 years ago)
- Last Synced: 2025-06-24T16:51:56.274Z (about 1 year ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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```