X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Frepeat-unfold.ly;h=763020cd3c64b38d3635d96f5d4295bd7267756d;hb=89046337d628882fdb6c5caa804690a9fb6170f2;hp=bd083a7af0105f9084e94407d45035bdddbdbb44;hpb=955f829883aa125b2b633b1e71f6256da5b773fa;p=lilypond.git diff --git a/input/regression/repeat-unfold.ly b/input/regression/repeat-unfold.ly index bd083a7af0..763020cd3c 100644 --- a/input/regression/repeat-unfold.ly +++ b/input/regression/repeat-unfold.ly @@ -1,29 +1,23 @@ -#(ly:set-option 'old-relative) -\version "1.9.0" +\version "2.14.0" + +#(ly:set-option 'warning-as-error #f) +#(ly:expect-warning (_ "More alternatives than repeats. Junking excess alternatives")) \header{ -texidoc=" -LilyPond has three modes for repeats: folded, unfolded and -semi-unfolded. Unfolded repeats are fully written out. Semi unfolded -repeats have the body written and all alternatives sequentially. -Folded repeats have the body written and all alternatives -simultaneo.ly. If the number of alternatives is larger than the -repeat count, the excess alternatives are ignored. If the number of -alternatives is smaller, the first alternative is multiplied to get to -the number of repeats. + texidoc="LilyPond has two modes for repeats: unfolded and semi-unfolded. +Unfolded repeats are fully written out. Semi unfolded repeats have the body +written and all alternatives sequentially. If the number of alternatives is +larger than the repeat count, the excess alternatives are ignored. If the +number of alternatives is smaller, the first alternative is multiplied to +get to the number of repeats. -Unfolded behavior: -" +Unfolded behavior:" } -\score { - - \context Voice \notes\relative c'' { -\repeat unfold 3 { c^"3x 0a" d } -% less alts than body -\repeat unfold 4 { c^"4x 0a" d } \alternative { e f } -% more alts than body -\repeat unfold 2 { c^"2x 3a" d } \alternative { e f g } -}} - - +\context Voice \relative c'' { + \repeat unfold 3 { c^"3x 0a" d } + %% less alts than body + \repeat unfold 4 { c^"4x 0a" d } \alternative { e f } + %% more alts than body + \repeat unfold 2 { c^"2x 3a" d } \alternative { e f g } +}