aboutsummaryrefslogtreecommitdiff
path: root/spec/fixtures
diff options
context:
space:
mode:
authorGeorge Roman <george.roman.99@gmail.com>2018-06-13 20:09:07 +0300
committerHisham Muhammad <hisham@gobolinux.org>2018-06-14 14:14:44 -0300
commitc01c8a21a735c3a74270635e5bd843bac71bc624 (patch)
tree64218be890422d910632e0260bf4c48e02991b3e /spec/fixtures
parenta60bd09ffda9c36443cf64c4c1f14d1c09442148 (diff)
downloadluarocks-c01c8a21a735c3a74270635e5bd843bac71bc624.tar.gz
luarocks-c01c8a21a735c3a74270635e5bd843bac71bc624.tar.bz2
luarocks-c01c8a21a735c3a74270635e5bd843bac71bc624.zip
Tests: patch.lua
Diffstat (limited to 'spec/fixtures')
-rw-r--r--spec/fixtures/invalid_patch.patch20
-rw-r--r--spec/fixtures/lao11
-rw-r--r--spec/fixtures/tzu13
-rw-r--r--spec/fixtures/valid_patch.patch19
4 files changed, 63 insertions, 0 deletions
diff --git a/spec/fixtures/invalid_patch.patch b/spec/fixtures/invalid_patch.patch
new file mode 100644
index 00000000..75d05c58
--- /dev/null
+++ b/spec/fixtures/invalid_patch.patch
@@ -0,0 +1,20 @@
1--- lao 2002-02-21 23:30:39.942229878 -0800
2+++ tzu 2002-02-21 23:30:50.442260588 -0800
3@@ -1,7 +1,6 @@
4-The Way that can be told of is not the eternal Way;
5-The name that can be named is not the eternal name.
6 The Nameless is the origin of Heaven and Earth;
7-The Named is the mother of all things.
8+The named is the mother of all things.
9+
10?
11 Therefore let there always be non-being,
12 so we may see their subtlety,
13 And let there always be being,
14@@ -9,3 +8,7 @@
15 The two are the same,
16 But after they are produced,
17 they have different names.
18+They both may be called deep and profound.
19+Deeper and more profound,
20+The door of all subtleties!
diff --git a/spec/fixtures/lao b/spec/fixtures/lao
new file mode 100644
index 00000000..635ef2c4
--- /dev/null
+++ b/spec/fixtures/lao
@@ -0,0 +1,11 @@
1The Way that can be told of is not the eternal Way;
2The name that can be named is not the eternal name.
3The Nameless is the origin of Heaven and Earth;
4The Named is the mother of all things.
5Therefore let there always be non-being,
6 so we may see their subtlety,
7And let there always be being,
8 so we may see their outcome.
9The two are the same,
10But after they are produced,
11 they have different names.
diff --git a/spec/fixtures/tzu b/spec/fixtures/tzu
new file mode 100644
index 00000000..5af88a8f
--- /dev/null
+++ b/spec/fixtures/tzu
@@ -0,0 +1,13 @@
1The Nameless is the origin of Heaven and Earth;
2The named is the mother of all things.
3
4Therefore let there always be non-being,
5 so we may see their subtlety,
6And let there always be being,
7 so we may see their outcome.
8The two are the same,
9But after they are produced,
10 they have different names.
11They both may be called deep and profound.
12Deeper and more profound,
13The door of all subtleties!
diff --git a/spec/fixtures/valid_patch.patch b/spec/fixtures/valid_patch.patch
new file mode 100644
index 00000000..042c7d22
--- /dev/null
+++ b/spec/fixtures/valid_patch.patch
@@ -0,0 +1,19 @@
1--- lao 2002-02-21 23:30:39.942229878 -0800
2+++ tzu 2002-02-21 23:30:50.442260588 -0800
3@@ -1,7 +1,6 @@
4-The Way that can be told of is not the eternal Way;
5-The name that can be named is not the eternal name.
6 The Nameless is the origin of Heaven and Earth;
7-The Named is the mother of all things.
8+The named is the mother of all things.
9+
10 Therefore let there always be non-being,
11 so we may see their subtlety,
12 And let there always be being,
13@@ -9,3 +8,6 @@
14 The two are the same,
15 But after they are produced,
16 they have different names.
17+They both may be called deep and profound.
18+Deeper and more profound,
19+The door of all subtleties!