Skip to content

GoGoupil/assert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Goupil assertion

As Go doesn't have assertion system, here is a simple AssertEqual function used for testing generating an error in case of unexpected given value.

Usage

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

func TestSomething(t *testing.T) {
  value, expected := true, false
  assert.AssertEqual(t, value, expected) // Generate an error
}

About

Goupil simple assertion system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages