From 10d26f3b35cac5bd27c450fcb99377666a9e2eed Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 28 Jan 2023 01:37:05 +0000 Subject: tests: Test ast->string. * tests/ast.test ("ast->string"): New test. --- tests/ast.test | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/ast.test b/tests/ast.test index 1110faf..ed09bb0 100644 --- a/tests/ast.test +++ b/tests/ast.test @@ -1,6 +1,7 @@ ;;; Excercise the AST routines. -*- Scheme -*- ;;; ;;; Copyright (C) 2009, 2012, 2021 Ludovic Courtès +;;; Copyright (C) 2023 Arun Isaac ;;; ;;; This file is part of Skribilo. ;;; @@ -64,6 +65,10 @@ (null? (cdr body)))))) (null? (cdr body))))) +(test-equal "ast->string" + "Blah." + (ast->string (document #:title "Foo" (chapter #:title "Bar" "Blah.")))) + (test-assert "`find-down' returns the empty list" (let* ((doc (document (chapter (section)) (chapter (section)))) (lst (find-down (lambda (n) (is-markup? n 'chapter)) doc))) -- cgit v1.2.3