rewrite 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rewrite/prelude/please.rb +1 -1
- data/lib/rewrite/version.rb +1 -1
- data/test/test_rewriter_helpers.rb +11 -0
- data/website/index.html +1 -1
- metadata +1 -1
data/lib/rewrite/version.rb
CHANGED
@@ -2,6 +2,17 @@ require File.dirname(__FILE__) + '/test_helper.rb'
|
|
2
2
|
|
3
3
|
class TestRewriteHelpers < Test::Unit::TestCase
|
4
4
|
|
5
|
+
def test_splat_variables
|
6
|
+
|
7
|
+
assert_equal(
|
8
|
+
lambda { |*a| a[0].call }.to_sexp.to_a,
|
9
|
+
Rewrite::RewriteVariablesAsThunkCalls.new(:a).process(
|
10
|
+
lambda { |*a| a[0] }.to_sexp
|
11
|
+
).to_a
|
12
|
+
)
|
13
|
+
|
14
|
+
end
|
15
|
+
|
5
16
|
def test_simple_rewrite
|
6
17
|
|
7
18
|
assert_equal(
|
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>rewrite</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/rewrite"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/rewrite" class="numbers">0.0.
|
36
|
+
<a href="http://rubyforge.org/projects/rewrite" class="numbers">0.0.5</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘rewrite’</h1>
|
39
39
|
|