Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 799e7fd

Browse files
committedAug 9, 2024·
reorder test methods to their alphabetical position
1 parent bb569a1 commit 799e7fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎support/str/str_test.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ func (s *StringTestSuite) TestCharAt() {
112112
s.Equal("", Of("こんにちは、世界!").CharAt(-200))
113113
}
114114

115-
func (s *StringTestSuite) TestChopStart() {
116-
s.Equal("Framework", Of("GoravelFramework").ChopStart("Goravel").String())
117-
s.Equal("goravel.dev", Of("https://goravel.dev").ChopStart("https://").String())
118-
s.Equal("goravel.dev", Of("https://goravel.dev").ChopStart("https://", "http://").String())
119-
s.Equal("goravel.dev", Of("http://goravel.dev").ChopStart("https://", "http://").String())
120-
s.Equal("goravel", "go"+Of("laravel").ChopStart("la").String())
121-
}
122-
123115
func (s *StringTestSuite) TestChopEnd() {
124116
s.Equal("Goravel", Of("GoravelFramework").ChopEnd("Framework").String())
125117
s.Equal("https://goravel", Of("https://goravel.dev").ChopEnd(".dev").String())
@@ -128,6 +120,14 @@ func (s *StringTestSuite) TestChopEnd() {
128120
s.Equal("go", Of("golaravel").ChopEnd("laravel").String())
129121
}
130122

123+
func (s *StringTestSuite) TestChopStart() {
124+
s.Equal("Framework", Of("GoravelFramework").ChopStart("Goravel").String())
125+
s.Equal("goravel.dev", Of("https://goravel.dev").ChopStart("https://").String())
126+
s.Equal("goravel.dev", Of("https://goravel.dev").ChopStart("https://", "http://").String())
127+
s.Equal("goravel.dev", Of("http://goravel.dev").ChopStart("https://", "http://").String())
128+
s.Equal("goravel", "go"+Of("laravel").ChopStart("la").String())
129+
}
130+
131131
func (s *StringTestSuite) TestContains() {
132132
s.True(Of("kkumar").Contains("uma"))
133133
s.True(Of("kkumar").Contains("kumar"))

0 commit comments

Comments
 (0)
Please sign in to comment.