My Emacs configuration.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
829 B

;;; db-utils-test.el -- Tests for db-utils -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(require 'ert)
(require 'db-utils)
(require 'cl-lib)
(ert-deftest db-utils-db/ntp-to-time ()
"Test NTP conversion to readable time with `db/ntp-to-time'."
(should (equal (db/ntp-to-time #xdcd2ac0c #x05c6dbac)
(should (equal (db/ntp-to-time #xbd5927ee #xbc616000)
(should (equal (db/ntp-to-time #x00000000 #x0000000)
(should (equal (db/ntp-to-time #xd36968b7 #xe74172bf)
(should (equal (db/ntp-to-time #xe2a16f23 #x80270e76)
;;; db-utils-test.el ends here