Skip to content

Commit 31e856f

Browse files
author
Jason Duncan
committed
Increasing test coverage because why not.
1 parent 87cc95c commit 31e856f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/format-table-test.el

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
;; -*- lexical-binding: t -*-
22

33
(require 'ert)
4+
(require 'ert-expectations)
45
(require 'format-table)
56
(require 'format-table-test-helper)
67

@@ -346,3 +347,14 @@
346347
(ert-deftest format-table-should-not-choke-on-mysql-string-with-no-table ()
347348
(let ((expected "5 rows in set (0.00 sec)"))
348349
(should (string-equal expected (format-table expected 'mysql 'mysql)))))
350+
351+
;;;;;;;;;;;;;;;;;;general stuff;;;;;;;;;;;;;;;;;;;
352+
353+
(ert-deftest format-table-should-error-when-presented-with-unknown-input-format ()
354+
(should-error (format-table "" 'do-not-trust-this-man 'org)))
355+
356+
(ert-deftest format-table-should-error-when-presented-with-unknown-output-format ()
357+
(should-error (format-table "" 'org 'do-not-trust-this-man)))
358+
359+
(ert-deftest format-table-should-allow-completely-empty-string ()
360+
(should (string-equal "" (format-table "" 'org 'org))))

0 commit comments

Comments
 (0)