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 11; ; -*- lexical-binding : t -*-
22
33(require 'ert )
4+ (require 'ert-expectations )
45(require 'format-table )
56(require 'format-table-test-helper )
67
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 ))))
You can’t perform that action at this time.
0 commit comments