Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix syntax in examples #975

Merged
merged 1 commit into from May 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/index.md
Expand Up @@ -1239,7 +1239,7 @@ Let's write a table spec to describe the Author name functions we tested earlier
DescribeTable("Extracting the author's first and last name",
func(author string, isValid bool, firstName string, lastName string) {
book := &books.Book{
Title: "My Book"
Title: "My Book",
Author: author,
Pages: 10,
}
Expand Down Expand Up @@ -1267,7 +1267,7 @@ To put it another way, the table test above is equivalent to:
Describe("Extracting the author's first and last name", func() {
It("When author has both names", func() {
book := &books.Book{
Title: "My Book"
Title: "My Book",
Author: "Victor Hugo",
Pages: 10,
}
Expand All @@ -1278,7 +1278,7 @@ Describe("Extracting the author's first and last name", func() {

It("When author has one name", func() {
book := &books.Book{
Title: "My Book"
Title: "My Book",
Author: "Hugo",
Pages: 10,
}
Expand All @@ -1289,7 +1289,7 @@ Describe("Extracting the author's first and last name", func() {

It("When author has a middle name", func() {
book := &books.Book{
Title: "My Book"
Title: "My Book",
Author: "Victor Marie Hugo",
Pages: 10,
}
Expand All @@ -1300,7 +1300,7 @@ Describe("Extracting the author's first and last name", func() {

It("When author has no name", func() {
book := &books.Book{
Title: "My Book"
Title: "My Book",
Author: "",
Pages: 10,
}
Expand Down