github.com/riscv/riscv-go@v0.0.0-20200123204226-124ebd6fcc8e/misc/cgo/fortran/fortran_test.go (about)

     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  }