Simple roundtrip from ipptool works.
This commit is contained in:
17
packages/ipp/urivalue_test.go
Normal file
17
packages/ipp/urivalue_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package ipp
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestMarshalUriValue(T *testing.T) {
|
||||
var u uriValue
|
||||
u.name = "foo"
|
||||
u.value = "bar"
|
||||
b := u.marshal()
|
||||
assert.Len(T, b, 11)
|
||||
fmt.Printf("% x\n", b)
|
||||
}
|
||||
Reference in New Issue
Block a user