arithmetic 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/lib/arithmetic.rb +3 -0
- data/lib/arithmetic/parser.rb +1 -1
- data/lib/arithmetic/version.rb +1 -1
- data/spec/arithmetic_spec.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmM2NTUzYjc0MGY1NTZiNDIxYTJkYTYxOThhNjU1YmU2OWIxZmE1ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzU1ZWJlOTViNzIxZGY2MzA1YjczNTdjM2NmMWRkYTY5ZTQ3OGM3ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjgyODFmNmE1OWVhNGY2OGU4YTQ5NzNmMDJkYjk0YjAyNGNjZjE2ODZhMzNl
|
10
|
+
OTMzMGEyZDI2MDkzMjE2MDJiMmIzOGQwYTAxYzQwYTgwNzAyMDRkZDdmNGIx
|
11
|
+
ZTM5ZGE0OGVjZGVkYTk1MGI0YmE1NTcxNzU4NmQ4Y2RlNmJmNGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODYyODFiZTFkOGRkMGZiNGUwZDhkYzE4MDVkMzMyMjczM2IwYzM4NTJjZjgx
|
14
|
+
ODIxNDJkNjBkYzYzYTAxNDlkZDA2NzIxZDgwZGUxMTc5MWJjMjAzZDY3ZWRl
|
15
|
+
YzU5Y2M5NjRkNDJkZWNlM2FmODg5NGQwOWE4OTg3MTRhYWIxMGI=
|
data/Gemfile.lock
CHANGED
data/lib/arithmetic.rb
CHANGED
data/lib/arithmetic/parser.rb
CHANGED
data/lib/arithmetic/version.rb
CHANGED
data/spec/arithmetic_spec.rb
CHANGED
@@ -70,6 +70,12 @@ describe Arithmetic do
|
|
70
70
|
end
|
71
71
|
|
72
72
|
context "invalid expressions" do
|
73
|
+
it "handles blank expressions" do
|
74
|
+
exp_should_error nil
|
75
|
+
exp_should_error ""
|
76
|
+
exp_should_error " "
|
77
|
+
end
|
78
|
+
|
73
79
|
it "handles missing operand" do
|
74
80
|
exp_should_error "1 *"
|
75
81
|
exp_should_error "1 * + 1"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arithmetic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Kirby
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-06-
|
12
|
+
date: 2015-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|