closest-fibonacci-gem 1.0.4 → 1.1.0
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.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/closest-fibonacci-gem.gemspec +1 -1
- data/lib/closest-fibonacci-gem.rb +1 -1
- data/test/test_closest-fibonacci-gem.rb +3 -3
- metadata +3 -3
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
@@ -3,15 +3,15 @@ require 'helper'
|
|
3
3
|
class TestClosestFibonacciGem < Test::Unit::TestCase
|
4
4
|
context "a fibonacci" do
|
5
5
|
should "return 144 for 156 as input" do
|
6
|
-
assert_equal 144, 156.
|
6
|
+
assert_equal 144, 156.closest_fibonacci
|
7
7
|
end
|
8
8
|
|
9
9
|
should "return 89 for 99 as input" do
|
10
|
-
assert_equal 89, 99.
|
10
|
+
assert_equal 89, 99.closest_fibonacci
|
11
11
|
end
|
12
12
|
should "not a positive integer" do
|
13
13
|
num = -10
|
14
|
-
assert_equal "Provide a positive integer or 0", -10.
|
14
|
+
assert_equal "Provide a positive integer or 0", -10.closest_fibonacci
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closest-fibonacci-gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.4
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ramprasad Ramachandran
|