arrow_test 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arrow_test.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e46407282e0d387c0c82746236f4679a9e6949d
|
4
|
+
data.tar.gz: 3318818ca7332a5724609a31f0878567600b8228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1f642351552213b330b9810a4e28ff9ddd9c51335fd9fb0878bdf1a8f7d5d211618134368e49cadb761889c0d543321a1127c73492f67771563a6b7d723ec9f
|
7
|
+
data.tar.gz: 1c742a2c894032ad4c1bcceb527df86011023a37b219b13552bb6482cc675018ccc50026d6c51c12d691b9afc63b53f4d0848e94ba0c36eb7d50425a67cbd3e7
|
data/lib/arrow_test.rb
CHANGED
@@ -13,6 +13,7 @@ def helper_arrow_test(lines, verbose=false)
|
|
13
13
|
thick_arrow_regex = Regexp.new('\ *\#\ *\=\ *\>\ *')
|
14
14
|
lines
|
15
15
|
.select{|line| arrow_regex.match(line) || thick_arrow_regex.match(line)}
|
16
|
+
.map(&:strip)
|
16
17
|
.map {|line| line[0] == '#' ? line[1...line.length] : line}
|
17
18
|
.each do |line|
|
18
19
|
expression = line.split('#').first.strip
|
@@ -41,6 +42,7 @@ end
|
|
41
42
|
# Call this in your code.
|
42
43
|
#
|
43
44
|
# Example:
|
45
|
+
#
|
44
46
|
# require 'arrow_testing'
|
45
47
|
# 1 + 1 # -> 3
|
46
48
|
# arrow_test
|