-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdoc.go
More file actions
36 lines (30 loc) · 708 Bytes
/
doc.go
File metadata and controls
36 lines (30 loc) · 708 Bytes
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
// Copyright (c) 2016, Benjamin Borbe <bborbe@rocketnews.de>.
// All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
Package assert provide assertions for testing
import (
. "github.com/bborbe/assert"
"testing"
)
func TestNotNilValue(t *testing.T) {
value := ...
if err := AssertThat(value, NotNilValue()); err != nil {
t.Fatal(err)
}
}
func TestNilNull(t *testing.T) {
value := ...
if err := AssertThat(value, NilValue()); err != nil {
t.Fatal(err)
}
}
func TestEquals(t *testing.T) {
value := ...
if err := AssertThat(value, Is("foo")); err != nil {
t.Fatal(err)
}
}
*/
package assert