Corrected test case

This commit is contained in:
Norman B. Lancaster 2020-11-30 16:41:48 -06:00 committed by Daniel Martí
parent 58eb10ba10
commit d76060814e
1 changed files with 6 additions and 7 deletions

View File

@ -354,21 +354,20 @@ func main() {
const exampleWholeFileExternalFunction = `package foo_test const exampleWholeFileExternalFunction = `package foo_test
func foo(x int) func foo(int)
func Example() { func Example() {
foo(42) // External function reference foo(42)
fmt.Println("Hello, world!") // Output:
// Output: Hello, world!
} }
` `
const exampleWholeFileExternalFunctionOutput = `package main const exampleWholeFileExternalFunctionOutput = `package main
func foo(x int) func foo(int)
func main() { func main() {
fmt.Println("Hello, world!") foo(42)
} }
` `
@ -391,7 +390,7 @@ var exampleWholeFileTestCases = []struct {
"ExternalFunction", "ExternalFunction",
exampleWholeFileExternalFunction, exampleWholeFileExternalFunction,
exampleWholeFileExternalFunctionOutput, exampleWholeFileExternalFunctionOutput,
"Hello, world!\n", "",
}, },
} }