types: consolidate some file

This commit is contained in:
Ethan Buchman
2017-12-01 00:51:20 -05:00
parent b39e768a1a
commit 3d3d1288d1
5 changed files with 78 additions and 71 deletions

15
types/util_test.go Normal file
View File

@ -0,0 +1,15 @@
package types
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestKVPairInt(t *testing.T) {
assert.Equal(t, KVPairInt("a", 1), &KVPair{Key: "a", ValueType: KVPair_INT, ValueInt: 1})
}
func TestKVPairString(t *testing.T) {
assert.Equal(t, KVPairString("a", "b"), &KVPair{Key: "a", ValueType: KVPair_STRING, ValueString: "b"})
}