mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-05 00:40:24 +08:00
16 lines
249 B
Go
16 lines
249 B
Go
|
|
package sqlstmt
|
||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestQuoteCharUnwrap(t *testing.T) {
|
||
|
|
value := "`hehehe`"
|
||
|
|
qc := GetQuoteChar(value)
|
||
|
|
if qc != BACK_QUOTE {
|
||
|
|
t.Fatal("quote char should be BACK_QUOTE")
|
||
|
|
}
|
||
|
|
oriValue := qc.Unwrap(value)
|
||
|
|
t.Log(oriValue)
|
||
|
|
}
|