fix a testscase->a test case (#7542)

"a testscase" is not correct.
pull/7540/merge
AdamDang 2018-02-28 03:11:46 +08:00 committed by k8s-ci-robot
parent 2fe0ffc2a8
commit 0a3cf5ed82
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,7 @@ func TestExampleObjectSchemas(t *testing.T) {
// 6) Look for #5 followed by a newline followed by ``` (end of the code block) // 6) Look for #5 followed by a newline followed by ``` (end of the code block)
// //
// This could probably be simplified, but is already too delicate. Before any // This could probably be simplified, but is already too delicate. Before any
// real changes, we should have a testscase that just tests this regex. // real changes, we should have a test case that just tests this regex.
var sampleRegexp = regexp.MustCompile("(?ms)^```(?:(?P<type>yaml)\\w*\\n(?P<content>.+?)|\\w*\\n(?P<content>\\{.+?\\}))\\n^```") var sampleRegexp = regexp.MustCompile("(?ms)^```(?:(?P<type>yaml)\\w*\\n(?P<content>.+?)|\\w*\\n(?P<content>\\{.+?\\}))\\n^```")
var subsetRegexp = regexp.MustCompile("(?ms)\\.{3}") var subsetRegexp = regexp.MustCompile("(?ms)\\.{3}")