Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestKeywordsAndFuncs (0.17 sec)

  1. src/text/template/parse/parse_test.go

    			}
    			if result := tmpl.Root.String(); result != test.result {
    				t.Errorf("%s=(%q): got\n\t%v\nexpected\n\t%v", test.name, test.input, result, test.result)
    			}
    		})
    	}
    }
    
    func TestKeywordsAndFuncs(t *testing.T) {
    	// Check collisions between functions and new keywords like 'break'. When a
    	// break function is provided, the parser should treat 'break' as a function,
    	// not a keyword.
    	textFormat = "%q"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
Back to top