strom 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/strom/variable.rb +8 -0
- data/lib/strom/version.rb +1 -1
- data/test/variable_test.rb +8 -0
- 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: 524d248b1b045c4075ae122ad582f31386ce30c1
|
4
|
+
data.tar.gz: 0dc689415b729d709a712b3ed210e9334ab40bfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b805f78884be91b673fca06547611d6dad9164b6dec299329a3a19675550b01e6582ffa60182bb7efc6747ba24c5076f2db03c2aed9e6c59f5d2c7cb70ddb73
|
7
|
+
data.tar.gz: de2fadc418fc72b128f0d933c4d113828b15ba84d6ca98609767eb2193f44717cc29c892fa84bf527e0ffa9aa9372eff60b24c61012389db237c156e9531af3d
|
data/README.md
CHANGED
data/lib/strom/variable.rb
CHANGED
data/lib/strom/version.rb
CHANGED
data/test/variable_test.rb
CHANGED
@@ -12,6 +12,14 @@ describe Variable do
|
|
12
12
|
@variable.value.must_equal 1.0
|
13
13
|
end
|
14
14
|
|
15
|
+
it '#to_s' do
|
16
|
+
@variable.to_s.must_equal '1.0 variables'
|
17
|
+
end
|
18
|
+
|
19
|
+
it '#inspect' do
|
20
|
+
@variable.inspect.must_equal '1.0 variables'
|
21
|
+
end
|
22
|
+
|
15
23
|
it '#and' do
|
16
24
|
0.5.amperes.and(18.ohms).must_equal Volt.new(9.0)
|
17
25
|
18.ohms.and(9.volts).must_equal Ampere.new(0.5)
|