aboutsummaryrefslogtreecommitdiff
path: root/test/no-final-newline
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-10-23 02:08:00 +0200
committerJohn Ankarström <john@ankarstrom.se>2020-10-23 02:08:00 +0200
commit73bcdd66f3b4ce183bf8b9b0b5784830189c37f5 (patch)
treeefa2430e10347638a21a01598c42c4280690fc26 /test/no-final-newline
downloadtt-73bcdd66f3b4ce183bf8b9b0b5784830189c37f5.tar.gz
release 1.0
Diffstat (limited to 'test/no-final-newline')
-rw-r--r--test/no-final-newline/EXP=test.txt5
-rw-r--r--test/no-final-newline/OUT=test.txt5
-rw-r--r--test/no-final-newline/build.bat4
-rw-r--r--test/no-final-newline/in.txt7
-rw-r--r--test/no-final-newline/test.txt5
5 files changed, 26 insertions, 0 deletions
diff --git a/test/no-final-newline/EXP=test.txt b/test/no-final-newline/EXP=test.txt
new file mode 100644
index 0000000..82a2490
--- /dev/null
+++ b/test/no-final-newline/EXP=test.txt
@@ -0,0 +1,5 @@
+at top
+
+---
+
+at bottom
diff --git a/test/no-final-newline/OUT=test.txt b/test/no-final-newline/OUT=test.txt
new file mode 100644
index 0000000..82a2490
--- /dev/null
+++ b/test/no-final-newline/OUT=test.txt
@@ -0,0 +1,5 @@
+at top
+
+---
+
+at bottom
diff --git a/test/no-final-newline/build.bat b/test/no-final-newline/build.bat
new file mode 100644
index 0000000..2253752
--- /dev/null
+++ b/test/no-final-newline/build.bat
@@ -0,0 +1,4 @@
+@echo off
+setlocal
+cd /d %~dp0
+..\..\tt -oOUT= test.txt < in.txt \ No newline at end of file
diff --git a/test/no-final-newline/in.txt b/test/no-final-newline/in.txt
new file mode 100644
index 0000000..9fe42fa
--- /dev/null
+++ b/test/no-final-newline/in.txt
@@ -0,0 +1,7 @@
+-> top
+
+ at top
+
+-> bottom
+
+ at bottom \ No newline at end of file
diff --git a/test/no-final-newline/test.txt b/test/no-final-newline/test.txt
new file mode 100644
index 0000000..3152f74
--- /dev/null
+++ b/test/no-final-newline/test.txt
@@ -0,0 +1,5 @@
+<<top>>
+
+---
+
+<<bottom>> \ No newline at end of file