]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4481/2: Add regression check
authorDavid Kastrup <dak@gnu.org>
Sat, 4 Jul 2015 15:27:53 +0000 (17:27 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 6 Jul 2015 11:41:42 +0000 (13:41 +0200)
input/regression/bar-number-check.ly [new file with mode: 0644]

diff --git a/input/regression/bar-number-check.ly b/input/regression/bar-number-check.ly
new file mode 100644 (file)
index 0000000..7f6d914
--- /dev/null
@@ -0,0 +1,19 @@
+\version "2.18.0"
+
+\header {
+  texidoc = "This checks the warning of @code{\\barNumberCheck}."
+}
+
+\layout { ragged-right = ##t }
+
+#(ly:expect-warning (_ "Barcheck failed got ~a expect ~a") 2 3)
+\book {
+  \score {
+    {
+      c'2^\markup \with-color #green \bold "\\barNumberCheck #1"
+      \barNumberCheck #1
+      d'^\markup \with-color #red \bold "\\barNumberCheck #3"
+      \barNumberCheck #3
+    }
+  }
+}