arrow_test 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/arrow_test.rb +14 -1
- 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: d43bec313f86f409a076e4c14a137f11e79a7bfb
|
4
|
+
data.tar.gz: 7863b45b29507d26e95bba993641c6abad6a0794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 895b16a03d1cd2877dbaa132e1fb434932c638cd8d74dc66aed45a87f49a71508dfcad062ea026853e8b1893ee6466fc6713ef4c30dbec04fcd4f40498233560
|
7
|
+
data.tar.gz: 5bb16e59380a7bd045e84da550fe07ae4c16eb2af0472a8cc689e89deff36578d1f6df9f850edc8dc203a7d17829901675a87667a438c8a9ad2c776f9e9b4599
|
data/lib/arrow_test.rb
CHANGED
@@ -38,7 +38,7 @@ END
|
|
38
38
|
messages
|
39
39
|
end
|
40
40
|
|
41
|
-
# Performs Input/Output wrapping
|
41
|
+
# Performs Input/Output wrapping <code>helper_arrow_test</code>
|
42
42
|
# Call this in your code.
|
43
43
|
#
|
44
44
|
# Example:
|
@@ -47,6 +47,19 @@ end
|
|
47
47
|
# 1 + 1 # -> 3
|
48
48
|
# arrow_test
|
49
49
|
#
|
50
|
+
# You may also test functions, in that case
|
51
|
+
# remember adding a <code>#</code> at the start
|
52
|
+
# of the line:
|
53
|
+
#
|
54
|
+
# require 'arrow_testing'
|
55
|
+
#
|
56
|
+
# # digits(9001) #=> [9, 0, 0, 1]
|
57
|
+
# def digits(n)
|
58
|
+
# n.to_s.chars.map(&:to_i)
|
59
|
+
# end
|
60
|
+
#
|
61
|
+
# arrow_test
|
62
|
+
#
|
50
63
|
# Arguments:
|
51
64
|
# filename: (String) The filename to be tested. Default is $0: your current file.
|
52
65
|
# verbose: (Boolean) If true outputs also correct tests.
|