Skip to content

Commit

Permalink
✅ test: update testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyuexing committed Feb 22, 2024
1 parent 4c695d4 commit c8d1e08
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,16 +399,6 @@ func TestStringToNumber(t *testing.T){
}
}

func TestConectWord(t *testing.T){
text := "milk|potato|buffer"
result := utils.ConnectWord(text,false)

if result != "milk or potato and buffer" {
t.Error(fmt.Sprintf("TestConectWord Expect: %s, but got %s","milk or potato and buffer",result))
}

}

func TestFindVariabls(t *testing.T){
result := utils.FindVariableNames("{name} with {code}","{}")
if result[0] != "name" {
Expand Down Expand Up @@ -440,6 +430,7 @@ func TestReferenceString(t *testing.T){
}
fmt.Printf("%s\n",ref("byName"))
fmt.Printf("%s\n",ref("updateByName"))
fmt.Printf("%s\n",utils.FindVariableNames(ref("updateByName"),"{}"))
fmt.Printf("%s\n",ref("error"))

}

0 comments on commit c8d1e08

Please sign in to comment.