]> git.pld-linux.org Git - packages/coffee-script.git/blob - coffee-script-fix-importing-test.patch
- up to 1.6.3
[packages/coffee-script.git] / coffee-script-fix-importing-test.patch
1 From 2e408648aad42901d96df01fe8475a18054e32c2 Mon Sep 17 00:00:00 2001
2 From: Jeremy Ashkenas <jashkenas@gmail.com>
3 Date: Sun, 2 Jun 2013 10:57:18 +0400
4 Subject: [PATCH] renaming import test files to avoid risking the disfavor of
5  .gitignore
6
7 ---
8  test/importing.coffee                     | 6 +++---
9  test/importing/.import.coffee             | 2 ++
10  test/importing/.import.coffee.md          | 3 +++
11  test/importing/.import2                   | 2 ++
12  test/importing/.test.coffee               | 2 --
13  test/importing/.test.coffee.md            | 3 ---
14  test/importing/.test2                     | 2 --
15  test/importing/import.coffee              | 2 ++
16  test/importing/import.coffee.md           | 3 +++
17  test/importing/import.extension.coffee    | 2 ++
18  test/importing/import.extension.coffee.md | 3 +++
19  test/importing/import.extension.js        | 2 ++
20  test/importing/import.js                  | 2 ++
21  test/importing/import.litcoffee           | 3 +++
22  test/importing/import.unknownextension    | 2 ++
23  test/importing/import2                    | 2 ++
24  test/importing/test.coffee.md             | 3 ---
25  test/importing/test.extension.coffee      | 2 --
26  test/importing/test.extension.coffee.md   | 3 ---
27  test/importing/test.extension.js          | 2 --
28  test/importing/test.js                    | 2 --
29  test/importing/test.unknownextension      | 2 --
30  test/importing/test2                      | 2 --
31  23 files changed, 31 insertions(+), 26 deletions(-)
32  create mode 100644 test/importing/.import.coffee
33  create mode 100644 test/importing/.import.coffee.md
34  create mode 100644 test/importing/.import2
35  delete mode 100644 test/importing/.test.coffee
36  delete mode 100644 test/importing/.test.coffee.md
37  delete mode 100644 test/importing/.test2
38  create mode 100644 test/importing/import.coffee
39  create mode 100644 test/importing/import.coffee.md
40  create mode 100644 test/importing/import.extension.coffee
41  create mode 100644 test/importing/import.extension.coffee.md
42  create mode 100644 test/importing/import.extension.js
43  create mode 100644 test/importing/import.js
44  create mode 100644 test/importing/import.litcoffee
45  create mode 100644 test/importing/import.unknownextension
46  create mode 100644 test/importing/import2
47  delete mode 100644 test/importing/test.coffee.md
48  delete mode 100644 test/importing/test.extension.coffee
49  delete mode 100644 test/importing/test.extension.coffee.md
50  delete mode 100644 test/importing/test.extension.js
51  delete mode 100644 test/importing/test.js
52  delete mode 100644 test/importing/test.unknownextension
53  delete mode 100644 test/importing/test2
54
55 diff --git a/test/importing.coffee b/test/importing.coffee
56 index 91d56d4..96fff02 100644
57 --- a/test/importing.coffee
58 +++ b/test/importing.coffee
59 @@ -19,16 +19,16 @@ unless window? or testingBrowser?
60  
61    test "javascript modules can be imported", ->
62      magicVal = 1
63 -    for module in 'test.js test2 .test2 test.extension.js test.unknownextension .coffee .coffee.md'.split ' '
64 +    for module in 'import.js import2 .import2 import.extension.js import.unknownextension .coffee .coffee.md'.split ' '
65        ok require("./importing/#{module}").value?() is magicVal, module
66  
67    test "coffeescript modules can be imported", ->
68      magicVal = 2
69 -    for module in '.test.coffee test.coffee test.extension.coffee'.split ' '
70 +    for module in '.import.coffee import.coffee import.extension.coffee'.split ' '
71        ok require("./importing/#{module}").value?() is magicVal, module
72  
73    test "literate coffeescript modules can be imported", ->
74      magicVal = 3
75      # Leading space intentional to check for index.coffee.md
76 -    for module in ' .test.coffee.md test.coffee.md test.litcoffee test.extension.coffee.md'.split ' '
77 +    for module in ' .import.coffee.md import.coffee.md import.litcoffee import.extension.coffee.md'.split ' '
78        ok require("./importing/#{module}").value?() is magicVal, module
79 diff --git a/test/importing/.import.coffee b/test/importing/.import.coffee
80 new file mode 100644
81 index 0000000..ff8ad83
82 --- /dev/null
83 +++ b/test/importing/.import.coffee
84 @@ -0,0 +1,2 @@
85 +# Required by ../importing.coffee
86 +module.exports = {value: -> 2}
87 diff --git a/test/importing/.import.coffee.md b/test/importing/.import.coffee.md
88 new file mode 100644
89 index 0000000..99459eb
90 --- /dev/null
91 +++ b/test/importing/.import.coffee.md
92 @@ -0,0 +1,3 @@
93 +Required by ../importing.coffee
94 +
95 +    module.exports = {value: -> 3}
96 diff --git a/test/importing/.import2 b/test/importing/.import2
97 new file mode 100644
98 index 0000000..34f70d6
99 --- /dev/null
100 +++ b/test/importing/.import2
101 @@ -0,0 +1,2 @@
102 +// Required by ../importing.coffee
103 +module.exports = {value: function(){return 1;}};
104 diff --git a/test/importing/.test.coffee b/test/importing/.test.coffee
105 deleted file mode 100644
106 index ff8ad83..0000000
107 --- a/test/importing/.test.coffee
108 +++ /dev/null
109 @@ -1,2 +0,0 @@
110 -# Required by ../importing.coffee
111 -module.exports = {value: -> 2}
112 diff --git a/test/importing/.test.coffee.md b/test/importing/.test.coffee.md
113 deleted file mode 100644
114 index 99459eb..0000000
115 --- a/test/importing/.test.coffee.md
116 +++ /dev/null
117 @@ -1,3 +0,0 @@
118 -Required by ../importing.coffee
119 -
120 -    module.exports = {value: -> 3}
121 diff --git a/test/importing/.test2 b/test/importing/.test2
122 deleted file mode 100644
123 index 34f70d6..0000000
124 --- a/test/importing/.test2
125 +++ /dev/null
126 @@ -1,2 +0,0 @@
127 -// Required by ../importing.coffee
128 -module.exports = {value: function(){return 1;}};
129 diff --git a/test/importing/import.coffee b/test/importing/import.coffee
130 new file mode 100644
131 index 0000000..ff8ad83
132 --- /dev/null
133 +++ b/test/importing/import.coffee
134 @@ -0,0 +1,2 @@
135 +# Required by ../importing.coffee
136 +module.exports = {value: -> 2}
137 diff --git a/test/importing/import.coffee.md b/test/importing/import.coffee.md
138 new file mode 100644
139 index 0000000..99459eb
140 --- /dev/null
141 +++ b/test/importing/import.coffee.md
142 @@ -0,0 +1,3 @@
143 +Required by ../importing.coffee
144 +
145 +    module.exports = {value: -> 3}
146 diff --git a/test/importing/import.extension.coffee b/test/importing/import.extension.coffee
147 new file mode 100644
148 index 0000000..ff8ad83
149 --- /dev/null
150 +++ b/test/importing/import.extension.coffee
151 @@ -0,0 +1,2 @@
152 +# Required by ../importing.coffee
153 +module.exports = {value: -> 2}
154 diff --git a/test/importing/import.extension.coffee.md b/test/importing/import.extension.coffee.md
155 new file mode 100644
156 index 0000000..99459eb
157 --- /dev/null
158 +++ b/test/importing/import.extension.coffee.md
159 @@ -0,0 +1,3 @@
160 +Required by ../importing.coffee
161 +
162 +    module.exports = {value: -> 3}
163 diff --git a/test/importing/import.extension.js b/test/importing/import.extension.js
164 new file mode 100644
165 index 0000000..34f70d6
166 --- /dev/null
167 +++ b/test/importing/import.extension.js
168 @@ -0,0 +1,2 @@
169 +// Required by ../importing.coffee
170 +module.exports = {value: function(){return 1;}};
171 diff --git a/test/importing/import.js b/test/importing/import.js
172 new file mode 100644
173 index 0000000..34f70d6
174 --- /dev/null
175 +++ b/test/importing/import.js
176 @@ -0,0 +1,2 @@
177 +// Required by ../importing.coffee
178 +module.exports = {value: function(){return 1;}};
179 diff --git a/test/importing/import.litcoffee b/test/importing/import.litcoffee
180 new file mode 100644
181 index 0000000..99459eb
182 --- /dev/null
183 +++ b/test/importing/import.litcoffee
184 @@ -0,0 +1,3 @@
185 +Required by ../importing.coffee
186 +
187 +    module.exports = {value: -> 3}
188 diff --git a/test/importing/import.unknownextension b/test/importing/import.unknownextension
189 new file mode 100644
190 index 0000000..34f70d6
191 --- /dev/null
192 +++ b/test/importing/import.unknownextension
193 @@ -0,0 +1,2 @@
194 +// Required by ../importing.coffee
195 +module.exports = {value: function(){return 1;}};
196 diff --git a/test/importing/import2 b/test/importing/import2
197 new file mode 100644
198 index 0000000..34f70d6
199 --- /dev/null
200 +++ b/test/importing/import2
201 @@ -0,0 +1,2 @@
202 +// Required by ../importing.coffee
203 +module.exports = {value: function(){return 1;}};
204 diff --git a/test/importing/test.coffee.md b/test/importing/test.coffee.md
205 deleted file mode 100644
206 index 99459eb..0000000
207 --- a/test/importing/test.coffee.md
208 +++ /dev/null
209 @@ -1,3 +0,0 @@
210 -Required by ../importing.coffee
211 -
212 -    module.exports = {value: -> 3}
213 diff --git a/test/importing/test.extension.coffee b/test/importing/test.extension.coffee
214 deleted file mode 100644
215 index ff8ad83..0000000
216 --- a/test/importing/test.extension.coffee
217 +++ /dev/null
218 @@ -1,2 +0,0 @@
219 -# Required by ../importing.coffee
220 -module.exports = {value: -> 2}
221 diff --git a/test/importing/test.extension.coffee.md b/test/importing/test.extension.coffee.md
222 deleted file mode 100644
223 index 99459eb..0000000
224 --- a/test/importing/test.extension.coffee.md
225 +++ /dev/null
226 @@ -1,3 +0,0 @@
227 -Required by ../importing.coffee
228 -
229 -    module.exports = {value: -> 3}
230 diff --git a/test/importing/test.extension.js b/test/importing/test.extension.js
231 deleted file mode 100644
232 index 34f70d6..0000000
233 --- a/test/importing/test.extension.js
234 +++ /dev/null
235 @@ -1,2 +0,0 @@
236 -// Required by ../importing.coffee
237 -module.exports = {value: function(){return 1;}};
238 diff --git a/test/importing/test.js b/test/importing/test.js
239 deleted file mode 100644
240 index 34f70d6..0000000
241 --- a/test/importing/test.js
242 +++ /dev/null
243 @@ -1,2 +0,0 @@
244 -// Required by ../importing.coffee
245 -module.exports = {value: function(){return 1;}};
246 diff --git a/test/importing/test.unknownextension b/test/importing/test.unknownextension
247 deleted file mode 100644
248 index 34f70d6..0000000
249 --- a/test/importing/test.unknownextension
250 +++ /dev/null
251 @@ -1,2 +0,0 @@
252 -// Required by ../importing.coffee
253 -module.exports = {value: function(){return 1;}};
254 diff --git a/test/importing/test2 b/test/importing/test2
255 deleted file mode 100644
256 index 34f70d6..0000000
257 --- a/test/importing/test2
258 +++ /dev/null
259 @@ -1,2 +0,0 @@
260 -// Required by ../importing.coffee
261 -module.exports = {value: function(){return 1;}};
262 -- 
263 1.8.2.1
264
This page took 0.073275 seconds and 3 git commands to generate.