diff options
author | George Roman <george.roman.99@gmail.com> | 2018-06-13 20:09:07 +0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-14 14:14:44 -0300 |
commit | c01c8a21a735c3a74270635e5bd843bac71bc624 (patch) | |
tree | 64218be890422d910632e0260bf4c48e02991b3e /spec/fixtures | |
parent | a60bd09ffda9c36443cf64c4c1f14d1c09442148 (diff) | |
download | luarocks-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.patch | 20 | ||||
-rw-r--r-- | spec/fixtures/lao | 11 | ||||
-rw-r--r-- | spec/fixtures/tzu | 13 | ||||
-rw-r--r-- | spec/fixtures/valid_patch.patch | 19 |
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 @@ | |||
1 | The Way that can be told of is not the eternal Way; | ||
2 | The name that can be named is not the eternal name. | ||
3 | The Nameless is the origin of Heaven and Earth; | ||
4 | The Named is the mother of all things. | ||
5 | Therefore let there always be non-being, | ||
6 | so we may see their subtlety, | ||
7 | And let there always be being, | ||
8 | so we may see their outcome. | ||
9 | The two are the same, | ||
10 | But 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 @@ | |||
1 | The Nameless is the origin of Heaven and Earth; | ||
2 | The named is the mother of all things. | ||
3 | |||
4 | Therefore let there always be non-being, | ||
5 | so we may see their subtlety, | ||
6 | And let there always be being, | ||
7 | so we may see their outcome. | ||
8 | The two are the same, | ||
9 | But after they are produced, | ||
10 | they have different names. | ||
11 | They both may be called deep and profound. | ||
12 | Deeper and more profound, | ||
13 | The 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! | ||