Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 242 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 242 Bytes

Assert

Assert ala Java Hamcrest in Go

Usage

import (
  "testing"
  . "github.com/bborbe/assert"
)

func TestEquals(t *testing.T) {
  value := ...
  if err := AssertThat(value, Is("foo")); err != nil {
    t.Fatal(err)
  }
}