X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Flyric-combine-empty-warning.ly;fp=input%2Fregression%2Flyric-combine-empty-warning.ly;h=f87a266fc960344bb0a910193357d25f1ab16958;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/input/regression/lyric-combine-empty-warning.ly b/input/regression/lyric-combine-empty-warning.ly new file mode 100644 index 0000000000..f87a266fc9 --- /dev/null +++ b/input/regression/lyric-combine-empty-warning.ly @@ -0,0 +1,23 @@ +\version "2.14.2" + +\header { + + texidoc = "If lyrics are assigned to a non-existing voice, a warning should +be printed. However, if the lyrics context does not contain any lyrics, then +no warning should be printed." + +} + +#(ly:set-option 'warning-as-error #f) +<< + \new Staff + \new Voice = "notes" { + c1 + } + % This should not give a warning (empty lyrics, existing voice): + \new Lyrics \lyricsto "notes" \lyricmode { } + % This should give a warning (non-existing voice): + \new Lyrics \lyricsto "not-existing-notes" \lyricmode { Test } + % This should NOT give a warning (non-existing voice, but also no lyrics): + \new Lyrics \lyricsto "not-existing-notes" \lyricmode { } +>>