Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIsDotSlashPath (0.15 sec)

  1. src/cmd/doc/doc_test.go

    	{`.`, true},
    	{`./`, true},
    	{`.\`, true},
    	{`./x`, true},
    	{`.\x`, true},
    
    	{`..`, true},
    	{`../`, true},
    	{`..\`, true},
    	{`../x`, true},
    	{`..\x`, true},
    }
    
    func TestIsDotSlashPath(t *testing.T) {
    	for _, test := range isDotSlashTests {
    		if result := isDotSlash(test.str); result != test.result {
    			t.Errorf("isDotSlash(%q) = %t; expected %t", test.str, result, test.result)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:16:55 UTC 2023
    - 31.2K bytes
    - Viewed (0)
Back to top