fibonacci_rng 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/irbt.rb +0 -2
- data/lib/fibonacci_rng/version.rb +1 -1
- data/tests/fibinacci_rng_tests.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d021360d01262bc88f42bb0409b33e9c04c33144
|
4
|
+
data.tar.gz: a5eb5486ea555e67393ff9fd3fcfecb85828590f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e6187821b05139f645793d7bbd81320e6dbf2c294bd51205ee708d7aaaac476fbbdc0ff5fb31155a72638f500fb5fe5c4ab247472cdcab8002ec785a12ea66b
|
7
|
+
data.tar.gz: 195b0f63944978fcea173b7c08bd6a7fc26c21a8f70a207d70cbab60c472ddb91ab8f71178233cdaa339cee17cb6e20b7d8b91570d840fb1b2b3d2746d867e39
|
data/irbt.rb
CHANGED
@@ -167,10 +167,13 @@ class FibonacciRngTester < Minitest::Test
|
|
167
167
|
|
168
168
|
def test_building_strings
|
169
169
|
rng = FibonacciRng.new(0)
|
170
|
-
|
171
170
|
assert_equal("c}l'(q@g\\z", rng.string(10))
|
172
171
|
assert_equal('2727573312', rng.string(10, '0123456789'))
|
173
172
|
assert_equal('khto lk si', rng.string(10, 'Always look on the bright side of life.'))
|
173
|
+
|
174
|
+
rng = FibonacciRng.new("%s*08^_Tg{NnirtZ-94)q9z2l+~bB5")
|
175
|
+
assert_equal(",-+Idi6~ ~", rng.string(10))
|
176
|
+
assert_equal('5901964804', rng.string(10, '0123456789'))
|
174
177
|
end
|
175
178
|
|
176
179
|
def test_for_data_stability
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fibonacci_rng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Camilleri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest_visible
|