]> git.donarmstrong.com Git - lilypond.git/commitdiff
flags regression test: better formatting
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 30 Aug 2008 22:55:01 +0000 (00:55 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 30 Aug 2008 22:55:01 +0000 (00:55 +0200)
Instead of using one score, where all three methods are printed in three
lines, I now use three scores, which should look absolutely identical.

This also gets rid of the undesired empty first line...

input/regression/flags-default.ly

index 5ade93251ed87d9a3b061af7c417b3d27f7fbb20..e6d65bd3b745418e10d97ab69047d3049c6da959 100644 (file)
@@ -3,10 +3,10 @@
 
 \header {
   texidoc = "Default flag styles: '(), 'mensural and 'no-flag.
-  Compare all three methods to print them (C++ default implementation, 
-  Scheme implementation using the 'flag-style grob property and 
-  setting the 'flag property explicitly to the desired Scheme function.
-  All three lines should be absolutely identical."
+  Compare all three methods to print them: (1) C++ default implementation, 
+  (2) Scheme implementation using the 'flag-style grob property and 
+  (3) setting the 'flag property explicitly to the desired Scheme function.
+  All three systems should be absolutely identical."
 }
 
 \paper {
 }
 
 % test notes, which will be shown in different style:
-testnotes = { \autoBeamOff c'8 d'16 c'32 d'64 \acciaccatura {c'8} d'64 c''8 d''16 c''32 d''64 \acciaccatura {c''8} d''64  }
+testnotes = { \autoBeamOff
+  c'8 d'16 c'32 d'64 \acciaccatura {c'8} d'64
+  c''8 d''16 c''32 d''64 \acciaccatura {c''8} d''64
+}
 
+% Old settings: flag-style set to default, 'mensural, 'no-flag; using the
+% default C++ function ly:stem::calc-stem
 {
   \override Score.RehearsalMark #'self-alignment-X = #LEFT
   \time 2/4
-  s2 \break
 
-  % Old settings: default, 'mensural, 'no-flag
   \mark "Default flags (C++)"
   \testnotes
 
@@ -32,10 +35,13 @@ testnotes = { \autoBeamOff c'8 d'16 c'32 d'64 \acciaccatura {c'8} d'64 c''8 d''1
   \mark "Symbol: 'no-flag (C++)"
   \override Stem #'flag-style = #'no-flag
   \testnotes
+}
 
-  \break
+% The same, but using the Scheme implementation of default-flag
+{
+  \override Score.RehearsalMark #'self-alignment-X = #LEFT
+  \time 2/4
 
-  % The same, but with the Scheme implementation of default-flag
   \override Stem #'flag = #default-flag
   \revert Stem #'flag-style
   \mark "Default flags (Scheme)"
@@ -48,10 +54,13 @@ testnotes = { \autoBeamOff c'8 d'16 c'32 d'64 \acciaccatura {c'8} d'64 c''8 d''1
   \mark "Symbol: 'no-flag (Scheme)"
   \override Stem #'flag-style = #'no-flag
   \testnotes
+}
 
-  \break
+% New scheme functions: normal-flag, mensural-flag, no-flag
+{
+  \override Score.RehearsalMark #'self-alignment-X = #LEFT
+  \time 2/4
 
-  % New settings: no settings, normal-flag, mensural-flag, no-flag
   \mark "Function: normal-flag"
   \override Stem #'flag = #normal-flag
   \testnotes