]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/optional-args-predicate.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / input / regression / optional-args-predicate.ly
1 \version "2.19.22"
2
3 \header{
4   texidoc= "Test predicate-based optional music function argument skipping."
5 }
6
7 \layout { ragged-right = ##t }
8
9 test=#(define-scheme-function (str int frac exp)
10        ((string? "def1") (integer? "def2") (number-pair? "def3") list?)
11        (if (not (equal? (list str int frac) exp))
12         (ly:parser-error
13          (format #f "Expected ~a, got ~a.\n" exp
14           (list str int frac))
15          (*location*))))
16
17 \test "a" #3 #'(3 . 4) #'("a" 3 (3 . 4))
18 \test "a" #3 #'("a" 3 "def3")
19 \test "a" #'("a" "def2" "def3")
20 \test #'("def1" "def2" "def3")