File: toc-missing-node.ly

package info (click to toggle)
lilypond 2.24.4-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 70,352 kB
  • sloc: cpp: 87,962; lisp: 43,344; xml: 31,269; python: 22,974; sh: 4,090; yacc: 4,080; perl: 2,873; lex: 1,387; makefile: 76
file content (18 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\version "2.23.11"

\header {
  texidoc = "A missing node in a structured TOC is handled gracefully."
}

#(ly:set-option 'warning-as-error)
#(ly:expect-warning (G_ "TOC node ~a not defined") 'foo)
#(ly:expect-warning (G_ "TOC node ~a not defined") 'eggs)

\markuplist \table-of-contents

\tocItem foo.bar "oops" %% \tocItem foo should have been defined

\tocItem spam "spam"
\tocItem spam.eggs.baz "oops" %% \tocItem spam.eggs should have been defined

{ c' }