Skip to content

Commit

Permalink
fix testable example
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Jul 22, 2023
1 parent 72fddbe commit c44deb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc_test.go
Expand Up @@ -67,6 +67,9 @@ func ExampleSpec_second() {
} else {
fmt.Println("Could not load this spec")
}

// Output:
// This spec is valid
}

func ExampleSpecValidator_Validate() {
Expand Down Expand Up @@ -116,6 +119,9 @@ func ExampleSpecValidator_Validate_url() {
fmt.Println("This spec has some validation warnings")
}
}

// Output:
// This spec is valid
}

func ExampleAgainstSchema() {
Expand Down

0 comments on commit c44deb5

Please sign in to comment.