Skip to content

skhome/verum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

verum

An assertion library for Go. Verum matchers are self-describing and extendable. You can extend the library with your own custom matchers.

Usage

Import

import (
    "github.com/skhome/verum/assert"
    . "gitgub.com/skhome/verum/matchers"
)

Example

func TestRingsOfPower(t *testing.T) {
    assert.That(t, "nenya").
        DescribedBy("ring of power").
        Matches(IsEqualTo("vilya"))
}

output:

[ring of power] value equal to <vilya>, but got <nenya>

About

assertion library for Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages