]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add some missing regtests for warnings
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 26 Sep 2011 10:53:34 +0000 (12:53 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 28 Sep 2011 11:06:06 +0000 (13:06 +0200)
input/regression/bar-number-check-warning.ly [new file with mode: 0644]
input/regression/instrument-switch-invalid-warning.ly [new file with mode: 0644]

diff --git a/input/regression/bar-number-check-warning.ly b/input/regression/bar-number-check-warning.ly
new file mode 100644 (file)
index 0000000..a394dea
--- /dev/null
@@ -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 (file)
index 0000000..038dbcb
--- /dev/null
@@ -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
+}