fs/rc: add Copy method to rc.Params
This commit is contained in:
parent
b3710c962e
commit
847a44e7ad
2 changed files with 22 additions and 0 deletions
|
@ -63,6 +63,19 @@ func TestReshape(t *testing.T) {
|
|||
|
||||
}
|
||||
|
||||
func TestParamsCopy(t *testing.T) {
|
||||
in := Params{
|
||||
"ok": 1,
|
||||
"x": "seventeen",
|
||||
"nil": nil,
|
||||
}
|
||||
out := in.Copy()
|
||||
assert.Equal(t, in, out)
|
||||
if &in == &out {
|
||||
t.Error("didn't copy")
|
||||
}
|
||||
}
|
||||
|
||||
func TestParamsGet(t *testing.T) {
|
||||
in := Params{
|
||||
"ok": 1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue