1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-24 22:53:52 +02:00
Files
starter/mssql_func/mssql_func_test.go

18 lines
297 B
Go
Raw Normal View History

2023-04-25 17:28:10 +03:00
package postgres_func
import (
"testing"
"time"
)
func TestStringSQLTime(t *testing.T) {
var loc = time.Local
time1 := time.Date(2023, 1, 1, 0, 0, 0, 0, loc)
Otvet := StringSQLTime(time1)
if Otvet != "'20230101 00:00:00'" {
t.Error("postgres_func_test.TestStringSQLTime() error")
}
}