mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00
19 lines
209 B
Go
19 lines
209 B
Go
package maps
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestCopy(t *testing.T) {
|
|
a := map[string]string{
|
|
"foo": "bar",
|
|
"bar": "foo",
|
|
}
|
|
|
|
b := Copy(a)
|
|
|
|
require.Equal(t, a, b)
|
|
}
|