diff options
| author | Shulhan <ms@kilabit.info> | 2022-07-25 01:54:57 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-07-25 01:54:57 +0700 |
| commit | 6c72cd80c30f62885809ac874e9869fdb0a1aaaa (patch) | |
| tree | 7dec5f53e306a565d995cb330b42a2ede1817726 /lib/ini | |
| parent | eb932c941bd3456f5b0635641274853e062916e7 (diff) | |
| download | pakakeh.go-6c72cd80c30f62885809ac874e9869fdb0a1aaaa.tar.xz | |
lib/test: truncate the last new line at the end of input and output
Given the following input and output,
>>>
input
<<<
output
EOF
The input and output content always have new line at the end.
This may cause unexpected input or output.
If input or output content expecting new line at the end, add two empty
lines at the end of it.
Diffstat (limited to 'lib/ini')
| -rw-r--r-- | lib/ini/testdata/struct/embedded_test.txt | 1 | ||||
| -rw-r--r-- | lib/ini/testdata/struct/map_test.txt | 1 | ||||
| -rw-r--r-- | lib/ini/testdata/struct/slice_of_pointer_test.txt | 1 | ||||
| -rw-r--r-- | lib/ini/testdata/struct/slice_of_primitive_test.txt | 1 | ||||
| -rw-r--r-- | lib/ini/testdata/struct/slice_of_struct_test.txt | 1 | ||||
| -rw-r--r-- | lib/ini/testdata/struct/struct_test.txt | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/lib/ini/testdata/struct/embedded_test.txt b/lib/ini/testdata/struct/embedded_test.txt index 8a5c05a3..10f3c9a4 100644 --- a/lib/ini/testdata/struct/embedded_test.txt +++ b/lib/ini/testdata/struct/embedded_test.txt @@ -21,3 +21,4 @@ z = 2.3 [c] xx = 4 + diff --git a/lib/ini/testdata/struct/map_test.txt b/lib/ini/testdata/struct/map_test.txt index 01be7ef1..9d170d61 100644 --- a/lib/ini/testdata/struct/map_test.txt +++ b/lib/ini/testdata/struct/map_test.txt @@ -14,3 +14,4 @@ a = 1 a = 1 b = 2 c = 3 + diff --git a/lib/ini/testdata/struct/slice_of_pointer_test.txt b/lib/ini/testdata/struct/slice_of_pointer_test.txt index a83802da..5e0c0d26 100644 --- a/lib/ini/testdata/struct/slice_of_pointer_test.txt +++ b/lib/ini/testdata/struct/slice_of_pointer_test.txt @@ -56,3 +56,4 @@ int = 1 [slice "ptr_struct"] string = ptr_struct 1 int = 2 + diff --git a/lib/ini/testdata/struct/slice_of_primitive_test.txt b/lib/ini/testdata/struct/slice_of_primitive_test.txt index baefe86f..c44c9dcf 100644 --- a/lib/ini/testdata/struct/slice_of_primitive_test.txt +++ b/lib/ini/testdata/struct/slice_of_primitive_test.txt @@ -44,3 +44,4 @@ string = string 1 string = string 2 time = 2021-02-28 03:56:01 time = 2021-02-28 03:56:02 + diff --git a/lib/ini/testdata/struct/slice_of_struct_test.txt b/lib/ini/testdata/struct/slice_of_struct_test.txt index 197791bf..47e69595 100644 --- a/lib/ini/testdata/struct/slice_of_struct_test.txt +++ b/lib/ini/testdata/struct/slice_of_struct_test.txt @@ -30,3 +30,4 @@ int = 1 [slice "struct"] string = struct 1 int = 2 + diff --git a/lib/ini/testdata/struct/struct_test.txt b/lib/ini/testdata/struct/struct_test.txt index d0c4cbcf..195a5b5a 100644 --- a/lib/ini/testdata/struct/struct_test.txt +++ b/lib/ini/testdata/struct/struct_test.txt @@ -55,3 +55,4 @@ int = 3 [section "struct"] string = struct int = 1 + |
