Source file misc/cgo/fortran/fortran_test.go

     1  // Copyright 2016 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  
     5  package fortran
     6  
     7  import "testing"
     8  
     9  func TestFortran(t *testing.T) {
    10  	if a := TheAnswer(); a != 42 {
    11  		t.Errorf("Unexpected result for The Answer. Got: %d Want: 42", a)
    12  	}
    13  }
    14  

View as plain text