mirror of
https://github.com/ManyakRus/starter.git
synced 2025-02-21 20:47:37 +02:00
18 lines
297 B
Go
18 lines
297 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 != "'20230101 00:00:00'" {
|
|
t.Error("postgres_func_test.TestStringSQLTime() error")
|
|
}
|
|
|
|
}
|