File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
; ; -*- lexical-binding : t -*-
2
2
3
3
(require 'ert )
4
+ (require 'ert-expectations )
4
5
(require 'format-table )
5
6
(require 'format-table-test-helper )
6
7
346
347
(ert-deftest format-table-should-not-choke-on-mysql-string-with-no-table ()
347
348
(let ((expected " 5 rows in set (0.00 sec)" ))
348
349
(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 ))))
You can’t perform that action at this time.
0 commit comments