OLD | NEW |
1 \version "2.19.2" | 1 \version "2.19.2" |
2 | 2 |
3 #(ly:set-option 'warning-as-error #f) | 3 #(ly:set-option 'warning-as-error #t) |
4 #(ly:expect-warning (ly:translate-cpp-warning-scheme "cannot find Voice `%s'") "
not-existing-notes") | 4 #(ly:expect-warning (ly:translate-cpp-warning-scheme "cannot find context: %s")
"Voice = not-existing-notes") |
5 | 5 |
6 \header { | 6 \header { |
7 | 7 |
8 texidoc = "If lyrics are assigned to a non-existing voice, a warning should | 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 | 9 be printed. However, if the lyrics context does not contain any lyrics, then |
10 no warning should be printed." | 10 no warning should be printed." |
11 | 11 |
12 } | 12 } |
13 | 13 |
14 << | 14 << |
15 \new Staff | 15 \new Staff |
16 \new Voice = "notes" { | 16 \new Voice = "notes" { |
17 c1 | 17 c1 |
18 } | 18 } |
19 % This should not give a warning (empty lyrics, existing voice): | 19 % This should not give a warning (empty lyrics, existing voice): |
20 \new Lyrics \lyricsto "notes" { } | 20 \new Lyrics \lyricsto "notes" { } |
21 % This should give a warning (non-existing voice): | 21 % This should give a warning (non-existing voice): |
22 \new Lyrics \lyricsto "not-existing-notes" { Test } | 22 \new Lyrics \lyricsto "not-existing-notes" { Test } |
23 % This should NOT give a warning (non-existing voice, but also no lyrics): | 23 % This should NOT give a warning (non-existing voice, but also no lyrics): |
24 \new Lyrics \lyricsto "not-existing-notes" { } | 24 \new Lyrics \lyricsto "not-existing-notes" { } |
25 >> | 25 >> |
OLD | NEW |