示例#1
0
func (this *Assert) Int64(value int64) *Int64Subject {
	return &Int64Subject{
		Subject: Subject{
			a:    this,
			disp: serial.Int64ToString(value),
		},
		value: value,
	}
}
示例#2
0
func (subject *Int64Subject) GreaterThan(expectation int64) {
	if subject.value <= expectation {
		subject.Fail("is greater than", serial.Int64ToString(expectation))
	}
}
示例#3
0
func (subject *Int64Subject) AtLeast(expectation int64) {
	if subject.value < expectation {
		subject.Fail("is at least", serial.Int64ToString(expectation))
	}
}
示例#4
0
func (subject *Int64Subject) Equals(expectation int64) {
	if subject.value != expectation {
		subject.Fail("is equal to", serial.Int64ToString(expectation))
	}
}