]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/lyric-combine-empty-warning.ly
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / input / regression / lyric-combine-empty-warning.ly
1 \version "2.19.2"
2
3 #(ly:set-option 'warning-as-error #f)
4 #(ly:expect-warning (ly:translate-cpp-warning-scheme "cannot find Voice `%s'") "not-existing-notes")
5
6 \header {
7
8   texidoc = "If lyrics are assigned to a non-existing voice, a warning should
9 be printed.  However, if the lyrics context does not contain any lyrics, then
10 no warning should be printed."
11
12 }
13
14 <<
15   \new Staff
16     \new Voice = "notes" {
17       c1
18     }
19   % This should not give a warning (empty lyrics, existing voice):
20   \new Lyrics \lyricsto "notes" { }
21   % This should give a warning (non-existing voice):
22   \new Lyrics \lyricsto "not-existing-notes" { Test }
23   % This should NOT give a warning (non-existing voice, but also no lyrics):
24   \new Lyrics \lyricsto "not-existing-notes" { }
25 >>