Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIssue5945 (0.23 sec)

  1. src/go/printer/printer_test.go

    		}
    	}
    
    	if t.Failed() {
    		t.Logf("\n%s", buf.Bytes())
    	}
    }
    
    // Verify that the SourcePos mode doesn't emit unnecessary //line directives
    // before empty lines.
    func TestIssue5945(t *testing.T) {
    	const orig = `
    package p   // line 2
    func f() {} // line 3
    
    var x, y, z int
    
    
    func g() { // line 8
    }
    `
    
    	const want = `//line src.go:2
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top