MCPcopy Index your code
hub / github.com/huichen/sego / expect

Function expect

test_utils.go:8–13  ·  view source on GitHub ↗
(t *testing.T, expect string, actual interface{})

Source from the content-addressed store, hash-verified

6)
7
8func expect(t *testing.T, expect string, actual interface{}) {
9 actualString := fmt.Sprint(actual)
10 if expect != actualString {
11 t.Errorf("期待值=\"%s\", 实际=\"%s\"", expect, actualString)
12 }
13}
14
15func printTokens(tokens []*Token, numTokens int) (output string) {
16 for iToken := 0; iToken < numTokens; iToken++ {

Callers 3

TestSplitFunction · 0.85
TestSegmentFunction · 0.85
TestLargeDictionaryFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestSplitFunction · 0.68
TestSegmentFunction · 0.68
TestLargeDictionaryFunction · 0.68