Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCopyStrings (0.13 sec)

  1. pkg/util/slice/slice_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package slice
    
    import (
    	"reflect"
    	"testing"
    )
    
    func TestCopyStrings(t *testing.T) {
    	var src1 []string
    	dest1 := CopyStrings(src1)
    
    	if !reflect.DeepEqual(src1, dest1) {
    		t.Errorf("%v and %v are not equal", src1, dest1)
    	}
    
    	src2 := []string{}
    	dest2 := CopyStrings(src2)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 30 07:21:37 UTC 2022
    - 3.5K bytes
    - Viewed (0)
Back to top