Test the N command
diff --git a/testsuite/sed/sed-append-next-line b/testsuite/sed/sed-append-next-line
new file mode 100644
index 0000000..380b793
--- /dev/null
+++ b/testsuite/sed/sed-append-next-line
@@ -0,0 +1,9 @@
+busybox sed -n 'N;p'>output <<EOF
+a
+b
+c
+EOF
+cmp -s output - <<EOF
+a
+b
+EOF