1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-25 23:02:22 +02:00
Files
starter/postgres_func/postgres_func_test.go
Nikitin Aleksandr e41e809e0d new
2023-03-17 11:20:09 +03:00

18 lines
305 B
Go

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 != "'2023-01-01T00:00:00+03:00'" {
t.Error("postgres_func_test.TestStringSQLTime() error")
}
}