-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathordered_test.go
52 lines (42 loc) · 987 Bytes
/
ordered_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package assert_test
import (
"testing"
. "github.com/pierrre/assert"
"github.com/pierrre/assert/asserttest"
)
func TestGreater(t *testing.T) {
ok := Greater(t, 123, 0)
True(t, ok)
}
func TestGreaterFail(t *testing.T) {
report := asserttest.NewReportAuto(t)
ok := Greater(t, 0, 123, Report(report))
False(t, ok)
}
func TestGreaterOrEqual(t *testing.T) {
ok := GreaterOrEqual(t, 123, 0)
True(t, ok)
}
func TestGreaterOrEqualFail(t *testing.T) {
report := asserttest.NewReportAuto(t)
ok := GreaterOrEqual(t, 0, 123, Report(report))
False(t, ok)
}
func TestLess(t *testing.T) {
ok := Less(t, 0, 123)
True(t, ok)
}
func TestLessFail(t *testing.T) {
report := asserttest.NewReportAuto(t)
ok := Less(t, 123, 0, Report(report))
False(t, ok)
}
func TestLessOrEqual(t *testing.T) {
ok := LessOrEqual(t, 0, 123)
True(t, ok)
}
func TestLessOrEqualFail(t *testing.T) {
report := asserttest.NewReportAuto(t)
ok := LessOrEqual(t, 123, 0, Report(report))
False(t, ok)
}