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