From: Reinhold Kainhofer Date: Mon, 26 Sep 2011 10:53:34 +0000 (+0200) Subject: Add some missing regtests for warnings X-Git-Tag: release/2.15.14-1~21^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8c83a31308b5b44c696614db2b72a0a845cc116c;p=lilypond.git Add some missing regtests for warnings --- diff --git a/input/regression/bar-number-check-warning.ly b/input/regression/bar-number-check-warning.ly new file mode 100644 index 0000000000..a394dead0d --- /dev/null +++ b/input/regression/bar-number-check-warning.ly @@ -0,0 +1,18 @@ +\version "2.14.0" +#(ly:set-option 'warning-as-error #f) + +\header { + +texidoc="Bar numbers check may be inserted to check whether the current +bar number is correct. +" + +} + +\relative c'' { + c1 | + \barNumberCheck #2 % OK + c1 | + \barNumberCheck #15 % Warning + c1 +} diff --git a/input/regression/instrument-switch-invalid-warning.ly b/input/regression/instrument-switch-invalid-warning.ly new file mode 100644 index 0000000000..038dbcb2aa --- /dev/null +++ b/input/regression/instrument-switch-invalid-warning.ly @@ -0,0 +1,14 @@ +\version "2.14.0" +#(ly:set-option 'warning-as-error #f) + +\header { + texidoc = "The @code{switchInstrument} music function prints a warning if +the given instrument definition does not exist." +} + +\relative +{ + c4 + \instrumentSwitch "bassClar" + c +}