aboutsummaryrefslogtreecommitdiff
path: root/ber/int_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-08-06 16:13:21 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-08-06 16:13:21 +0200
commit1011b0952a55c0102cd81ba95d46b8eaeea4bcf5 (patch)
treedf21525c9d51f3cfd22a6b53d3ef0a703100c904 /ber/int_test.go
parentad9f52bfce0805e757af93190332ed9ccb69269a (diff)
Test exported functions
Diffstat (limited to 'ber/int_test.go')
-rw-r--r--ber/int_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ber/int_test.go b/ber/int_test.go
index c7f4ee2..ba1e5b0 100644
--- a/ber/int_test.go
+++ b/ber/int_test.go
@@ -6,7 +6,7 @@ import (
)
type intTest struct {
- in int64
+ in int
out []byte
}
@@ -24,11 +24,11 @@ var intTestData = []intTest{
func TestInt(t *testing.T) {
for _, test := range intTestData {
- a := marshalInt(test.in)
+ a := MarshalInt(test.in)
if !bytes.Equal(a, test.out) {
t.Error(test.in, "expected", test.out, "got", a)
}
- n := unmarshalInt(test.out)
+ n := UnmarshalInt(test.out)
if n != test.in {
t.Error(test.out, "expected", test.in, "got", n)
}