func (s *Suite) Path(path string, messages ...string) *Assertion {
	assertion := s.setup(fmt.Sprintf("Path %s doesn't exist", path), messages)
	if _, err := os.Stat(path); err != nil {
		assertion.fail()
	}
	return assertion
}
Path asserts that the given path exists.
package prettytest
import (
	"fmt"
	"os"
	"reflect"
	"strings"
)
type Assertion struct {
	Line         int
	Name         string
	Filename     string
	ErrorMessage string
	Passed       bool
	suite        *Suite
	testFunc     *TestFunc
}
func (assertion *Assertion) fail() {
	assertion.Passed = false
	assertion.testFunc.Status = STATUS_FAIL
	logError(&Error{assertion.suite, assertion.testFunc, assertion})
}
func (s *Suite) Not(result *Assertion, messages ...string) *Assertion {
	assertion := s.setup(fmt.Sprintf("Expected assertion to fail"), messages)
	if result.Passed {
		assertion.fail()
	} else {
		result.Passed = true
		assertion.testFunc.resetLastError()
	}
	return assertion
}
func (s *Suite) False(value bool, messages ...string) *Assertion {
	assertion := s.setup(fmt.Sprintf("Expected value to be false"), messages)
	if value {
		assertion.fail()
	}
	return assertion
}
func (s *Suite) Equal(exp, act interface{}, messages ...string) *Assertion {
	actType := reflect.TypeOf(act)
	expType := reflect.TypeOf(exp)
	assertion := s.setup(fmt.Sprintf("Expected %v[%s] to be equal to %v[%s]", act, actType, exp, expType), messages)
	if exp != act {
		assertion.fail()
	}
	return assertion
}
func (s *Suite) Contain(exp, act interface{}, messages ...string) *Assertion {
	actType := reflect.TypeOf(act)
	expType := reflect.TypeOf(exp)
	assertion := s.setup(fmt.Sprintf("Expected %v[%s] to be contained in %v[%s]", act, actType, exp, expType), messages)
	if !strings.Contains(act.(string), exp.(string)) {
		assertion.fail()
	}
	return assertion
}
func (s *Suite) True(value bool, messages ...string) *Assertion {
	assertion := s.setup(fmt.Sprintf("Expected value to be true"), messages)
	if !value {
		assertion.fail()
	}
	return assertion
}