Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEqString (0.1 sec)

  1. src/runtime/runtime_test.go

    	}
    	// optimization in assembly versions:
    	// if s1.str == s2.str { return true }
    	for i := 0; i < len(s1); i++ {
    		if s1[i] != s2[i] {
    			return false
    		}
    	}
    	return true
    }
    
    func TestEqString(t *testing.T) {
    	// This isn't really an exhaustive test of == on strings, it's
    	// just a convenient way of documenting (via eqstring_generic)
    	// what == does.
    	s := []string{
    		"",
    		"a",
    		"c",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top