Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestToStringKey (0.4 sec)

  1. utils/utils_test.go

    		t.Run(test.v, func(t *testing.T) {
    			if out := CheckTruth(test.v); out != test.out {
    				t.Errorf("CheckTruth(%s) want: %t, got: %t", test.v, test.out, out)
    			}
    		})
    	}
    }
    
    func TestToStringKey(t *testing.T) {
    	cases := []struct {
    		values []interface{}
    		key    string
    	}{
    		{[]interface{}{"a"}, "a"},
    		{[]interface{}{1, 2, 3}, "1_2_3"},
    		{[]interface{}{1, nil, 3}, "1_nil_3"},
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Feb 19 03:42:25 GMT 2024
    - 3.6K bytes
    - Viewed (0)
Back to top