ebonet-zz / expect

Small assertion library to work with go native testing. This is not intended to be a testing framework, just some "syntax sugar".

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

expect

Small assertion library to work with go native testing. This is not intended to be a testing framework, just some "syntax sugar".

There are other libraries that do something similar (such as https://github.com/stretchr/testify), but I wanted something very simple and very minimalistic. These are just methods I actually use when testing, and I'll be adding more if I feel the need for it.

Methods

  • Condition
  • Equal
  • Between
  • Aproximate
  • Err
  • NoErr

Change log

  • Version 0.1.0
    • Print test lines where errors occur (keeping signatures and behavior).

About

Small assertion library to work with go native testing. This is not intended to be a testing framework, just some "syntax sugar".


Languages

Language:Go 100.0%