Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestTemplateLookUp (0.29 sec)

  1. src/html/template/multi_test.go

    	}
    }
    
    // Issue 10879
    func TestEmptyTemplateCloneCrash(t *testing.T) {
    	t1 := New("base")
    	t1.Clone() // used to panic
    }
    
    // Issue 10910, 10926
    func TestTemplateLookUp(t *testing.T) {
    	t.Skip("broken on html/template") // TODO
    	t1 := New("foo")
    	if t1.Lookup("foo") != nil {
    		t.Error("Lookup returned non-nil value for undefined template foo")
    	}
    	t1.New("bar")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. src/text/template/multi_test.go

    	}
    }
    
    // Issue 10879
    func TestEmptyTemplateCloneCrash(t *testing.T) {
    	t1 := New("base")
    	t1.Clone() // used to panic
    }
    
    // Issue 10910, 10926
    func TestTemplateLookUp(t *testing.T) {
    	t1 := New("foo")
    	if t1.Lookup("foo") != nil {
    		t.Error("Lookup returned non-nil value for undefined template foo")
    	}
    	t1.New("bar")
    	if t1.Lookup("bar") != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 10:48:29 UTC 2022
    - 11.7K bytes
    - Viewed (0)
Back to top