Compare commits

..

No commits in common. "b981b962a2d019729c573d67eb0d194f00d3ab32" and "e7aa98d637c51280091f9e4c30956bc7ceebc146" have entirely different histories.

10 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@ import (
//go:embed testdata/input.txt //go:embed testdata/input.txt
var data []byte var data []byte
func BenchmarkSolve(b *testing.B) { func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull) os.Stdout, _ = os.Open(os.DevNull)
Solve(data) Solve(data)
} }

View File

@ -9,7 +9,7 @@ import (
//go:embed testdata/input.txt //go:embed testdata/input.txt
var data []byte var data []byte
func BenchmarkSolve(b *testing.B) { func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull) os.Stdout, _ = os.Open(os.DevNull)
Solve(data) Solve(data)
} }

View File

@ -9,7 +9,7 @@ import (
//go:embed testdata/input.txt //go:embed testdata/input.txt
var data []byte var data []byte
func BenchmarkSolve(b *testing.B) { func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull) os.Stdout, _ = os.Open(os.DevNull)
Solve(data) Solve(data)
} }

View File

@ -9,7 +9,7 @@ import (
//go:embed testdata/input.txt //go:embed testdata/input.txt
var data []byte var data []byte
func BenchmarkSolve(b *testing.B) { func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull) os.Stdout, _ = os.Open(os.DevNull)
Solve(data) Solve(data)
} }

View File

@ -9,7 +9,7 @@ import (
//go:embed testdata/input.txt //go:embed testdata/input.txt
var data []byte var data []byte
func BenchmarkSolve(b *testing.B) { func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull) os.Stdout, _ = os.Open(os.DevNull)
Solve(data) Solve(data)
} }

View File

@ -9,7 +9,7 @@ import (
//go:embed testdata/input.txt //go:embed testdata/input.txt
var data []byte var data []byte
func BenchmarkSolve(b *testing.B) { func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull) os.Stdout, _ = os.Open(os.DevNull)
Solve(data) Solve(data)
} }

View File

@ -20,7 +20,7 @@ var files embed.FS
func main() { func main() {
filename := flag.String("f", "input.txt", "input file") filename := flag.String("f", "input.txt", "input file")
loglevel := flag.Int("l", int(log.InfoLevel), "log level") loglevel := flag.Int("l", int(log.InfoLevel), "log level (shorthand)")
flag.Parse() flag.Parse()
if slices.Contains(log.AllLevels, log.Level(*loglevel)) { if slices.Contains(log.AllLevels, log.Level(*loglevel)) {

View File

@ -9,7 +9,7 @@ import (
//go:embed testdata/input.txt //go:embed testdata/input.txt
var data []byte var data []byte
func BenchmarkSolve(b *testing.B) { func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull) os.Stdout, _ = os.Open(os.DevNull)
Solve(data) Solve(data)
} }

View File

@ -9,7 +9,7 @@ import (
//go:embed testdata/input.txt //go:embed testdata/input.txt
var data []byte var data []byte
func BenchmarkSolve(b *testing.B) { func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull) os.Stdout, _ = os.Open(os.DevNull)
Solve(data) Solve(data)
} }

View File

@ -9,7 +9,7 @@ import (
//go:embed testdata/input.txt //go:embed testdata/input.txt
var data []byte var data []byte
func BenchmarkSolve(b *testing.B) { func BenchmarkMain(b *testing.B) {
os.Stdout, _ = os.Open(os.DevNull) os.Stdout, _ = os.Open(os.DevNull)
Solve(data) Solve(data)
} }