aboutsummaryrefslogtreecommitdiff
path: root/ber
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-06-29 17:34:54 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-06-29 17:34:54 +0200
commitbe5e4e88fbd01f7e53d8e7c03f7c845f81b96783 (patch)
tree8d1d39244e6b67c48adfcc89283b04b1c45b45ae /ber
parentc067dca4a86c638add29d0ca920b6697d593c814 (diff)
naming
Diffstat (limited to 'ber')
-rw-r--r--ber/obj_test.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/ber/obj_test.go b/ber/obj_test.go
index baf5c7c..27fd8e6 100644
--- a/ber/obj_test.go
+++ b/ber/obj_test.go
@@ -17,10 +17,10 @@ var base128TestData = []base128Test{
}
func TestBase128(t *testing.T) {
- for _, b := range base128TestData {
- a := base128(b.in)
- if !bytes.Equal(a, b.out) {
- t.Error("Base128", b.in, "expected", b.out, "got", a)
+ for _, test := range base128TestData {
+ n := base128(test.in)
+ if !bytes.Equal(n, test.out) {
+ t.Error(test.in, "expected", test.out, "got", n)
}
}
}
@@ -43,10 +43,10 @@ var oidTestData = []oidTest{
}
func TestOID(t *testing.T) {
- for _, o := range oidTestData {
- a := marshalOID(o.oid)
- if !bytes.Equal(a, o.out) {
- t.Error("OID", o.oid, "expected", o.out, "got", a)
+ for _, test := range oidTestData {
+ oid := marshalOID(test.oid)
+ if !bytes.Equal(oid, test.out) {
+ t.Error(test.oid, "expected", test.out, "got", oid)
}
}
}