Пример #1
0
func (this *Assert) Pointer(value interface{}) *PointerSubject {
	return &PointerSubject{
		Subject: Subject{
			a:    this,
			disp: serial.PointerToString(value),
		},
		value: value,
	}
}
Пример #2
0
func (subject *PointerSubject) Equals(expectation interface{}) {
	if subject.value != expectation {
		subject.Fail("is equal to", serial.PointerToString(expectation))
	}
}