Quellcode durchsuchen

test: run go vet with 'test' target

trials/prep_p503
Henry Case vor 6 Jahren
committed by Kris Kwiatkowski
Ursprung
Commit
9a6b2b414e
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. +1
    -0
      Makefile
  2. +2
    -2
      p751/arith_test.go

+ 1
- 0
Makefile Datei anzeigen

@@ -45,6 +45,7 @@ install-%: prep_targets
GOPATH=$(GOPATH_LOCAL) go install $(OPTS) $(GOPATH_DIR)/$*

test-%: prep_targets
GOPATH=$(GOPATH_LOCAL) go vet $(GOPATH_DIR)/$*
GOPATH=$(GOPATH_LOCAL) go test $(OPTS) $(GOPATH_DIR)/$*

bench-%: prep_targets


+ 2
- 2
p751/arith_test.go Datei anzeigen

@@ -307,14 +307,14 @@ func BenchmarkFp751AddLazy(b *testing.B) {
}
}

func Benchmarkfp751X2AddLazy(b *testing.B) {
func BenchmarkFp751X2AddLazy(b *testing.B) {
x, y, z := bench_z, bench_z, bench_z
for n := 0; n < b.N; n++ {
fp751X2AddLazy(&x, &y, &z)
}
}

func Benchmarkfp751X2SubLazy(b *testing.B) {
func BenchmarkFp751X2SubLazy(b *testing.B) {
x, y, z := bench_z, bench_z, bench_z
for n := 0; n < b.N; n++ {
fp751X2SubLazy(&x, &y, &z)


Laden…
Abbrechen
Speichern