Skip to content

Commit

Permalink
Add 1 test on xmltm.scm and upgrade to v1.2.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Oct 11, 2024
1 parent aec46be commit c46132e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Download and install MoganResearch
run: |
wget https://github.com/XmacsLabs/mogan/releases/download/v1.2.9.3-rc1/mogan-research-v1.2.9.3-rc1-debian12.deb -O /tmp/mogan-research.deb
wget https://github.com/XmacsLabs/mogan/releases/download/v1.2.9.3/mogan-research-v1.2.9.3-debian12.deb -O /tmp/mogan-research.deb
DEBIAN_FRONTEND=noninteractive apt install -y /tmp/mogan-research.deb
- name: Remove existing content in target directory
Expand Down
1 change: 1 addition & 0 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/usr/bin/MoganResearch --version

var name = $args[0]
echo /usr/bin/MoganResearch --headless -b tests/$name.scm -x "("$name")" -q
/usr/bin/MoganResearch --headless -b tests/$name.scm -x "("$name")" -q
23 changes: 23 additions & 0 deletions tests/xmltm-test.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; MODULE : xmltm-test.scm
;; DESCRIPTION : Test suite for xmltm
;; COPYRIGHT : (C) 2024 Darcy Shen
;;
;; This software falls under the GNU general public license version 3 or later.
;; It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
;; in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(import (liii check))

(texmacs-module (convert data xmltm-test)
(:use (convert data xmltm)))

(check (htmltm-parse "left<span> </span>right")
=> '(*TOP* "left" (h:span " ") "right"))

(tm-define (xmltm-test)
(check-report))

0 comments on commit c46132e

Please sign in to comment.