borel 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/borel.rb +2 -0
- data/lib/borel/interval_multiple.rb +2 -2
- data/lib/borel/version.rb +1 -1
- data/spec/interval_multiple_spec.rb +15 -0
- metadata +2 -1
data/lib/borel.rb
CHANGED
data/lib/borel/version.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'borel/interval'
|
2
|
+
|
3
|
+
describe Interval::Multiple do
|
4
|
+
context "#inf" do
|
5
|
+
specify "[[-1,2],[3]] -> -1" do
|
6
|
+
Interval[[-1,2],[3]].inf.should be -1
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
context "#sup" do
|
11
|
+
specify "[[-1,2],[3]] -> 3" do
|
12
|
+
Interval[[-1,2],[3]].sup.should be 3
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: borel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- lib/borel/range.rb
|
45
45
|
- lib/borel/version.rb
|
46
46
|
- spec/array_spec.rb
|
47
|
+
- spec/interval_multiple_spec.rb
|
47
48
|
- spec/interval_spec.rb
|
48
49
|
- spec/math_extensions/interval_arithmetic_spec.rb
|
49
50
|
- spec/math_extensions/randomizable_spec.rb
|