Skip to content

Commit

Permalink
feat: test updation for StringPointerFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
sajjanjyothi committed Sep 30, 2023
1 parent efeb92e commit fa8f56c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/strings/strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2057,15 +2057,24 @@ func TestStringPointerFrom(t *testing.T) {
s string
}
tests := []struct {
name string
args args
want string
}{
{
name: "valid string",
args: args{
s: "test",
},
want: "test",
},
{
name: "empty string",
args: args{
s: "",
},
want: "",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit fa8f56c

Please sign in to comment.