]> git.pld-linux.org Git - packages/coffee-script.git/blame - coffee-script-fix-importing-test.patch
- up to 1.6.3
[packages/coffee-script.git] / coffee-script-fix-importing-test.patch
CommitLineData
a58228a2
AM
1From 2e408648aad42901d96df01fe8475a18054e32c2 Mon Sep 17 00:00:00 2001
2From: Jeremy Ashkenas <jashkenas@gmail.com>
3Date: Sun, 2 Jun 2013 10:57:18 +0400
4Subject: [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
55diff --git a/test/importing.coffee b/test/importing.coffee
56index 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
79diff --git a/test/importing/.import.coffee b/test/importing/.import.coffee
80new file mode 100644
81index 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}
87diff --git a/test/importing/.import.coffee.md b/test/importing/.import.coffee.md
88new file mode 100644
89index 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}
96diff --git a/test/importing/.import2 b/test/importing/.import2
97new file mode 100644
98index 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;}};
104diff --git a/test/importing/.test.coffee b/test/importing/.test.coffee
105deleted file mode 100644
106index 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}
112diff --git a/test/importing/.test.coffee.md b/test/importing/.test.coffee.md
113deleted file mode 100644
114index 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}
121diff --git a/test/importing/.test2 b/test/importing/.test2
122deleted file mode 100644
123index 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;}};
129diff --git a/test/importing/import.coffee b/test/importing/import.coffee
130new file mode 100644
131index 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}
137diff --git a/test/importing/import.coffee.md b/test/importing/import.coffee.md
138new file mode 100644
139index 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}
146diff --git a/test/importing/import.extension.coffee b/test/importing/import.extension.coffee
147new file mode 100644
148index 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}
154diff --git a/test/importing/import.extension.coffee.md b/test/importing/import.extension.coffee.md
155new file mode 100644
156index 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}
163diff --git a/test/importing/import.extension.js b/test/importing/import.extension.js
164new file mode 100644
165index 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;}};
171diff --git a/test/importing/import.js b/test/importing/import.js
172new file mode 100644
173index 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;}};
179diff --git a/test/importing/import.litcoffee b/test/importing/import.litcoffee
180new file mode 100644
181index 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}
188diff --git a/test/importing/import.unknownextension b/test/importing/import.unknownextension
189new file mode 100644
190index 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;}};
196diff --git a/test/importing/import2 b/test/importing/import2
197new file mode 100644
198index 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;}};
204diff --git a/test/importing/test.coffee.md b/test/importing/test.coffee.md
205deleted file mode 100644
206index 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}
213diff --git a/test/importing/test.extension.coffee b/test/importing/test.extension.coffee
214deleted file mode 100644
215index 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}
221diff --git a/test/importing/test.extension.coffee.md b/test/importing/test.extension.coffee.md
222deleted file mode 100644
223index 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}
230diff --git a/test/importing/test.extension.js b/test/importing/test.extension.js
231deleted file mode 100644
232index 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;}};
238diff --git a/test/importing/test.js b/test/importing/test.js
239deleted file mode 100644
240index 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;}};
246diff --git a/test/importing/test.unknownextension b/test/importing/test.unknownextension
247deleted file mode 100644
248index 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;}};
254diff --git a/test/importing/test2 b/test/importing/test2
255deleted file mode 100644
256index 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--
2631.8.2.1
264
This page took 0.115379 seconds and 4 git commands to generate.