mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
14 lines
246 B
Go
14 lines
246 B
Go
package utils
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Expect(t *testing.T, expect string, actual interface{}) {
|
|
actualString := fmt.Sprint(actual)
|
|
if expect != actualString {
|
|
t.Errorf("期待值=\"%s\", 实际=\"%s\"", expect, actualString)
|
|
}
|
|
}
|