diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-02 13:43:34 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-02 13:43:34 +0100 |
| commit | 0a3fdd77894a02c63cc14592505a4dbaaeaf7af7 (patch) | |
| tree | ee2505726fae7a1f039a37b8145f6c16ac0feba0 /sam/commands | |
| parent | 11754d3c6451288fc06d85fb2f6e85552336010e (diff) | |
| download | vis-0a3fdd77894a02c63cc14592505a4dbaaeaf7af7.tar.gz vis-0a3fdd77894a02c63cc14592505a4dbaaeaf7af7.tar.xz | |
test/sam: add more tests
Diffstat (limited to 'sam/commands')
| -rw-r--r-- | sam/commands/group.cmd | 5 | ||||
| -rw-r--r-- | sam/commands/group.in | 1 | ||||
| -rw-r--r-- | sam/commands/long-text.cmd | 11 | ||||
| -rw-r--r-- | sam/commands/long-text.in | 0 | ||||
| -rw-r--r-- | sam/commands/pipe-out.cmd | 5 | ||||
| -rw-r--r-- | sam/commands/pipe-out.in | 1 | ||||
| -rw-r--r-- | sam/commands/repeated-shell.cmd | 2 | ||||
| -rw-r--r-- | sam/commands/repeated-shell.in | 2 |
8 files changed, 27 insertions, 0 deletions
diff --git a/sam/commands/group.cmd b/sam/commands/group.cmd new file mode 100644 index 0000000..8d77ed3 --- /dev/null +++ b/sam/commands/group.cmd @@ -0,0 +1,5 @@ +,x/Emacs/ { + i/V/ + d + a/i/ +} diff --git a/sam/commands/group.in b/sam/commands/group.in new file mode 100644 index 0000000..203403a --- /dev/null +++ b/sam/commands/group.in @@ -0,0 +1 @@ +Emacs Emacs! diff --git a/sam/commands/long-text.cmd b/sam/commands/long-text.cmd new file mode 100644 index 0000000..420cb30 --- /dev/null +++ b/sam/commands/long-text.cmd @@ -0,0 +1,11 @@ +i +The +quick +brown +fox +jumps +over +the +lazy +dog +. diff --git a/sam/commands/long-text.in b/sam/commands/long-text.in new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sam/commands/long-text.in diff --git a/sam/commands/pipe-out.cmd b/sam/commands/pipe-out.cmd new file mode 100644 index 0000000..2a23da1 --- /dev/null +++ b/sam/commands/pipe-out.cmd @@ -0,0 +1,5 @@ +1 > cat > pipe-out.tmp +0 < cat pipe-out.tmp +0 r pipe-out.tmp +! rm pipe-out.tmp +0 < cat pipe-out.tmp diff --git a/sam/commands/pipe-out.in b/sam/commands/pipe-out.in new file mode 100644 index 0000000..557db03 --- /dev/null +++ b/sam/commands/pipe-out.in @@ -0,0 +1 @@ +Hello World diff --git a/sam/commands/repeated-shell.cmd b/sam/commands/repeated-shell.cmd new file mode 100644 index 0000000..643e1d1 --- /dev/null +++ b/sam/commands/repeated-shell.cmd @@ -0,0 +1,2 @@ +1 | tr a-z A-Z +2 | diff --git a/sam/commands/repeated-shell.in b/sam/commands/repeated-shell.in new file mode 100644 index 0000000..f9264f7 --- /dev/null +++ b/sam/commands/repeated-shell.in @@ -0,0 +1,2 @@ +Hello +World |
