@@ -63,7 +63,7 @@ func TestModelGeneration(t *testing.T) {
6363 for _ , commentGroup := range node .Comments {
6464 text := commentGroup .Text ()
6565 words := strings .Split (text , " " )
66- require .True (t , len (words ) > 1 , "expected description %q to have more than one word" , text )
66+ require .Greaterf (t , len (words ), 1 , "expected description %q to have more than one word" , text )
6767 }
6868 })
6969
@@ -81,7 +81,7 @@ func TestModelGeneration(t *testing.T) {
8181 }
8282
8383 for _ , tag := range expectedTags {
84- require .True (t , strings . Contains ( fileText , tag ) , "\n expected:\n " + tag + "\n got\n " + fileText )
84+ require .Contains (t , fileText , tag , "\n expected:\n " + tag + "\n got\n " + fileText )
8585 }
8686 })
8787
@@ -99,7 +99,7 @@ func TestModelGeneration(t *testing.T) {
9999 }
100100
101101 for _ , tag := range expectedTags {
102- require .True (t , strings . Contains ( fileText , tag ) , "\n expected:\n " + tag + "\n got\n " + fileText )
102+ require .Contains (t , fileText , tag , "\n expected:\n " + tag + "\n got\n " + fileText )
103103 }
104104 })
105105
0 commit comments