varswithinit_test.go 264 B

1234567891011
  1. package examples
  2. import "testing"
  3. func TestVarsWithInit(t *testing.T) {
  4. i, j, c, python, java := VarsWithInit()
  5. if i != 1 || j != 2 || c != true || python != false || java != "No!" {
  6. t.Fatalf("Some of the given values are different from the expected.")
  7. }
  8. }