Skip to content

BatteredBunny/testingassert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

testingassert

Simple package providing Assert functions for Golang testing

go get github.com/BatteredBunny/testingassert

Usage

func BasicTest(t *testing.T) {
    assert.TestState = t
    assert.HideSuccess = false

	assert.Equals("123", "1" + "2" + "3")
    assert.NotEquals(123, 5+3, "math operation returned wrong answer")

    a := 1 == 1
    assert.Assert(a, "function shouldn't return false!")
}

About

Simple package providing Assert functions for Golang testing

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages