nocgo_test.go 292 B

1234567891011121314
  1. // Copyright 2014 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package nocgo
  5. import "testing"
  6. func TestNop(t *testing.T) {
  7. i := NoCgo()
  8. if i != 42 {
  9. t.Errorf("got %d, want %d", i, 42)
  10. }
  11. }