Skip to content

Commit

Permalink
tests/table-preset ("print-table-presets"): New test
Browse files Browse the repository at this point in the history
* tests/table-preset.scm ("print-table-presets"): New test.
  • Loading branch information
artyom-poptsov committed Jul 17, 2024
1 parent 94aa4d2 commit 3779c72
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/table-preset.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;;; table-preset.scm -- Tests for table presets.

;; Copyright (C) 2021 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;; Copyright (C) 2021-2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -31,6 +31,17 @@
(test-assert "table-preset-name?: #f"
(not (table-preset-name? "rs=-,cs=|")))



(define %table-presets-path
(format #f "~a/presets" (getenv "abs_top_srcdir")))

(test-assert "print-table-presets"
(with-output-to-string
(lambda ()
(print-table-presets (current-output-port)
#:table-presets-path %table-presets-path))))


(define exit-status (test-runner-fail-count (test-runner-current)))

Expand Down

0 comments on commit 3779c72

Please sign in to comment.