add basic manual test
[cedit] / test / test
diff --git a/test/test b/test/test
new file mode 100755 (executable)
index 0000000..76eaea4
--- /dev/null
+++ b/test/test
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+cd $(mktemp -d)
+
+cat >f <<'EOF'
+this
+little
+EOF
+
+
+cedit -v f <<'EOF'
+piggy
+went
+to
+market
+EOF
+
+
+cedit -v sec2 f <<'EOF'
+another little piggy
+stayed home
+EOF
+
+cat >>f <<'EOF'
+wee wee wee
+EOF
+
+cedit -v f <<'EOF'
+piggy
+went
+to
+market
+EOF
+
+
+cedit -v sec2 f <<'EOF'
+another little piggy
+stayed home
+EOF