mirror of
https://github.com/teivah/100-go-mistakes.git
synced 2026-06-20 16:45:56 +08:00
13 lines
226 B
Go
13 lines
226 B
Go
package counter_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
counter "github.com/teivah/100-go-mistakes/11-testing/90-testing-features/different-package"
|
|
)
|
|
|
|
func TestCount(t *testing.T) {
|
|
if counter.Inc() != 1 {
|
|
t.Errorf("expected 1")
|
|
}
|
|
}
|