fortran_test.go 333 B

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