phys-units 0.9.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +18 -0
- data/Gemfile +3 -0
- data/README.md +12 -2
- data/Rakefile +7 -0
- data/lib/phys/units/load_units.rb +1205 -179
- data/lib/phys/units/parse.rb +36 -31
- data/lib/phys/units/parse.y +19 -14
- data/lib/phys/units/version.rb +1 -1
- data/misc/mkunitspec.rb +14 -13
- data/spec/all_units_spec.rb +802 -125
- data/spec/helper.rb +0 -1
- data/spec/jp_units_spec.rb +0 -1
- data/spec/quantity_spec.rb +5 -7
- data/spec/unit_spec.rb +8 -9
- data/spec/utils_spec.rb +0 -1
- metadata +4 -3
data/lib/phys/units/parse.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#
|
2
2
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.4.
|
3
|
+
# This file is automatically generated by Racc 1.4.14
|
4
4
|
# from Racc grammer file "".
|
5
5
|
#
|
6
6
|
|
@@ -53,25 +53,30 @@ module_eval(<<'...end parse.y/module_eval...', 'parse.y', 63)
|
|
53
53
|
@q.push [:DIV, $&]
|
54
54
|
when /\Aper\b/o
|
55
55
|
@q.push [:DIV, $&]
|
56
|
-
|
57
|
-
a = $&
|
58
|
-
x = $1
|
59
|
-
n = $3
|
60
|
-
if n && n.to_i >= 2
|
61
|
-
@q.push [:WORD, x]
|
62
|
-
@q.push [:POW, '']
|
63
|
-
@q.push [:NUMBER, n.to_i]
|
64
|
-
else
|
65
|
-
@q.push [:WORD, a]
|
66
|
-
end
|
67
|
-
when /\A[%'"]'?/o
|
56
|
+
when /\A[%'"$]'?/o
|
68
57
|
@q.push [:WORD, $&]
|
69
58
|
when /\A\^|\A\*\*/o
|
70
59
|
@q.push [:POW, $&]
|
71
|
-
when /\A
|
60
|
+
when /\A[#{c}-]/o
|
72
61
|
@q.push [$&,$&]
|
62
|
+
when /\AUS\$/o
|
63
|
+
@q.push [:WORD, $&]
|
64
|
+
when /\A\p{Word}+/o
|
65
|
+
a = $&
|
66
|
+
str = $'
|
67
|
+
case a
|
68
|
+
when /\A(.*[^\d])([2-9])$/
|
69
|
+
@q.push [:WORD, $1]
|
70
|
+
@q.push [:POW, '']
|
71
|
+
@q.push [:NUMBER, $2.to_i]
|
72
|
+
else
|
73
|
+
@q.push [:WORD, a]
|
74
|
+
end
|
75
|
+
next
|
76
|
+
else
|
77
|
+
raise Racc::ParseError,"fail to tokenize: #{str.inspect}"
|
73
78
|
end
|
74
|
-
str = $'
|
79
|
+
str = $'
|
75
80
|
end
|
76
81
|
@q.push [false, '$end']
|
77
82
|
|
@@ -86,33 +91,33 @@ module_eval(<<'...end parse.y/module_eval...', 'parse.y', 63)
|
|
86
91
|
##### State transition tables begin ###
|
87
92
|
|
88
93
|
racc_action_table = [
|
89
|
-
8, 10, 6, 11, 12, 15, 3, 16,
|
90
|
-
8, 10, 6, 11, 8, 10, 6, 11, 15,
|
91
|
-
16,
|
92
|
-
6, 11,
|
94
|
+
8, 10, 6, 11, 12, 15, 3, 16, 21, 5,
|
95
|
+
8, 10, 6, 11, 8, 10, 6, 11, 15, 5,
|
96
|
+
16, 8, 24, 5, 8, 10, 6, 11, 8, 10,
|
97
|
+
6, 11, 6, 5, 15, 19, 19, 5, 8, 10,
|
93
98
|
6, 11, 8, 10, 6, 11, nil, 5, 15, nil,
|
94
|
-
16,
|
99
|
+
16, 30, 13, 14, 32, 15, nil, 16, nil, 13,
|
95
100
|
14, 19, 8, 10, 6, 11, 19, 8, 10, 6,
|
96
101
|
11, 19, 8, 10, 6, 11, 19, 8, 10, 6,
|
97
102
|
11, 8, 10, 6, 11, 8, 10, 6, 11, 8,
|
98
103
|
10, 6, 11 ]
|
99
104
|
|
100
105
|
racc_action_check = [
|
101
|
-
0, 0, 0, 0, 1,
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
22,
|
107
|
-
2,
|
108
|
-
18,
|
106
|
+
0, 0, 0, 0, 1, 25, 0, 25, 7, 0,
|
107
|
+
8, 8, 8, 8, 13, 13, 13, 13, 26, 8,
|
108
|
+
26, 11, 12, 13, 14, 14, 14, 14, 15, 15,
|
109
|
+
15, 15, 21, 14, 28, 29, 33, 15, 16, 16,
|
110
|
+
16, 16, 19, 19, 19, 19, nil, 16, 22, nil,
|
111
|
+
22, 19, 22, 22, 22, 2, nil, 2, nil, 2,
|
112
|
+
2, 4, 4, 4, 4, 4, 17, 17, 17, 17,
|
113
|
+
17, 18, 18, 18, 18, 18, 20, 20, 20, 20,
|
109
114
|
20, 3, 3, 3, 3, 5, 5, 5, 5, 30,
|
110
115
|
30, 30, 30 ]
|
111
116
|
|
112
117
|
racc_action_pointer = [
|
113
|
-
-4, 4, 47, 77,
|
114
|
-
nil,
|
115
|
-
73,
|
118
|
+
-4, 4, 47, 77, 58, 81, nil, 6, 6, nil,
|
119
|
+
nil, 17, 22, 10, 20, 24, 34, 63, 68, 38,
|
120
|
+
73, 26, 40, nil, nil, -3, 10, nil, 26, 32,
|
116
121
|
85, nil, nil, 33 ]
|
117
122
|
|
118
123
|
racc_action_default = [
|
data/lib/phys/units/parse.y
CHANGED
@@ -96,25 +96,30 @@ class Unit
|
|
96
96
|
@q.push [:DIV, $&]
|
97
97
|
when /\Aper\b/o
|
98
98
|
@q.push [:DIV, $&]
|
99
|
-
|
100
|
-
a = $&
|
101
|
-
x = $1
|
102
|
-
n = $3
|
103
|
-
if n && n.to_i >= 2
|
104
|
-
@q.push [:WORD, x]
|
105
|
-
@q.push [:POW, '']
|
106
|
-
@q.push [:NUMBER, n.to_i]
|
107
|
-
else
|
108
|
-
@q.push [:WORD, a]
|
109
|
-
end
|
110
|
-
when /\A[%'"]'?/o
|
99
|
+
when /\A[%'"$]'?/o
|
111
100
|
@q.push [:WORD, $&]
|
112
101
|
when /\A\^|\A\*\*/o
|
113
102
|
@q.push [:POW, $&]
|
114
|
-
when /\A
|
103
|
+
when /\A[#{c}-]/o
|
115
104
|
@q.push [$&,$&]
|
105
|
+
when /\AUS\$/o
|
106
|
+
@q.push [:WORD, $&]
|
107
|
+
when /\A\p{Word}+/o
|
108
|
+
a = $&
|
109
|
+
str = $'
|
110
|
+
case a
|
111
|
+
when /\A(.*[^\d])([2-9])$/
|
112
|
+
@q.push [:WORD, $1]
|
113
|
+
@q.push [:POW, '']
|
114
|
+
@q.push [:NUMBER, $2.to_i]
|
115
|
+
else
|
116
|
+
@q.push [:WORD, a]
|
117
|
+
end
|
118
|
+
next
|
119
|
+
else
|
120
|
+
raise Racc::ParseError,"fail to tokenize: #{str.inspect}"
|
116
121
|
end
|
117
|
-
str = $'
|
122
|
+
str = $'
|
118
123
|
end
|
119
124
|
@q.push [false, '$end']
|
120
125
|
|
data/lib/phys/units/version.rb
CHANGED
data/misc/mkunitspec.rb
CHANGED
@@ -17,41 +17,42 @@ EOL
|
|
17
17
|
|
18
18
|
keys = Phys::Unit::LIST.keys
|
19
19
|
keys.each do |k,u|
|
20
|
-
puts k if $debug
|
20
|
+
$stderr.puts k if $debug
|
21
21
|
u = Phys::Unit::LIST[k]
|
22
|
+
$stderr.puts u if $debug
|
22
23
|
f = u.conversion_factor
|
23
24
|
s = u.base_unit.string_form
|
24
25
|
#s = '1' if s==''
|
25
|
-
puts "#{k}, #{u.name}, #{u.string_form}, #{u.factor} base: #{f}, #{s}" if $debug
|
26
|
+
$stderr.puts "#{k}, #{u.name}, #{u.string_form}, #{u.factor} base: #{f}, #{s}" if $debug
|
26
27
|
n = u.name
|
27
28
|
if /'/ =~ n
|
28
29
|
c = "units "#{n}" '#{s}'"
|
29
|
-
puts c if $debug
|
30
|
+
$stderr.puts c if $debug
|
30
31
|
next
|
31
32
|
else
|
32
33
|
c = "units '#{n}' '#{s}'"
|
33
34
|
end
|
34
|
-
puts c if $debug
|
35
|
+
$stderr.puts c if $debug
|
35
36
|
x = `#{c}`
|
36
|
-
puts x if $debug
|
37
|
+
$stderr.puts x if $debug
|
37
38
|
|
38
39
|
if /\* ([\d.e+-]+)\s+\/ ([\d.e+-]+)/m =~ x
|
39
40
|
factor = $1
|
40
41
|
s2 = (s=='') ? "" : ",#{s.inspect}"
|
41
42
|
puts <<EOL
|
42
43
|
describe Q[1,#{n.inspect}] do
|
43
|
-
it {
|
44
|
+
it {is_expected.to be_a_quantity_close_to Q[#{factor}#{s2}] }
|
44
45
|
end
|
45
46
|
EOL
|
46
47
|
factor = factor.to_f
|
47
|
-
puts "factor = #{factor} <=> f=#{f} => #{factor.to_f<=>f}" if $debug
|
48
|
+
$stderr.puts "factor = #{factor} <=> f=#{f} => #{factor.to_f<=>f}" if $debug
|
48
49
|
if !close_values(factor, f)
|
49
|
-
puts "#{k}, #{u.name}, #{u.string_form}, #{u.factor} base: #{f}, #{s}"
|
50
|
-
puts c
|
51
|
-
puts x
|
52
|
-
puts "factor = #{factor} <=> f=#{f} => #{factor<=>f}"
|
53
|
-
puts "diff = #{(factor-f).abs/(factor.abs+f.abs)}"
|
54
|
-
puts "--"
|
50
|
+
$stderr.puts "#{k}, #{u.name}, #{u.string_form}, #{u.factor} base: #{f}, #{s}"
|
51
|
+
$stderr.puts c
|
52
|
+
$stderr.puts x
|
53
|
+
$stderr.puts "factor = #{factor} <=> f=#{f} => #{factor<=>f}"
|
54
|
+
$stderr.puts "diff = #{(factor-f).abs/(factor.abs+f.abs)}"
|
55
|
+
$stderr.puts "--"
|
55
56
|
end
|
56
57
|
end
|
57
58
|
end
|
data/spec/all_units_spec.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
-
$LOAD_PATH.unshift File.dirname(__FILE__)
|
3
2
|
require "helper"
|
4
3
|
|
5
4
|
describe "Unit Conversion" do
|
@@ -168,6 +167,36 @@ describe "Unit Conversion" do
|
|
168
167
|
describe Q[1,"million"] do
|
169
168
|
it {is_expected.to be_a_quantity_close_to Q[1000000] }
|
170
169
|
end
|
170
|
+
describe Q[1,"twoscore"] do
|
171
|
+
it {is_expected.to be_a_quantity_close_to Q[40] }
|
172
|
+
end
|
173
|
+
describe Q[1,"threescore"] do
|
174
|
+
it {is_expected.to be_a_quantity_close_to Q[60] }
|
175
|
+
end
|
176
|
+
describe Q[1,"fourscore"] do
|
177
|
+
it {is_expected.to be_a_quantity_close_to Q[80] }
|
178
|
+
end
|
179
|
+
describe Q[1,"fivescore"] do
|
180
|
+
it {is_expected.to be_a_quantity_close_to Q[100] }
|
181
|
+
end
|
182
|
+
describe Q[1,"sixscore"] do
|
183
|
+
it {is_expected.to be_a_quantity_close_to Q[120] }
|
184
|
+
end
|
185
|
+
describe Q[1,"sevenscore"] do
|
186
|
+
it {is_expected.to be_a_quantity_close_to Q[140] }
|
187
|
+
end
|
188
|
+
describe Q[1,"eightscore"] do
|
189
|
+
it {is_expected.to be_a_quantity_close_to Q[160] }
|
190
|
+
end
|
191
|
+
describe Q[1,"ninescore"] do
|
192
|
+
it {is_expected.to be_a_quantity_close_to Q[180] }
|
193
|
+
end
|
194
|
+
describe Q[1,"tenscore"] do
|
195
|
+
it {is_expected.to be_a_quantity_close_to Q[200] }
|
196
|
+
end
|
197
|
+
describe Q[1,"twelvescore"] do
|
198
|
+
it {is_expected.to be_a_quantity_close_to Q[240] }
|
199
|
+
end
|
171
200
|
describe Q[1,"shortbillion"] do
|
172
201
|
it {is_expected.to be_a_quantity_close_to Q[1e+09] }
|
173
202
|
end
|
@@ -420,6 +449,27 @@ describe "Unit Conversion" do
|
|
420
449
|
describe Q[1,"vigintillion"] do
|
421
450
|
it {is_expected.to be_a_quantity_close_to Q[1e+63] }
|
422
451
|
end
|
452
|
+
describe Q[1,"lakh"] do
|
453
|
+
it {is_expected.to be_a_quantity_close_to Q[100000] }
|
454
|
+
end
|
455
|
+
describe Q[1,"crore"] do
|
456
|
+
it {is_expected.to be_a_quantity_close_to Q[10000000] }
|
457
|
+
end
|
458
|
+
describe Q[1,"arab"] do
|
459
|
+
it {is_expected.to be_a_quantity_close_to Q[1e+09] }
|
460
|
+
end
|
461
|
+
describe Q[1,"kharab"] do
|
462
|
+
it {is_expected.to be_a_quantity_close_to Q[1e+11] }
|
463
|
+
end
|
464
|
+
describe Q[1,"neel"] do
|
465
|
+
it {is_expected.to be_a_quantity_close_to Q[1e+13] }
|
466
|
+
end
|
467
|
+
describe Q[1,"padm"] do
|
468
|
+
it {is_expected.to be_a_quantity_close_to Q[1e+15] }
|
469
|
+
end
|
470
|
+
describe Q[1,"shankh"] do
|
471
|
+
it {is_expected.to be_a_quantity_close_to Q[1e+17] }
|
472
|
+
end
|
423
473
|
describe Q[1,"newton"] do
|
424
474
|
it {is_expected.to be_a_quantity_close_to Q[1,"kg m s^-2"] }
|
425
475
|
end
|
@@ -804,6 +854,18 @@ describe "Unit Conversion" do
|
|
804
854
|
describe Q[1,"bell"] do
|
805
855
|
it {is_expected.to be_a_quantity_close_to Q[1800,"s"] }
|
806
856
|
end
|
857
|
+
describe Q[1,"decimalhour"] do
|
858
|
+
it {is_expected.to be_a_quantity_close_to Q[8640,"s"] }
|
859
|
+
end
|
860
|
+
describe Q[1,"decimalminute"] do
|
861
|
+
it {is_expected.to be_a_quantity_close_to Q[86.4,"s"] }
|
862
|
+
end
|
863
|
+
describe Q[1,"decimalsecond"] do
|
864
|
+
it {is_expected.to be_a_quantity_close_to Q[0.864,"s"] }
|
865
|
+
end
|
866
|
+
describe Q[1,"beat"] do
|
867
|
+
it {is_expected.to be_a_quantity_close_to Q[86.4,"s"] }
|
868
|
+
end
|
807
869
|
describe Q[1,"circle"] do
|
808
870
|
it {is_expected.to be_a_quantity_close_to Q[6.2831853] }
|
809
871
|
end
|
@@ -1021,28 +1083,28 @@ describe "Unit Conversion" do
|
|
1021
1083
|
it {is_expected.to be_a_quantity_close_to Q[1.6021766e-19,"A s"] }
|
1022
1084
|
end
|
1023
1085
|
describe Q[1,"h"] do
|
1024
|
-
it {is_expected.to be_a_quantity_close_to Q[6.
|
1086
|
+
it {is_expected.to be_a_quantity_close_to Q[6.62607e-34,"s^-1 kg m^2"] }
|
1025
1087
|
end
|
1026
1088
|
describe Q[1,"hbar"] do
|
1027
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1089
|
+
it {is_expected.to be_a_quantity_close_to Q[1.0545718e-34,"s^-1 kg m^2"] }
|
1028
1090
|
end
|
1029
1091
|
describe Q[1,"spin"] do
|
1030
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1092
|
+
it {is_expected.to be_a_quantity_close_to Q[1.0545718e-34,"s^-1 kg m^2"] }
|
1031
1093
|
end
|
1032
1094
|
describe Q[1,"G"] do
|
1033
|
-
it {is_expected.to be_a_quantity_close_to Q[6.
|
1095
|
+
it {is_expected.to be_a_quantity_close_to Q[6.67408e-11,"kg^-1 m^3 s^-2"] }
|
1034
1096
|
end
|
1035
1097
|
describe Q[1,"coulombconst"] do
|
1036
1098
|
it {is_expected.to be_a_quantity_close_to Q[8.9875518e+09,"kg m^3 s^-4 A^-2"] }
|
1037
1099
|
end
|
1038
1100
|
describe Q[1,"atomicmassunit"] do
|
1039
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1101
|
+
it {is_expected.to be_a_quantity_close_to Q[1.660539e-27,"kg"] }
|
1040
1102
|
end
|
1041
1103
|
describe Q[1,"u"] do
|
1042
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1104
|
+
it {is_expected.to be_a_quantity_close_to Q[1.660539e-27,"kg"] }
|
1043
1105
|
end
|
1044
1106
|
describe Q[1,"amu"] do
|
1045
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1107
|
+
it {is_expected.to be_a_quantity_close_to Q[1.660539e-27,"kg"] }
|
1046
1108
|
end
|
1047
1109
|
describe Q[1,"amu_chem"] do
|
1048
1110
|
it {is_expected.to be_a_quantity_close_to Q[1.66026e-27,"kg"] }
|
@@ -1051,46 +1113,52 @@ describe "Unit Conversion" do
|
|
1051
1113
|
it {is_expected.to be_a_quantity_close_to Q[1.65981e-27,"kg"] }
|
1052
1114
|
end
|
1053
1115
|
describe Q[1,"dalton"] do
|
1054
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1116
|
+
it {is_expected.to be_a_quantity_close_to Q[1.660539e-27,"kg"] }
|
1055
1117
|
end
|
1056
1118
|
describe Q[1,"avogadro"] do
|
1057
|
-
it {is_expected.to be_a_quantity_close_to Q[6.
|
1119
|
+
it {is_expected.to be_a_quantity_close_to Q[6.0221409e+23,"mol^-1"] }
|
1058
1120
|
end
|
1059
1121
|
describe Q[1,"N_A"] do
|
1060
|
-
it {is_expected.to be_a_quantity_close_to Q[6.
|
1122
|
+
it {is_expected.to be_a_quantity_close_to Q[6.0221409e+23,"mol^-1"] }
|
1061
1123
|
end
|
1062
1124
|
describe Q[1,"gasconstant"] do
|
1063
|
-
it {is_expected.to be_a_quantity_close_to Q[8.
|
1125
|
+
it {is_expected.to be_a_quantity_close_to Q[8.3144599,"kg m^2 s^-2 K^-1 mol^-1"] }
|
1064
1126
|
end
|
1065
1127
|
describe Q[1,"R"] do
|
1066
|
-
it {is_expected.to be_a_quantity_close_to Q[8.
|
1128
|
+
it {is_expected.to be_a_quantity_close_to Q[8.3144599,"kg m^2 s^-2 K^-1 mol^-1"] }
|
1067
1129
|
end
|
1068
1130
|
describe Q[1,"boltzmann"] do
|
1069
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1131
|
+
it {is_expected.to be_a_quantity_close_to Q[1.3806485e-23,"kg m^2 s^-2 K^-1"] }
|
1070
1132
|
end
|
1071
1133
|
describe Q[1,"k"] do
|
1072
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1134
|
+
it {is_expected.to be_a_quantity_close_to Q[1.3806485e-23,"kg m^2 s^-2 K^-1"] }
|
1073
1135
|
end
|
1074
1136
|
describe Q[1,"kboltzmann"] do
|
1075
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1137
|
+
it {is_expected.to be_a_quantity_close_to Q[1.3806485e-23,"kg m^2 s^-2 K^-1"] }
|
1076
1138
|
end
|
1077
1139
|
describe Q[1,"molarvolume"] do
|
1078
|
-
it {is_expected.to be_a_quantity_close_to Q[0.
|
1140
|
+
it {is_expected.to be_a_quantity_close_to Q[0.022413962,"m^3"] }
|
1079
1141
|
end
|
1080
1142
|
describe Q[1,"loschmidt"] do
|
1081
|
-
it {is_expected.to be_a_quantity_close_to Q[2.
|
1143
|
+
it {is_expected.to be_a_quantity_close_to Q[2.686781e+25,"m^-3"] }
|
1082
1144
|
end
|
1083
1145
|
describe Q[1,"stefanboltzmann"] do
|
1084
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1146
|
+
it {is_expected.to be_a_quantity_close_to Q[5.6703668e-08,"kg s^-3 K^-4"] }
|
1085
1147
|
end
|
1086
1148
|
describe Q[1,"sigma"] do
|
1087
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1149
|
+
it {is_expected.to be_a_quantity_close_to Q[5.6703668e-08,"kg s^-3 K^-4"] }
|
1088
1150
|
end
|
1089
1151
|
describe Q[1,"wiendisplacement"] do
|
1090
|
-
it {is_expected.to be_a_quantity_close_to Q[0.
|
1152
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0028977729,"m K"] }
|
1153
|
+
end
|
1154
|
+
describe Q[1,"K_J90"] do
|
1155
|
+
it {is_expected.to be_a_quantity_close_to Q[4.835979e+14,"s^2 kg^-1 m^-2 A"] }
|
1091
1156
|
end
|
1092
1157
|
describe Q[1,"K_J"] do
|
1093
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
1158
|
+
it {is_expected.to be_a_quantity_close_to Q[4.8359785e+14,"s^2 kg^-1 m^-2 A"] }
|
1159
|
+
end
|
1160
|
+
describe Q[1,"R_K90"] do
|
1161
|
+
it {is_expected.to be_a_quantity_close_to Q[25812.807,"kg m^2 s^-3 A^-2"] }
|
1094
1162
|
end
|
1095
1163
|
describe Q[1,"R_K"] do
|
1096
1164
|
it {is_expected.to be_a_quantity_close_to Q[25812.807,"kg m^2 s^-3 A^-2"] }
|
@@ -1189,88 +1257,88 @@ describe "Unit Conversion" do
|
|
1189
1257
|
it {is_expected.to be_a_quantity_close_to Q[5.2917721e-11,"m"] }
|
1190
1258
|
end
|
1191
1259
|
describe Q[1,"prout"] do
|
1192
|
-
it {is_expected.to be_a_quantity_close_to Q[2.
|
1260
|
+
it {is_expected.to be_a_quantity_close_to Q[2.9720376e-14,"s^-2 kg m^2"] }
|
1193
1261
|
end
|
1194
1262
|
describe Q[1,"planckmass"] do
|
1195
|
-
it {is_expected.to be_a_quantity_close_to Q[2.
|
1263
|
+
it {is_expected.to be_a_quantity_close_to Q[2.17651e-08,"kg"] }
|
1196
1264
|
end
|
1197
1265
|
describe Q[1,"m_P"] do
|
1198
|
-
it {is_expected.to be_a_quantity_close_to Q[2.
|
1266
|
+
it {is_expected.to be_a_quantity_close_to Q[2.17651e-08,"kg"] }
|
1199
1267
|
end
|
1200
1268
|
describe Q[1,"plancktime"] do
|
1201
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1269
|
+
it {is_expected.to be_a_quantity_close_to Q[5.391059e-44,"s"] }
|
1202
1270
|
end
|
1203
1271
|
describe Q[1,"t_P"] do
|
1204
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1272
|
+
it {is_expected.to be_a_quantity_close_to Q[5.391059e-44,"s"] }
|
1205
1273
|
end
|
1206
1274
|
describe Q[1,"plancklength"] do
|
1207
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1275
|
+
it {is_expected.to be_a_quantity_close_to Q[1.6161988e-35,"m"] }
|
1208
1276
|
end
|
1209
1277
|
describe Q[1,"l_P"] do
|
1210
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1278
|
+
it {is_expected.to be_a_quantity_close_to Q[1.6161988e-35,"m"] }
|
1211
1279
|
end
|
1212
1280
|
describe Q[1,"electronradius"] do
|
1213
1281
|
it {is_expected.to be_a_quantity_close_to Q[2.8179403e-15,"m"] }
|
1214
1282
|
end
|
1215
1283
|
describe Q[1,"deuteronchargeradius"] do
|
1216
|
-
it {is_expected.to be_a_quantity_close_to Q[2.
|
1284
|
+
it {is_expected.to be_a_quantity_close_to Q[2.1413e-15,"m"] }
|
1217
1285
|
end
|
1218
1286
|
describe Q[1,"protonchargeradius"] do
|
1219
|
-
it {is_expected.to be_a_quantity_close_to Q[8.
|
1287
|
+
it {is_expected.to be_a_quantity_close_to Q[8.751e-16,"m"] }
|
1220
1288
|
end
|
1221
1289
|
describe Q[1,"electronmass"] do
|
1222
|
-
it {is_expected.to be_a_quantity_close_to Q[9.
|
1290
|
+
it {is_expected.to be_a_quantity_close_to Q[9.1093836e-31,"kg"] }
|
1223
1291
|
end
|
1224
1292
|
describe Q[1,"m_e"] do
|
1225
|
-
it {is_expected.to be_a_quantity_close_to Q[9.
|
1293
|
+
it {is_expected.to be_a_quantity_close_to Q[9.1093836e-31,"kg"] }
|
1226
1294
|
end
|
1227
1295
|
describe Q[1,"protonmass"] do
|
1228
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1296
|
+
it {is_expected.to be_a_quantity_close_to Q[1.6726219e-27,"kg"] }
|
1229
1297
|
end
|
1230
1298
|
describe Q[1,"m_p"] do
|
1231
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1299
|
+
it {is_expected.to be_a_quantity_close_to Q[1.6726219e-27,"kg"] }
|
1232
1300
|
end
|
1233
1301
|
describe Q[1,"neutronmass"] do
|
1234
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1302
|
+
it {is_expected.to be_a_quantity_close_to Q[1.6749275e-27,"kg"] }
|
1235
1303
|
end
|
1236
1304
|
describe Q[1,"m_n"] do
|
1237
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1305
|
+
it {is_expected.to be_a_quantity_close_to Q[1.6749275e-27,"kg"] }
|
1238
1306
|
end
|
1239
1307
|
describe Q[1,"muonmass"] do
|
1240
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1308
|
+
it {is_expected.to be_a_quantity_close_to Q[1.8835316e-28,"kg"] }
|
1241
1309
|
end
|
1242
1310
|
describe Q[1,"m_mu"] do
|
1243
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1311
|
+
it {is_expected.to be_a_quantity_close_to Q[1.8835316e-28,"kg"] }
|
1244
1312
|
end
|
1245
1313
|
describe Q[1,"deuteronmass"] do
|
1246
|
-
it {is_expected.to be_a_quantity_close_to Q[3.
|
1314
|
+
it {is_expected.to be_a_quantity_close_to Q[3.3435837e-27,"kg"] }
|
1247
1315
|
end
|
1248
1316
|
describe Q[1,"m_d"] do
|
1249
|
-
it {is_expected.to be_a_quantity_close_to Q[3.
|
1317
|
+
it {is_expected.to be_a_quantity_close_to Q[3.3435837e-27,"kg"] }
|
1250
1318
|
end
|
1251
1319
|
describe Q[1,"alphaparticlemass"] do
|
1252
|
-
it {is_expected.to be_a_quantity_close_to Q[6.
|
1320
|
+
it {is_expected.to be_a_quantity_close_to Q[6.6446572e-27,"kg"] }
|
1253
1321
|
end
|
1254
1322
|
describe Q[1,"m_alpha"] do
|
1255
|
-
it {is_expected.to be_a_quantity_close_to Q[6.
|
1323
|
+
it {is_expected.to be_a_quantity_close_to Q[6.6446572e-27,"kg"] }
|
1256
1324
|
end
|
1257
1325
|
describe Q[1,"taumass"] do
|
1258
|
-
it {is_expected.to be_a_quantity_close_to Q[3.
|
1326
|
+
it {is_expected.to be_a_quantity_close_to Q[3.1674616e-27,"kg"] }
|
1259
1327
|
end
|
1260
1328
|
describe Q[1,"m_tau"] do
|
1261
|
-
it {is_expected.to be_a_quantity_close_to Q[3.
|
1329
|
+
it {is_expected.to be_a_quantity_close_to Q[3.1674616e-27,"kg"] }
|
1262
1330
|
end
|
1263
1331
|
describe Q[1,"tritonmass"] do
|
1264
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1332
|
+
it {is_expected.to be_a_quantity_close_to Q[5.0073567e-27,"kg"] }
|
1265
1333
|
end
|
1266
1334
|
describe Q[1,"m_t"] do
|
1267
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1335
|
+
it {is_expected.to be_a_quantity_close_to Q[5.0073567e-27,"kg"] }
|
1268
1336
|
end
|
1269
1337
|
describe Q[1,"helionmass"] do
|
1270
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1338
|
+
it {is_expected.to be_a_quantity_close_to Q[5.0064127e-27,"kg"] }
|
1271
1339
|
end
|
1272
1340
|
describe Q[1,"m_h"] do
|
1273
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1341
|
+
it {is_expected.to be_a_quantity_close_to Q[5.0064127e-27,"kg"] }
|
1274
1342
|
end
|
1275
1343
|
describe Q[1,"electronwavelength"] do
|
1276
1344
|
it {is_expected.to be_a_quantity_close_to Q[2.4263102e-12,"m"] }
|
@@ -1291,34 +1359,34 @@ describe "Unit Conversion" do
|
|
1291
1359
|
it {is_expected.to be_a_quantity_close_to Q[1.3195909e-15,"m"] }
|
1292
1360
|
end
|
1293
1361
|
describe Q[1,"bohrmagneton"] do
|
1294
|
-
it {is_expected.to be_a_quantity_close_to Q[9.
|
1362
|
+
it {is_expected.to be_a_quantity_close_to Q[9.27401e-24,"A m^2"] }
|
1295
1363
|
end
|
1296
1364
|
describe Q[1,"mu_B"] do
|
1297
|
-
it {is_expected.to be_a_quantity_close_to Q[9.
|
1365
|
+
it {is_expected.to be_a_quantity_close_to Q[9.27401e-24,"A m^2"] }
|
1298
1366
|
end
|
1299
1367
|
describe Q[1,"nuclearmagneton"] do
|
1300
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1368
|
+
it {is_expected.to be_a_quantity_close_to Q[5.0507837e-27,"A m^2"] }
|
1301
1369
|
end
|
1302
1370
|
describe Q[1,"mu_N"] do
|
1303
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
1371
|
+
it {is_expected.to be_a_quantity_close_to Q[5.0507837e-27,"A m^2"] }
|
1304
1372
|
end
|
1305
1373
|
describe Q[1,"mu_mu"] do
|
1306
|
-
it {is_expected.to be_a_quantity_close_to Q[-4.
|
1374
|
+
it {is_expected.to be_a_quantity_close_to Q[-4.4904483e-26,"m^2 A"] }
|
1307
1375
|
end
|
1308
1376
|
describe Q[1,"mu_p"] do
|
1309
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1377
|
+
it {is_expected.to be_a_quantity_close_to Q[1.4106068e-26,"m^2 A"] }
|
1310
1378
|
end
|
1311
1379
|
describe Q[1,"mu_e"] do
|
1312
|
-
it {is_expected.to be_a_quantity_close_to Q[-9.
|
1380
|
+
it {is_expected.to be_a_quantity_close_to Q[-9.2847646e-24,"m^2 A"] }
|
1313
1381
|
end
|
1314
1382
|
describe Q[1,"mu_n"] do
|
1315
|
-
it {is_expected.to be_a_quantity_close_to Q[-9.
|
1383
|
+
it {is_expected.to be_a_quantity_close_to Q[-9.662365e-27,"m^2 A"] }
|
1316
1384
|
end
|
1317
1385
|
describe Q[1,"mu_d"] do
|
1318
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
1386
|
+
it {is_expected.to be_a_quantity_close_to Q[4.330735e-27,"m^2 A"] }
|
1319
1387
|
end
|
1320
1388
|
describe Q[1,"mu_t"] do
|
1321
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1389
|
+
it {is_expected.to be_a_quantity_close_to Q[1.5046095e-26,"m^2 A"] }
|
1322
1390
|
end
|
1323
1391
|
describe Q[1,"mu_h"] do
|
1324
1392
|
it {is_expected.to be_a_quantity_close_to Q[-1.0746175e-26,"m^2 A"] }
|
@@ -1339,7 +1407,7 @@ describe "Unit Conversion" do
|
|
1339
1407
|
it {is_expected.to be_a_quantity_close_to Q[133.32239,"m^-1 kg s^-2"] }
|
1340
1408
|
end
|
1341
1409
|
describe Q[1,"torr"] do
|
1342
|
-
it {is_expected.to be_a_quantity_close_to Q[133.
|
1410
|
+
it {is_expected.to be_a_quantity_close_to Q[133.32237,"kg m^-1 s^-2"] }
|
1343
1411
|
end
|
1344
1412
|
describe Q[1,"tor"] do
|
1345
1413
|
it {is_expected.to be_a_quantity_close_to Q[1,"kg m^-1 s^-2"] }
|
@@ -1378,31 +1446,31 @@ describe "Unit Conversion" do
|
|
1378
1446
|
it {is_expected.to be_a_quantity_close_to Q[3.0856776e+16,"m"] }
|
1379
1447
|
end
|
1380
1448
|
describe Q[1,"rydberg"] do
|
1381
|
-
it {is_expected.to be_a_quantity_close_to Q[2.
|
1449
|
+
it {is_expected.to be_a_quantity_close_to Q[2.1798723e-18,"s^-2 kg m^2"] }
|
1382
1450
|
end
|
1383
1451
|
describe Q[1,"crith"] do
|
1384
1452
|
it {is_expected.to be_a_quantity_close_to Q[8.9885e-05,"kg"] }
|
1385
1453
|
end
|
1386
1454
|
describe Q[1,"amagatvolume"] do
|
1387
|
-
it {is_expected.to be_a_quantity_close_to Q[0.
|
1455
|
+
it {is_expected.to be_a_quantity_close_to Q[0.022413962,"m^3"] }
|
1388
1456
|
end
|
1389
1457
|
describe Q[1,"amagat"] do
|
1390
|
-
it {is_expected.to be_a_quantity_close_to Q[44.
|
1458
|
+
it {is_expected.to be_a_quantity_close_to Q[44.615048,"mol m^-3"] }
|
1391
1459
|
end
|
1392
1460
|
describe Q[1,"lorentz"] do
|
1393
|
-
it {is_expected.to be_a_quantity_close_to Q[46.
|
1461
|
+
it {is_expected.to be_a_quantity_close_to Q[46.686448,"A m^-1 s^2 kg^-1"] }
|
1394
1462
|
end
|
1395
1463
|
describe Q[1,"cminv"] do
|
1396
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1464
|
+
it {is_expected.to be_a_quantity_close_to Q[1.9864458e-23,"s^-2 kg m^2"] }
|
1397
1465
|
end
|
1398
1466
|
describe Q[1,"invcm"] do
|
1399
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1467
|
+
it {is_expected.to be_a_quantity_close_to Q[1.9864458e-23,"s^-2 kg m^2"] }
|
1400
1468
|
end
|
1401
1469
|
describe Q[1,"wavenumber"] do
|
1402
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
1470
|
+
it {is_expected.to be_a_quantity_close_to Q[1.9864458e-23,"s^-2 kg m^2"] }
|
1403
1471
|
end
|
1404
1472
|
describe Q[1,"kcal_mol"] do
|
1405
|
-
it {is_expected.to be_a_quantity_close_to Q[6.
|
1473
|
+
it {is_expected.to be_a_quantity_close_to Q[6.9476953e-21,"kg m^2 s^-2"] }
|
1406
1474
|
end
|
1407
1475
|
describe Q[1,"dyne"] do
|
1408
1476
|
it {is_expected.to be_a_quantity_close_to Q[1e-05,"m kg s^-2"] }
|
@@ -1621,7 +1689,7 @@ describe "Unit Conversion" do
|
|
1621
1689
|
it {is_expected.to be_a_quantity_close_to Q[1.042,"kg m^2 s^-3 A^-1"] }
|
1622
1690
|
end
|
1623
1691
|
describe Q[1,"faraday"] do
|
1624
|
-
it {is_expected.to be_a_quantity_close_to Q[96485.
|
1692
|
+
it {is_expected.to be_a_quantity_close_to Q[96485.333,"A s"] }
|
1625
1693
|
end
|
1626
1694
|
describe Q[1,"faraday_phys"] do
|
1627
1695
|
it {is_expected.to be_a_quantity_close_to Q[96521.9,"A s"] }
|
@@ -1635,6 +1703,21 @@ describe "Unit Conversion" do
|
|
1635
1703
|
describe Q[1,"siemensunit"] do
|
1636
1704
|
it {is_expected.to be_a_quantity_close_to Q[0.9534,"kg m^2 s^-3 A^-2"] }
|
1637
1705
|
end
|
1706
|
+
describe Q[1,"copperconductivity"] do
|
1707
|
+
it {is_expected.to be_a_quantity_close_to Q[58000000,"A^2 kg^-1 m^-3 s^3"] }
|
1708
|
+
end
|
1709
|
+
describe Q[1,"IACS"] do
|
1710
|
+
it {is_expected.to be_a_quantity_close_to Q[58000000,"A^2 kg^-1 m^-3 s^3"] }
|
1711
|
+
end
|
1712
|
+
describe Q[1,"copperdensity"] do
|
1713
|
+
it {is_expected.to be_a_quantity_close_to Q[8890,"kg m^-3"] }
|
1714
|
+
end
|
1715
|
+
describe Q[1,"ouncecopper"] do
|
1716
|
+
it {is_expected.to be_a_quantity_close_to Q[3.4325279e-05,"m"] }
|
1717
|
+
end
|
1718
|
+
describe Q[1,"ozcu"] do
|
1719
|
+
it {is_expected.to be_a_quantity_close_to Q[3.4325279e-05,"m"] }
|
1720
|
+
end
|
1638
1721
|
describe Q[1,"LUMINOUS_INTENSITY"] do
|
1639
1722
|
it {is_expected.to be_a_quantity_close_to Q[1,"cd"] }
|
1640
1723
|
end
|
@@ -1773,6 +1856,30 @@ describe "Unit Conversion" do
|
|
1773
1856
|
describe Q[1,"c250"] do
|
1774
1857
|
it {is_expected.to be_a_quantity_close_to Q[250,"s^-1"] }
|
1775
1858
|
end
|
1859
|
+
describe Q[1,"N_exif"] do
|
1860
|
+
it {is_expected.to be_a_quantity_close_to Q[0.32,"cd m^-2 s"] }
|
1861
|
+
end
|
1862
|
+
describe Q[1,"K_apex1961"] do
|
1863
|
+
it {is_expected.to be_a_quantity_close_to Q[11.4,"s^-1"] }
|
1864
|
+
end
|
1865
|
+
describe Q[1,"K_apex1971"] do
|
1866
|
+
it {is_expected.to be_a_quantity_close_to Q[12.5,"s^-1"] }
|
1867
|
+
end
|
1868
|
+
describe Q[1,"C_apex1961"] do
|
1869
|
+
it {is_expected.to be_a_quantity_close_to Q[224,"s^-1"] }
|
1870
|
+
end
|
1871
|
+
describe Q[1,"C_apex1971"] do
|
1872
|
+
it {is_expected.to be_a_quantity_close_to Q[322,"s^-1"] }
|
1873
|
+
end
|
1874
|
+
describe Q[1,"N_speed"] do
|
1875
|
+
it {is_expected.to be_a_quantity_close_to Q[0.32,"cd m^-2 s"] }
|
1876
|
+
end
|
1877
|
+
describe Q[1,"K_lum"] do
|
1878
|
+
it {is_expected.to be_a_quantity_close_to Q[12.5,"s^-1"] }
|
1879
|
+
end
|
1880
|
+
describe Q[1,"C_illum"] do
|
1881
|
+
it {is_expected.to be_a_quantity_close_to Q[224,"s^-1"] }
|
1882
|
+
end
|
1776
1883
|
describe Q[1,"TIME"] do
|
1777
1884
|
it {is_expected.to be_a_quantity_close_to Q[1,"s"] }
|
1778
1885
|
end
|
@@ -2086,13 +2193,13 @@ describe "Unit Conversion" do
|
|
2086
2193
|
it {is_expected.to be_a_quantity_close_to Q[1.62,"m s^-2"] }
|
2087
2194
|
end
|
2088
2195
|
describe Q[1,"atomicmass"] do
|
2089
|
-
it {is_expected.to be_a_quantity_close_to Q[9.
|
2196
|
+
it {is_expected.to be_a_quantity_close_to Q[9.1093836e-31,"kg"] }
|
2090
2197
|
end
|
2091
2198
|
describe Q[1,"atomiccharge"] do
|
2092
2199
|
it {is_expected.to be_a_quantity_close_to Q[1.6021766e-19,"A s"] }
|
2093
2200
|
end
|
2094
2201
|
describe Q[1,"atomicaction"] do
|
2095
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
2202
|
+
it {is_expected.to be_a_quantity_close_to Q[1.0545718e-34,"s^-1 kg m^2"] }
|
2096
2203
|
end
|
2097
2204
|
describe Q[1,"atomiclength"] do
|
2098
2205
|
it {is_expected.to be_a_quantity_close_to Q[5.2917721e-11,"m"] }
|
@@ -2104,10 +2211,10 @@ describe "Unit Conversion" do
|
|
2104
2211
|
it {is_expected.to be_a_quantity_close_to Q[2187691.3,"m s^-1"] }
|
2105
2212
|
end
|
2106
2213
|
describe Q[1,"atomicenergy"] do
|
2107
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
2214
|
+
it {is_expected.to be_a_quantity_close_to Q[4.3597446e-18,"s^-2 kg m^2"] }
|
2108
2215
|
end
|
2109
2216
|
describe Q[1,"hartree"] do
|
2110
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
2217
|
+
it {is_expected.to be_a_quantity_close_to Q[4.3597446e-18,"s^-2 kg m^2"] }
|
2111
2218
|
end
|
2112
2219
|
describe Q[1,"thermalcoulomb"] do
|
2113
2220
|
it {is_expected.to be_a_quantity_close_to Q[1,"kg m^2 s^-2 K^-1"] }
|
@@ -2565,9 +2672,6 @@ describe "Unit Conversion" do
|
|
2565
2672
|
describe Q[1,"winesplit"] do
|
2566
2673
|
it {is_expected.to be_a_quantity_close_to Q[0.0001875,"m^3"] }
|
2567
2674
|
end
|
2568
|
-
describe Q[1,"wineglass"] do
|
2569
|
-
it {is_expected.to be_a_quantity_close_to Q[0.00011829412,"m^3"] }
|
2570
|
-
end
|
2571
2675
|
describe Q[1,"magnum"] do
|
2572
2676
|
it {is_expected.to be_a_quantity_close_to Q[0.0015,"m^3"] }
|
2573
2677
|
end
|
@@ -2610,6 +2714,24 @@ describe "Unit Conversion" do
|
|
2610
2714
|
describe Q[1,"nebuchadnezzar"] do
|
2611
2715
|
it {is_expected.to be_a_quantity_close_to Q[0.015,"m^3"] }
|
2612
2716
|
end
|
2717
|
+
describe Q[1,"wineglass"] do
|
2718
|
+
it {is_expected.to be_a_quantity_close_to Q[0.00015,"m^3"] }
|
2719
|
+
end
|
2720
|
+
describe Q[1,"alcoholunitus"] do
|
2721
|
+
it {is_expected.to be_a_quantity_close_to Q[1.7737236e-05,"m^3"] }
|
2722
|
+
end
|
2723
|
+
describe Q[1,"alcoholunitca"] do
|
2724
|
+
it {is_expected.to be_a_quantity_close_to Q[1.7230457e-05,"m^3"] }
|
2725
|
+
end
|
2726
|
+
describe Q[1,"alcoholunituk"] do
|
2727
|
+
it {is_expected.to be_a_quantity_close_to Q[1.0135563e-05,"m^3"] }
|
2728
|
+
end
|
2729
|
+
describe Q[1,"alcoholunitau"] do
|
2730
|
+
it {is_expected.to be_a_quantity_close_to Q[1.2669454e-05,"m^3"] }
|
2731
|
+
end
|
2732
|
+
describe Q[1,"coffeeratio"] do
|
2733
|
+
it {is_expected.to be_a_quantity_close_to Q[55,"kg m^-3"] }
|
2734
|
+
end
|
2613
2735
|
describe Q[1,"clarkdegree"] do
|
2614
2736
|
it {is_expected.to be_a_quantity_close_to Q[0.014253768,"kg m^-3"] }
|
2615
2737
|
end
|
@@ -3321,6 +3443,12 @@ describe "Unit Conversion" do
|
|
3321
3443
|
describe Q[1,"eggyolkvolume"] do
|
3322
3444
|
it {is_expected.to be_a_quantity_close_to Q[1.7251226e-05,"m^3"] }
|
3323
3445
|
end
|
3446
|
+
describe Q[1,"ethanoldensity"] do
|
3447
|
+
it {is_expected.to be_a_quantity_close_to Q[789.3,"kg m^-3"] }
|
3448
|
+
end
|
3449
|
+
describe Q[1,"alcoholdensity"] do
|
3450
|
+
it {is_expected.to be_a_quantity_close_to Q[789.3,"kg m^-3"] }
|
3451
|
+
end
|
3324
3452
|
describe Q[1,"baumeconst"] do
|
3325
3453
|
it {is_expected.to be_a_quantity_close_to Q[145] }
|
3326
3454
|
end
|
@@ -3474,38 +3602,50 @@ describe "Unit Conversion" do
|
|
3474
3602
|
describe Q[1,"WORK"] do
|
3475
3603
|
it {is_expected.to be_a_quantity_close_to Q[1,"kg m^2 s^-2"] }
|
3476
3604
|
end
|
3477
|
-
describe Q[1,"
|
3478
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
3605
|
+
describe Q[1,"calorie"] do
|
3606
|
+
it {is_expected.to be_a_quantity_close_to Q[4.184,"kg m^2 s^-2"] }
|
3479
3607
|
end
|
3480
|
-
describe Q[1,"
|
3608
|
+
describe Q[1,"cal"] do
|
3481
3609
|
it {is_expected.to be_a_quantity_close_to Q[4.184,"kg m^2 s^-2"] }
|
3482
3610
|
end
|
3483
|
-
describe Q[1,"
|
3484
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
3611
|
+
describe Q[1,"calorie_th"] do
|
3612
|
+
it {is_expected.to be_a_quantity_close_to Q[4.184,"kg m^2 s^-2"] }
|
3485
3613
|
end
|
3486
|
-
describe Q[1,"
|
3487
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
3614
|
+
describe Q[1,"thermcalorie"] do
|
3615
|
+
it {is_expected.to be_a_quantity_close_to Q[4.184,"kg m^2 s^-2"] }
|
3488
3616
|
end
|
3489
|
-
describe Q[1,"
|
3490
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
3617
|
+
describe Q[1,"cal_th"] do
|
3618
|
+
it {is_expected.to be_a_quantity_close_to Q[4.184,"kg m^2 s^-2"] }
|
3491
3619
|
end
|
3492
|
-
describe Q[1,"
|
3620
|
+
describe Q[1,"calorie_IT"] do
|
3493
3621
|
it {is_expected.to be_a_quantity_close_to Q[4.1868,"kg m^2 s^-2"] }
|
3494
3622
|
end
|
3495
|
-
describe Q[1,"
|
3623
|
+
describe Q[1,"cal_IT"] do
|
3496
3624
|
it {is_expected.to be_a_quantity_close_to Q[4.1868,"kg m^2 s^-2"] }
|
3497
3625
|
end
|
3498
|
-
describe Q[1,"
|
3499
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
3626
|
+
describe Q[1,"calorie_15"] do
|
3627
|
+
it {is_expected.to be_a_quantity_close_to Q[4.1858,"kg m^2 s^-2"] }
|
3500
3628
|
end
|
3501
|
-
describe Q[1,"
|
3502
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
3629
|
+
describe Q[1,"cal_15"] do
|
3630
|
+
it {is_expected.to be_a_quantity_close_to Q[4.1858,"kg m^2 s^-2"] }
|
3503
3631
|
end
|
3504
|
-
describe Q[1,"
|
3505
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
3632
|
+
describe Q[1,"calorie_fifteen"] do
|
3633
|
+
it {is_expected.to be_a_quantity_close_to Q[4.1858,"kg m^2 s^-2"] }
|
3634
|
+
end
|
3635
|
+
describe Q[1,"calorie_20"] do
|
3636
|
+
it {is_expected.to be_a_quantity_close_to Q[4.1819,"kg m^2 s^-2"] }
|
3637
|
+
end
|
3638
|
+
describe Q[1,"cal_20"] do
|
3639
|
+
it {is_expected.to be_a_quantity_close_to Q[4.1819,"kg m^2 s^-2"] }
|
3640
|
+
end
|
3641
|
+
describe Q[1,"calorie_twenty"] do
|
3642
|
+
it {is_expected.to be_a_quantity_close_to Q[4.1819,"kg m^2 s^-2"] }
|
3643
|
+
end
|
3644
|
+
describe Q[1,"cal_mean"] do
|
3645
|
+
it {is_expected.to be_a_quantity_close_to Q[4.19002,"kg m^2 s^-2"] }
|
3506
3646
|
end
|
3507
3647
|
describe Q[1,"Calorie"] do
|
3508
|
-
it {is_expected.to be_a_quantity_close_to Q[
|
3648
|
+
it {is_expected.to be_a_quantity_close_to Q[4184,"kg m^2 s^-2"] }
|
3509
3649
|
end
|
3510
3650
|
describe Q[1,"thermie"] do
|
3511
3651
|
it {is_expected.to be_a_quantity_close_to Q[4185800,"kg m^2 s^-2"] }
|
@@ -3537,6 +3677,252 @@ describe "Unit Conversion" do
|
|
3537
3677
|
describe Q[1,"therm"] do
|
3538
3678
|
it {is_expected.to be_a_quantity_close_to Q[1.054804e+08,"kg m^2 s^-2"] }
|
3539
3679
|
end
|
3680
|
+
describe Q[1,"water_fusion_heat"] do
|
3681
|
+
it {is_expected.to be_a_quantity_close_to Q[333610.88,"m^2 s^-2"] }
|
3682
|
+
end
|
3683
|
+
describe Q[1,"water_vaporization_heat"] do
|
3684
|
+
it {is_expected.to be_a_quantity_close_to Q[2256400,"m^2 s^-2"] }
|
3685
|
+
end
|
3686
|
+
describe Q[1,"specificheat_water"] do
|
3687
|
+
it {is_expected.to be_a_quantity_close_to Q[4184,"m^2 s^-2 K^-1"] }
|
3688
|
+
end
|
3689
|
+
describe Q[1,"water_specificheat"] do
|
3690
|
+
it {is_expected.to be_a_quantity_close_to Q[4184,"m^2 s^-2 K^-1"] }
|
3691
|
+
end
|
3692
|
+
describe Q[1,"specificheat_aluminum"] do
|
3693
|
+
it {is_expected.to be_a_quantity_close_to Q[910,"m^2 s^-2 K^-1"] }
|
3694
|
+
end
|
3695
|
+
describe Q[1,"specificheat_antimony"] do
|
3696
|
+
it {is_expected.to be_a_quantity_close_to Q[210,"m^2 s^-2 K^-1"] }
|
3697
|
+
end
|
3698
|
+
describe Q[1,"specificheat_barium"] do
|
3699
|
+
it {is_expected.to be_a_quantity_close_to Q[200,"m^2 s^-2 K^-1"] }
|
3700
|
+
end
|
3701
|
+
describe Q[1,"specificheat_beryllium"] do
|
3702
|
+
it {is_expected.to be_a_quantity_close_to Q[1830,"m^2 s^-2 K^-1"] }
|
3703
|
+
end
|
3704
|
+
describe Q[1,"specificheat_bismuth"] do
|
3705
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3706
|
+
end
|
3707
|
+
describe Q[1,"specificheat_cadmium"] do
|
3708
|
+
it {is_expected.to be_a_quantity_close_to Q[230,"m^2 s^-2 K^-1"] }
|
3709
|
+
end
|
3710
|
+
describe Q[1,"specificheat_cesium"] do
|
3711
|
+
it {is_expected.to be_a_quantity_close_to Q[240,"m^2 s^-2 K^-1"] }
|
3712
|
+
end
|
3713
|
+
describe Q[1,"specificheat_chromium"] do
|
3714
|
+
it {is_expected.to be_a_quantity_close_to Q[460,"m^2 s^-2 K^-1"] }
|
3715
|
+
end
|
3716
|
+
describe Q[1,"specificheat_cobalt"] do
|
3717
|
+
it {is_expected.to be_a_quantity_close_to Q[420,"m^2 s^-2 K^-1"] }
|
3718
|
+
end
|
3719
|
+
describe Q[1,"specificheat_copper"] do
|
3720
|
+
it {is_expected.to be_a_quantity_close_to Q[390,"m^2 s^-2 K^-1"] }
|
3721
|
+
end
|
3722
|
+
describe Q[1,"specificheat_gallium"] do
|
3723
|
+
it {is_expected.to be_a_quantity_close_to Q[370,"m^2 s^-2 K^-1"] }
|
3724
|
+
end
|
3725
|
+
describe Q[1,"specificheat_germanium"] do
|
3726
|
+
it {is_expected.to be_a_quantity_close_to Q[320,"m^2 s^-2 K^-1"] }
|
3727
|
+
end
|
3728
|
+
describe Q[1,"specificheat_gold"] do
|
3729
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3730
|
+
end
|
3731
|
+
describe Q[1,"specificheat_hafnium"] do
|
3732
|
+
it {is_expected.to be_a_quantity_close_to Q[140,"m^2 s^-2 K^-1"] }
|
3733
|
+
end
|
3734
|
+
describe Q[1,"specificheat_indium"] do
|
3735
|
+
it {is_expected.to be_a_quantity_close_to Q[240,"m^2 s^-2 K^-1"] }
|
3736
|
+
end
|
3737
|
+
describe Q[1,"specificheat_iridium"] do
|
3738
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3739
|
+
end
|
3740
|
+
describe Q[1,"specificheat_iron"] do
|
3741
|
+
it {is_expected.to be_a_quantity_close_to Q[450,"m^2 s^-2 K^-1"] }
|
3742
|
+
end
|
3743
|
+
describe Q[1,"specificheat_lanthanum"] do
|
3744
|
+
it {is_expected.to be_a_quantity_close_to Q[195,"m^2 s^-2 K^-1"] }
|
3745
|
+
end
|
3746
|
+
describe Q[1,"specificheat_lead"] do
|
3747
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3748
|
+
end
|
3749
|
+
describe Q[1,"specificheat_lithium"] do
|
3750
|
+
it {is_expected.to be_a_quantity_close_to Q[3570,"m^2 s^-2 K^-1"] }
|
3751
|
+
end
|
3752
|
+
describe Q[1,"specificheat_lutetium"] do
|
3753
|
+
it {is_expected.to be_a_quantity_close_to Q[150,"m^2 s^-2 K^-1"] }
|
3754
|
+
end
|
3755
|
+
describe Q[1,"specificheat_magnesium"] do
|
3756
|
+
it {is_expected.to be_a_quantity_close_to Q[1050,"m^2 s^-2 K^-1"] }
|
3757
|
+
end
|
3758
|
+
describe Q[1,"specificheat_manganese"] do
|
3759
|
+
it {is_expected.to be_a_quantity_close_to Q[480,"m^2 s^-2 K^-1"] }
|
3760
|
+
end
|
3761
|
+
describe Q[1,"specificheat_mercury"] do
|
3762
|
+
it {is_expected.to be_a_quantity_close_to Q[140,"m^2 s^-2 K^-1"] }
|
3763
|
+
end
|
3764
|
+
describe Q[1,"specificheat_molybdenum"] do
|
3765
|
+
it {is_expected.to be_a_quantity_close_to Q[250,"m^2 s^-2 K^-1"] }
|
3766
|
+
end
|
3767
|
+
describe Q[1,"specificheat_nickel"] do
|
3768
|
+
it {is_expected.to be_a_quantity_close_to Q[440,"m^2 s^-2 K^-1"] }
|
3769
|
+
end
|
3770
|
+
describe Q[1,"specificheat_osmium"] do
|
3771
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3772
|
+
end
|
3773
|
+
describe Q[1,"specificheat_palladium"] do
|
3774
|
+
it {is_expected.to be_a_quantity_close_to Q[240,"m^2 s^-2 K^-1"] }
|
3775
|
+
end
|
3776
|
+
describe Q[1,"specificheat_platinum"] do
|
3777
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3778
|
+
end
|
3779
|
+
describe Q[1,"specificheat_plutonum"] do
|
3780
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3781
|
+
end
|
3782
|
+
describe Q[1,"specificheat_potassium"] do
|
3783
|
+
it {is_expected.to be_a_quantity_close_to Q[750,"m^2 s^-2 K^-1"] }
|
3784
|
+
end
|
3785
|
+
describe Q[1,"specificheat_rhenium"] do
|
3786
|
+
it {is_expected.to be_a_quantity_close_to Q[140,"m^2 s^-2 K^-1"] }
|
3787
|
+
end
|
3788
|
+
describe Q[1,"specificheat_rhodium"] do
|
3789
|
+
it {is_expected.to be_a_quantity_close_to Q[240,"m^2 s^-2 K^-1"] }
|
3790
|
+
end
|
3791
|
+
describe Q[1,"specificheat_rubidium"] do
|
3792
|
+
it {is_expected.to be_a_quantity_close_to Q[360,"m^2 s^-2 K^-1"] }
|
3793
|
+
end
|
3794
|
+
describe Q[1,"specificheat_ruthenium"] do
|
3795
|
+
it {is_expected.to be_a_quantity_close_to Q[240,"m^2 s^-2 K^-1"] }
|
3796
|
+
end
|
3797
|
+
describe Q[1,"specificheat_scandium"] do
|
3798
|
+
it {is_expected.to be_a_quantity_close_to Q[570,"m^2 s^-2 K^-1"] }
|
3799
|
+
end
|
3800
|
+
describe Q[1,"specificheat_selenium"] do
|
3801
|
+
it {is_expected.to be_a_quantity_close_to Q[320,"m^2 s^-2 K^-1"] }
|
3802
|
+
end
|
3803
|
+
describe Q[1,"specificheat_silicon"] do
|
3804
|
+
it {is_expected.to be_a_quantity_close_to Q[710,"m^2 s^-2 K^-1"] }
|
3805
|
+
end
|
3806
|
+
describe Q[1,"specificheat_silver"] do
|
3807
|
+
it {is_expected.to be_a_quantity_close_to Q[230,"m^2 s^-2 K^-1"] }
|
3808
|
+
end
|
3809
|
+
describe Q[1,"specificheat_sodium"] do
|
3810
|
+
it {is_expected.to be_a_quantity_close_to Q[1210,"m^2 s^-2 K^-1"] }
|
3811
|
+
end
|
3812
|
+
describe Q[1,"specificheat_strontium"] do
|
3813
|
+
it {is_expected.to be_a_quantity_close_to Q[300,"m^2 s^-2 K^-1"] }
|
3814
|
+
end
|
3815
|
+
describe Q[1,"specificheat_tantalum"] do
|
3816
|
+
it {is_expected.to be_a_quantity_close_to Q[140,"m^2 s^-2 K^-1"] }
|
3817
|
+
end
|
3818
|
+
describe Q[1,"specificheat_thallium"] do
|
3819
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3820
|
+
end
|
3821
|
+
describe Q[1,"specificheat_thorium"] do
|
3822
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3823
|
+
end
|
3824
|
+
describe Q[1,"specificheat_tin"] do
|
3825
|
+
it {is_expected.to be_a_quantity_close_to Q[210,"m^2 s^-2 K^-1"] }
|
3826
|
+
end
|
3827
|
+
describe Q[1,"specificheat_titanium"] do
|
3828
|
+
it {is_expected.to be_a_quantity_close_to Q[540,"m^2 s^-2 K^-1"] }
|
3829
|
+
end
|
3830
|
+
describe Q[1,"specificheat_tungsten"] do
|
3831
|
+
it {is_expected.to be_a_quantity_close_to Q[130,"m^2 s^-2 K^-1"] }
|
3832
|
+
end
|
3833
|
+
describe Q[1,"specificheat_uranium"] do
|
3834
|
+
it {is_expected.to be_a_quantity_close_to Q[120,"m^2 s^-2 K^-1"] }
|
3835
|
+
end
|
3836
|
+
describe Q[1,"specificheat_vanadium"] do
|
3837
|
+
it {is_expected.to be_a_quantity_close_to Q[390,"m^2 s^-2 K^-1"] }
|
3838
|
+
end
|
3839
|
+
describe Q[1,"specificheat_yttrium"] do
|
3840
|
+
it {is_expected.to be_a_quantity_close_to Q[300,"m^2 s^-2 K^-1"] }
|
3841
|
+
end
|
3842
|
+
describe Q[1,"specificheat_zinc"] do
|
3843
|
+
it {is_expected.to be_a_quantity_close_to Q[390,"m^2 s^-2 K^-1"] }
|
3844
|
+
end
|
3845
|
+
describe Q[1,"specificheat_zirconium"] do
|
3846
|
+
it {is_expected.to be_a_quantity_close_to Q[270,"m^2 s^-2 K^-1"] }
|
3847
|
+
end
|
3848
|
+
describe Q[1,"specificheat_ethanol"] do
|
3849
|
+
it {is_expected.to be_a_quantity_close_to Q[2300,"m^2 s^-2 K^-1"] }
|
3850
|
+
end
|
3851
|
+
describe Q[1,"specificheat_ammonia"] do
|
3852
|
+
it {is_expected.to be_a_quantity_close_to Q[4600,"m^2 s^-2 K^-1"] }
|
3853
|
+
end
|
3854
|
+
describe Q[1,"specificheat_freon"] do
|
3855
|
+
it {is_expected.to be_a_quantity_close_to Q[910,"m^2 s^-2 K^-1"] }
|
3856
|
+
end
|
3857
|
+
describe Q[1,"specificheat_gasoline"] do
|
3858
|
+
it {is_expected.to be_a_quantity_close_to Q[2220,"m^2 s^-2 K^-1"] }
|
3859
|
+
end
|
3860
|
+
describe Q[1,"specificheat_iodine"] do
|
3861
|
+
it {is_expected.to be_a_quantity_close_to Q[2150,"m^2 s^-2 K^-1"] }
|
3862
|
+
end
|
3863
|
+
describe Q[1,"specificheat_oliveoil"] do
|
3864
|
+
it {is_expected.to be_a_quantity_close_to Q[1970,"m^2 s^-2 K^-1"] }
|
3865
|
+
end
|
3866
|
+
describe Q[1,"specificheat_hydrogen"] do
|
3867
|
+
it {is_expected.to be_a_quantity_close_to Q[14300,"m^2 s^-2 K^-1"] }
|
3868
|
+
end
|
3869
|
+
describe Q[1,"specificheat_helium"] do
|
3870
|
+
it {is_expected.to be_a_quantity_close_to Q[5193.2,"m^2 s^-2 K^-1"] }
|
3871
|
+
end
|
3872
|
+
describe Q[1,"specificheat_argon"] do
|
3873
|
+
it {is_expected.to be_a_quantity_close_to Q[520.3,"m^2 s^-2 K^-1"] }
|
3874
|
+
end
|
3875
|
+
describe Q[1,"specificheat_tissue"] do
|
3876
|
+
it {is_expected.to be_a_quantity_close_to Q[3500,"m^2 s^-2 K^-1"] }
|
3877
|
+
end
|
3878
|
+
describe Q[1,"specificheat_diamond"] do
|
3879
|
+
it {is_expected.to be_a_quantity_close_to Q[509.1,"m^2 s^-2 K^-1"] }
|
3880
|
+
end
|
3881
|
+
describe Q[1,"specificheat_granite"] do
|
3882
|
+
it {is_expected.to be_a_quantity_close_to Q[790,"m^2 s^-2 K^-1"] }
|
3883
|
+
end
|
3884
|
+
describe Q[1,"specificheat_graphite"] do
|
3885
|
+
it {is_expected.to be_a_quantity_close_to Q[710,"m^2 s^-2 K^-1"] }
|
3886
|
+
end
|
3887
|
+
describe Q[1,"specificheat_ice"] do
|
3888
|
+
it {is_expected.to be_a_quantity_close_to Q[2110,"m^2 s^-2 K^-1"] }
|
3889
|
+
end
|
3890
|
+
describe Q[1,"specificheat_asphalt"] do
|
3891
|
+
it {is_expected.to be_a_quantity_close_to Q[920,"m^2 s^-2 K^-1"] }
|
3892
|
+
end
|
3893
|
+
describe Q[1,"specificheat_brick"] do
|
3894
|
+
it {is_expected.to be_a_quantity_close_to Q[840,"m^2 s^-2 K^-1"] }
|
3895
|
+
end
|
3896
|
+
describe Q[1,"specificheat_concrete"] do
|
3897
|
+
it {is_expected.to be_a_quantity_close_to Q[880,"m^2 s^-2 K^-1"] }
|
3898
|
+
end
|
3899
|
+
describe Q[1,"specificheat_glass_silica"] do
|
3900
|
+
it {is_expected.to be_a_quantity_close_to Q[840,"m^2 s^-2 K^-1"] }
|
3901
|
+
end
|
3902
|
+
describe Q[1,"specificheat_glass_flint"] do
|
3903
|
+
it {is_expected.to be_a_quantity_close_to Q[503,"m^2 s^-2 K^-1"] }
|
3904
|
+
end
|
3905
|
+
describe Q[1,"specificheat_glass_pyrex"] do
|
3906
|
+
it {is_expected.to be_a_quantity_close_to Q[753,"m^2 s^-2 K^-1"] }
|
3907
|
+
end
|
3908
|
+
describe Q[1,"specificheat_gypsum"] do
|
3909
|
+
it {is_expected.to be_a_quantity_close_to Q[1090,"m^2 s^-2 K^-1"] }
|
3910
|
+
end
|
3911
|
+
describe Q[1,"specificheat_marble"] do
|
3912
|
+
it {is_expected.to be_a_quantity_close_to Q[880,"m^2 s^-2 K^-1"] }
|
3913
|
+
end
|
3914
|
+
describe Q[1,"specificheat_sand"] do
|
3915
|
+
it {is_expected.to be_a_quantity_close_to Q[835,"m^2 s^-2 K^-1"] }
|
3916
|
+
end
|
3917
|
+
describe Q[1,"specificheat_soil"] do
|
3918
|
+
it {is_expected.to be_a_quantity_close_to Q[835,"m^2 s^-2 K^-1"] }
|
3919
|
+
end
|
3920
|
+
describe Q[1,"specificheat_wood"] do
|
3921
|
+
it {is_expected.to be_a_quantity_close_to Q[1700,"m^2 s^-2 K^-1"] }
|
3922
|
+
end
|
3923
|
+
describe Q[1,"specificheat_sucrose"] do
|
3924
|
+
it {is_expected.to be_a_quantity_close_to Q[1244,"m^2 s^-2 K^-1"] }
|
3925
|
+
end
|
3540
3926
|
describe Q[1,"tonoil"] do
|
3541
3927
|
it {is_expected.to be_a_quantity_close_to Q[4.1868e+10,"kg m^2 s^-2"] }
|
3542
3928
|
end
|
@@ -3607,20 +3993,26 @@ describe "Unit Conversion" do
|
|
3607
3993
|
it {is_expected.to be_a_quantity_close_to Q[1.24e+08,"kg m^-1 s^-2"] }
|
3608
3994
|
end
|
3609
3995
|
describe Q[1,"uranium_pure"] do
|
3610
|
-
it {is_expected.to be_a_quantity_close_to Q[8.
|
3996
|
+
it {is_expected.to be_a_quantity_close_to Q[8.209983e+13,"s^-2 m^2"] }
|
3611
3997
|
end
|
3612
3998
|
describe Q[1,"uranium_natural"] do
|
3613
|
-
it {is_expected.to be_a_quantity_close_to Q[5.
|
3999
|
+
it {is_expected.to be_a_quantity_close_to Q[5.7469881e+11,"s^-2 m^2"] }
|
3614
4000
|
end
|
3615
4001
|
describe Q[1,"celsiusheatunit"] do
|
3616
|
-
it {is_expected.to be_a_quantity_close_to Q[
|
4002
|
+
it {is_expected.to be_a_quantity_close_to Q[1897.8305,"kg m^2 s^-2"] }
|
3617
4003
|
end
|
3618
4004
|
describe Q[1,"chu"] do
|
3619
|
-
it {is_expected.to be_a_quantity_close_to Q[
|
4005
|
+
it {is_expected.to be_a_quantity_close_to Q[1897.8305,"kg m^2 s^-2"] }
|
3620
4006
|
end
|
3621
4007
|
describe Q[1,"POWER"] do
|
3622
4008
|
it {is_expected.to be_a_quantity_close_to Q[1,"kg m^2 s^-3"] }
|
3623
4009
|
end
|
4010
|
+
describe Q[1,"VA"] do
|
4011
|
+
it {is_expected.to be_a_quantity_close_to Q[1,"kg m^2 s^-3"] }
|
4012
|
+
end
|
4013
|
+
describe Q[1,"kWh"] do
|
4014
|
+
it {is_expected.to be_a_quantity_close_to Q[3600000,"kg m^2 s^-2"] }
|
4015
|
+
end
|
3624
4016
|
describe Q[1,"horsepower"] do
|
3625
4017
|
it {is_expected.to be_a_quantity_close_to Q[745.69987,"m^2 kg s^-3"] }
|
3626
4018
|
end
|
@@ -3694,7 +4086,7 @@ describe "Unit Conversion" do
|
|
3694
4086
|
it {is_expected.to be_a_quantity_close_to Q[1,"kg m^2 s^-2 K^-1"] }
|
3695
4087
|
end
|
3696
4088
|
describe Q[1,"clausius"] do
|
3697
|
-
it {is_expected.to be_a_quantity_close_to Q[
|
4089
|
+
it {is_expected.to be_a_quantity_close_to Q[4184,"kg m^2 s^-2 K^-1"] }
|
3698
4090
|
end
|
3699
4091
|
describe Q[1,"langley"] do
|
3700
4092
|
it {is_expected.to be_a_quantity_close_to Q[41840,"kg s^-2"] }
|
@@ -3720,6 +4112,36 @@ describe "Unit Conversion" do
|
|
3720
4112
|
describe Q[1,"airwatt"] do
|
3721
4113
|
it {is_expected.to be_a_quantity_close_to Q[0.99923343,"m^2 s^-3 kg"] }
|
3722
4114
|
end
|
4115
|
+
describe Q[1,"davycrocket"] do
|
4116
|
+
it {is_expected.to be_a_quantity_close_to Q[4.184e+10,"kg m^2 s^-2"] }
|
4117
|
+
end
|
4118
|
+
describe Q[1,"hiroshima"] do
|
4119
|
+
it {is_expected.to be_a_quantity_close_to Q[6.4852e+13,"kg m^2 s^-2"] }
|
4120
|
+
end
|
4121
|
+
describe Q[1,"nagasaki"] do
|
4122
|
+
it {is_expected.to be_a_quantity_close_to Q[8.7864e+13,"kg m^2 s^-2"] }
|
4123
|
+
end
|
4124
|
+
describe Q[1,"fatman"] do
|
4125
|
+
it {is_expected.to be_a_quantity_close_to Q[8.7864e+13,"kg m^2 s^-2"] }
|
4126
|
+
end
|
4127
|
+
describe Q[1,"littleboy"] do
|
4128
|
+
it {is_expected.to be_a_quantity_close_to Q[6.4852e+13,"kg m^2 s^-2"] }
|
4129
|
+
end
|
4130
|
+
describe Q[1,"ivyking"] do
|
4131
|
+
it {is_expected.to be_a_quantity_close_to Q[2.092e+15,"kg m^2 s^-2"] }
|
4132
|
+
end
|
4133
|
+
describe Q[1,"castlebravo"] do
|
4134
|
+
it {is_expected.to be_a_quantity_close_to Q[6.276e+16,"kg m^2 s^-2"] }
|
4135
|
+
end
|
4136
|
+
describe Q[1,"b53bomb"] do
|
4137
|
+
it {is_expected.to be_a_quantity_close_to Q[3.7656e+16,"kg m^2 s^-2"] }
|
4138
|
+
end
|
4139
|
+
describe Q[1,"trinity"] do
|
4140
|
+
it {is_expected.to be_a_quantity_close_to Q[7.5312e+13,"kg m^2 s^-2"] }
|
4141
|
+
end
|
4142
|
+
describe Q[1,"gadget"] do
|
4143
|
+
it {is_expected.to be_a_quantity_close_to Q[7.5312e+13,"kg m^2 s^-2"] }
|
4144
|
+
end
|
3723
4145
|
describe Q[1,"perm_0C"] do
|
3724
4146
|
it {is_expected.to be_a_quantity_close_to Q[5.7213495e-11,"s m^-1"] }
|
3725
4147
|
end
|
@@ -3834,8 +4256,98 @@ describe "Unit Conversion" do
|
|
3834
4256
|
describe Q[1,"Epaper"] do
|
3835
4257
|
it {is_expected.to be_a_quantity_close_to Q[0.96515936,"m^2"] }
|
3836
4258
|
end
|
3837
|
-
describe Q[1,"
|
3838
|
-
it {is_expected.to be_a_quantity_close_to Q[
|
4259
|
+
describe Q[1,"envelope6_25size"] do
|
4260
|
+
it {is_expected.to be_a_quantity_close_to Q[0.01354836,"m^2"] }
|
4261
|
+
end
|
4262
|
+
describe Q[1,"envelope6_75size"] do
|
4263
|
+
it {is_expected.to be_a_quantity_close_to Q[0.015201583,"m^2"] }
|
4264
|
+
end
|
4265
|
+
describe Q[1,"envelope7size"] do
|
4266
|
+
it {is_expected.to be_a_quantity_close_to Q[0.016330613,"m^2"] }
|
4267
|
+
end
|
4268
|
+
describe Q[1,"envelope7_75size"] do
|
4269
|
+
it {is_expected.to be_a_quantity_close_to Q[0.018749962,"m^2"] }
|
4270
|
+
end
|
4271
|
+
describe Q[1,"envelope8_625size"] do
|
4272
|
+
it {is_expected.to be_a_quantity_close_to Q[0.020171331,"m^2"] }
|
4273
|
+
end
|
4274
|
+
describe Q[1,"envelope9size"] do
|
4275
|
+
it {is_expected.to be_a_quantity_close_to Q[0.022187456,"m^2"] }
|
4276
|
+
end
|
4277
|
+
describe Q[1,"envelope10size"] do
|
4278
|
+
it {is_expected.to be_a_quantity_close_to Q[0.025282208,"m^2"] }
|
4279
|
+
end
|
4280
|
+
describe Q[1,"envelope11size"] do
|
4281
|
+
it {is_expected.to be_a_quantity_close_to Q[0.030120908,"m^2"] }
|
4282
|
+
end
|
4283
|
+
describe Q[1,"envelope12size"] do
|
4284
|
+
it {is_expected.to be_a_quantity_close_to Q[0.03370961,"m^2"] }
|
4285
|
+
end
|
4286
|
+
describe Q[1,"envelope14size"] do
|
4287
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0370967,"m^2"] }
|
4288
|
+
end
|
4289
|
+
describe Q[1,"envelope16size"] do
|
4290
|
+
it {is_expected.to be_a_quantity_close_to Q[0.04645152,"m^2"] }
|
4291
|
+
end
|
4292
|
+
describe Q[1,"envelopeA1size"] do
|
4293
|
+
it {is_expected.to be_a_quantity_close_to Q[0.011985863,"m^2"] }
|
4294
|
+
end
|
4295
|
+
describe Q[1,"envelopeA2size"] do
|
4296
|
+
it {is_expected.to be_a_quantity_close_to Q[0.016229806,"m^2"] }
|
4297
|
+
end
|
4298
|
+
describe Q[1,"envelopeA6size"] do
|
4299
|
+
it {is_expected.to be_a_quantity_close_to Q[0.019919315,"m^2"] }
|
4300
|
+
end
|
4301
|
+
describe Q[1,"envelopeA7size"] do
|
4302
|
+
it {is_expected.to be_a_quantity_close_to Q[0.024556403,"m^2"] }
|
4303
|
+
end
|
4304
|
+
describe Q[1,"envelopeA8size"] do
|
4305
|
+
it {is_expected.to be_a_quantity_close_to Q[0.028830588,"m^2"] }
|
4306
|
+
end
|
4307
|
+
describe Q[1,"envelopeA9size"] do
|
4308
|
+
it {is_expected.to be_a_quantity_close_to Q[0.032459612,"m^2"] }
|
4309
|
+
end
|
4310
|
+
describe Q[1,"envelopeA10size"] do
|
4311
|
+
it {is_expected.to be_a_quantity_close_to Q[0.03677412,"m^2"] }
|
4312
|
+
end
|
4313
|
+
describe Q[1,"envelope4bar"] do
|
4314
|
+
it {is_expected.to be_a_quantity_close_to Q[0.011985863,"m^2"] }
|
4315
|
+
end
|
4316
|
+
describe Q[1,"envelope5_5bar"] do
|
4317
|
+
it {is_expected.to be_a_quantity_close_to Q[0.016229806,"m^2"] }
|
4318
|
+
end
|
4319
|
+
describe Q[1,"envelope6bar"] do
|
4320
|
+
it {is_expected.to be_a_quantity_close_to Q[0.019919315,"m^2"] }
|
4321
|
+
end
|
4322
|
+
describe Q[1,"envelope1baby"] do
|
4323
|
+
it {is_expected.to be_a_quantity_close_to Q[0.005080635,"m^2"] }
|
4324
|
+
end
|
4325
|
+
describe Q[1,"envelope00coin"] do
|
4326
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0029939456,"m^2"] }
|
4327
|
+
end
|
4328
|
+
describe Q[1,"envelope1coin"] do
|
4329
|
+
it {is_expected.to be_a_quantity_close_to Q[0.005080635,"m^2"] }
|
4330
|
+
end
|
4331
|
+
describe Q[1,"envelope3coin"] do
|
4332
|
+
it {is_expected.to be_a_quantity_close_to Q[0.006854825,"m^2"] }
|
4333
|
+
end
|
4334
|
+
describe Q[1,"envelope4coin"] do
|
4335
|
+
it {is_expected.to be_a_quantity_close_to Q[0.00870966,"m^2"] }
|
4336
|
+
end
|
4337
|
+
describe Q[1,"envelope4_5coin"] do
|
4338
|
+
it {is_expected.to be_a_quantity_close_to Q[0.009435465,"m^2"] }
|
4339
|
+
end
|
4340
|
+
describe Q[1,"envelope5coin"] do
|
4341
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0097378838,"m^2"] }
|
4342
|
+
end
|
4343
|
+
describe Q[1,"envelope5_5coin"] do
|
4344
|
+
it {is_expected.to be_a_quantity_close_to Q[0.011088688,"m^2"] }
|
4345
|
+
end
|
4346
|
+
describe Q[1,"envelope6coin"] do
|
4347
|
+
it {is_expected.to be_a_quantity_close_to Q[0.01306449,"m^2"] }
|
4348
|
+
end
|
4349
|
+
describe Q[1,"envelope7coin"] do
|
4350
|
+
it {is_expected.to be_a_quantity_close_to Q[0.01467739,"m^2"] }
|
3839
4351
|
end
|
3840
4352
|
describe Q[1,"A0paper"] do
|
3841
4353
|
it {is_expected.to be_a_quantity_close_to Q[0.999949,"m^2"] }
|
@@ -4098,6 +4610,9 @@ describe "Unit Conversion" do
|
|
4098
4610
|
describe Q[1,"paperM"] do
|
4099
4611
|
it {is_expected.to be_a_quantity_close_to Q[0.00045359237,"kg"] }
|
4100
4612
|
end
|
4613
|
+
describe Q[1,"pointthickness"] do
|
4614
|
+
it {is_expected.to be_a_quantity_close_to Q[2.54e-05,"m"] }
|
4615
|
+
end
|
4101
4616
|
describe Q[1,"paperdensity"] do
|
4102
4617
|
it {is_expected.to be_a_quantity_close_to Q[800,"kg m^-3"] }
|
4103
4618
|
end
|
@@ -4303,11 +4818,17 @@ describe "Unit Conversion" do
|
|
4303
4818
|
it {is_expected.to be_a_quantity_close_to Q[1,"bit"] }
|
4304
4819
|
end
|
4305
4820
|
describe Q[1,"nat"] do
|
4306
|
-
it {is_expected.to be_a_quantity_close_to Q[
|
4821
|
+
it {is_expected.to be_a_quantity_close_to Q[1.442695,"bit"] }
|
4307
4822
|
end
|
4308
4823
|
describe Q[1,"hartley"] do
|
4309
4824
|
it {is_expected.to be_a_quantity_close_to Q[3.3219281,"bit"] }
|
4310
4825
|
end
|
4826
|
+
describe Q[1,"ban"] do
|
4827
|
+
it {is_expected.to be_a_quantity_close_to Q[3.3219281,"bit"] }
|
4828
|
+
end
|
4829
|
+
describe Q[1,"dit"] do
|
4830
|
+
it {is_expected.to be_a_quantity_close_to Q[3.3219281,"bit"] }
|
4831
|
+
end
|
4311
4832
|
describe Q[1,"bps"] do
|
4312
4833
|
it {is_expected.to be_a_quantity_close_to Q[1,"bit s^-1"] }
|
4313
4834
|
end
|
@@ -4545,6 +5066,9 @@ describe "Unit Conversion" do
|
|
4545
5066
|
describe Q[1,"frenchcathetersize"] do
|
4546
5067
|
it {is_expected.to be_a_quantity_close_to Q[0.00033333333,"m"] }
|
4547
5068
|
end
|
5069
|
+
describe Q[1,"charriere"] do
|
5070
|
+
it {is_expected.to be_a_quantity_close_to Q[0.00033333333,"m"] }
|
5071
|
+
end
|
4548
5072
|
describe Q[1,"hectare"] do
|
4549
5073
|
it {is_expected.to be_a_quantity_close_to Q[10000,"m^2"] }
|
4550
5074
|
end
|
@@ -4563,6 +5087,9 @@ describe "Unit Conversion" do
|
|
4563
5087
|
describe Q[1,"unitedstatesdollar"] do
|
4564
5088
|
it {is_expected.to be_a_quantity_close_to Q[1,"US$"] }
|
4565
5089
|
end
|
5090
|
+
describe Q[1,"usdollar"] do
|
5091
|
+
it {is_expected.to be_a_quantity_close_to Q[1,"US$"] }
|
5092
|
+
end
|
4566
5093
|
describe Q[1,"$"] do
|
4567
5094
|
it {is_expected.to be_a_quantity_close_to Q[1,"US$"] }
|
4568
5095
|
end
|
@@ -4641,6 +5168,12 @@ describe "Unit Conversion" do
|
|
4641
5168
|
describe Q[1,"splitdeal"] do
|
4642
5169
|
it {is_expected.to be_a_quantity_close_to Q[0.016223193,"m^3"] }
|
4643
5170
|
end
|
5171
|
+
describe Q[1,"poundcut"] do
|
5172
|
+
it {is_expected.to be_a_quantity_close_to Q[119.82643,"kg m^-3"] }
|
5173
|
+
end
|
5174
|
+
describe Q[1,"lbcut"] do
|
5175
|
+
it {is_expected.to be_a_quantity_close_to Q[119.82643,"kg m^-3"] }
|
5176
|
+
end
|
4644
5177
|
describe Q[1,"FLUID_FLOW"] do
|
4645
5178
|
it {is_expected.to be_a_quantity_close_to Q[1,"m^3 s^-1"] }
|
4646
5179
|
end
|
@@ -4746,6 +5279,36 @@ describe "Unit Conversion" do
|
|
4746
5279
|
describe Q[1,"lusec"] do
|
4747
5280
|
it {is_expected.to be_a_quantity_close_to Q[0.00013332239,"m^2 kg s^-3"] }
|
4748
5281
|
end
|
5282
|
+
describe Q[1,"lapserate"] do
|
5283
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0065,"K m^-1"] }
|
5284
|
+
end
|
5285
|
+
describe Q[1,"air_1976"] do
|
5286
|
+
it {is_expected.to be_a_quantity_close_to Q[28.964425] }
|
5287
|
+
end
|
5288
|
+
describe Q[1,"R_1976"] do
|
5289
|
+
it {is_expected.to be_a_quantity_close_to Q[8.31432,"kg m^2 s^-2 mol^-1 K^-1"] }
|
5290
|
+
end
|
5291
|
+
describe Q[1,"polyndx_1976"] do
|
5292
|
+
it {is_expected.to be_a_quantity_close_to Q[4.2558807] }
|
5293
|
+
end
|
5294
|
+
describe Q[1,"polyndx"] do
|
5295
|
+
it {is_expected.to be_a_quantity_close_to Q[4.2558807] }
|
5296
|
+
end
|
5297
|
+
describe Q[1,"polyexpnt"] do
|
5298
|
+
it {is_expected.to be_a_quantity_close_to Q[1.234969] }
|
5299
|
+
end
|
5300
|
+
describe Q[1,"stdatmT0"] do
|
5301
|
+
it {is_expected.to be_a_quantity_close_to Q[288.15,"K"] }
|
5302
|
+
end
|
5303
|
+
describe Q[1,"stdatmP0"] do
|
5304
|
+
it {is_expected.to be_a_quantity_close_to Q[101325,"kg m^-1 s^-2"] }
|
5305
|
+
end
|
5306
|
+
describe Q[1,"earthradUSAtm"] do
|
5307
|
+
it {is_expected.to be_a_quantity_close_to Q[6356766,"m"] }
|
5308
|
+
end
|
5309
|
+
describe Q[1,"Patm"] do
|
5310
|
+
it {is_expected.to be_a_quantity_close_to Q[101325,"kg m^-1 s^-2"] }
|
5311
|
+
end
|
4749
5312
|
describe Q[1,"g00"] do
|
4750
5313
|
it {is_expected.to be_a_quantity_close_to Q[-1] }
|
4751
5314
|
end
|
@@ -4764,6 +5327,84 @@ describe "Unit Conversion" do
|
|
4764
5327
|
describe Q[1,"g0000000"] do
|
4765
5328
|
it {is_expected.to be_a_quantity_close_to Q[-6] }
|
4766
5329
|
end
|
5330
|
+
describe Q[1,"drillA"] do
|
5331
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0059436,"m"] }
|
5332
|
+
end
|
5333
|
+
describe Q[1,"drillB"] do
|
5334
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0060452,"m"] }
|
5335
|
+
end
|
5336
|
+
describe Q[1,"drillC"] do
|
5337
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0061468,"m"] }
|
5338
|
+
end
|
5339
|
+
describe Q[1,"drillD"] do
|
5340
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0062484,"m"] }
|
5341
|
+
end
|
5342
|
+
describe Q[1,"drillE"] do
|
5343
|
+
it {is_expected.to be_a_quantity_close_to Q[0.00635,"m"] }
|
5344
|
+
end
|
5345
|
+
describe Q[1,"drillF"] do
|
5346
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0065278,"m"] }
|
5347
|
+
end
|
5348
|
+
describe Q[1,"drillG"] do
|
5349
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0066294,"m"] }
|
5350
|
+
end
|
5351
|
+
describe Q[1,"drillH"] do
|
5352
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0067564,"m"] }
|
5353
|
+
end
|
5354
|
+
describe Q[1,"drillI"] do
|
5355
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0069088,"m"] }
|
5356
|
+
end
|
5357
|
+
describe Q[1,"drillJ"] do
|
5358
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0070358,"m"] }
|
5359
|
+
end
|
5360
|
+
describe Q[1,"drillK"] do
|
5361
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0071374,"m"] }
|
5362
|
+
end
|
5363
|
+
describe Q[1,"drillL"] do
|
5364
|
+
it {is_expected.to be_a_quantity_close_to Q[0.007366,"m"] }
|
5365
|
+
end
|
5366
|
+
describe Q[1,"drillM"] do
|
5367
|
+
it {is_expected.to be_a_quantity_close_to Q[0.007493,"m"] }
|
5368
|
+
end
|
5369
|
+
describe Q[1,"drillN"] do
|
5370
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0076708,"m"] }
|
5371
|
+
end
|
5372
|
+
describe Q[1,"drillO"] do
|
5373
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0080264,"m"] }
|
5374
|
+
end
|
5375
|
+
describe Q[1,"drillP"] do
|
5376
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0082042,"m"] }
|
5377
|
+
end
|
5378
|
+
describe Q[1,"drillQ"] do
|
5379
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0084328,"m"] }
|
5380
|
+
end
|
5381
|
+
describe Q[1,"drillR"] do
|
5382
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0086106,"m"] }
|
5383
|
+
end
|
5384
|
+
describe Q[1,"drillS"] do
|
5385
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0088392,"m"] }
|
5386
|
+
end
|
5387
|
+
describe Q[1,"drillT"] do
|
5388
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0090932,"m"] }
|
5389
|
+
end
|
5390
|
+
describe Q[1,"drillU"] do
|
5391
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0093472,"m"] }
|
5392
|
+
end
|
5393
|
+
describe Q[1,"drillV"] do
|
5394
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0095758,"m"] }
|
5395
|
+
end
|
5396
|
+
describe Q[1,"drillW"] do
|
5397
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0098044,"m"] }
|
5398
|
+
end
|
5399
|
+
describe Q[1,"drillX"] do
|
5400
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0100838,"m"] }
|
5401
|
+
end
|
5402
|
+
describe Q[1,"drillY"] do
|
5403
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0102616,"m"] }
|
5404
|
+
end
|
5405
|
+
describe Q[1,"drillZ"] do
|
5406
|
+
it {is_expected.to be_a_quantity_close_to Q[0.0104902,"m"] }
|
5407
|
+
end
|
4767
5408
|
describe Q[1,"dmtxxcoarse"] do
|
4768
5409
|
it {is_expected.to be_a_quantity_close_to Q[0.00012,"m"] }
|
4769
5410
|
end
|
@@ -5091,6 +5732,9 @@ describe "Unit Conversion" do
|
|
5091
5732
|
describe Q[1,"rem"] do
|
5092
5733
|
it {is_expected.to be_a_quantity_close_to Q[0.01,"m^2 s^-2"] }
|
5093
5734
|
end
|
5735
|
+
describe Q[1,"banana_dose"] do
|
5736
|
+
it {is_expected.to be_a_quantity_close_to Q[1e-07,"m^2 s^-2"] }
|
5737
|
+
end
|
5094
5738
|
describe Q[1,"roentgen"] do
|
5095
5739
|
it {is_expected.to be_a_quantity_close_to Q[0.000258,"A s kg^-1"] }
|
5096
5740
|
end
|
@@ -5178,6 +5822,9 @@ describe "Unit Conversion" do
|
|
5178
5822
|
describe Q[1,"curium"] do
|
5179
5823
|
it {is_expected.to be_a_quantity_close_to Q[247.0703] }
|
5180
5824
|
end
|
5825
|
+
describe Q[1,"deuterium"] do
|
5826
|
+
it {is_expected.to be_a_quantity_close_to Q[2.0141018] }
|
5827
|
+
end
|
5181
5828
|
describe Q[1,"dysprosium"] do
|
5182
5829
|
it {is_expected.to be_a_quantity_close_to Q[162.5] }
|
5183
5830
|
end
|
@@ -5416,7 +6063,7 @@ describe "Unit Conversion" do
|
|
5416
6063
|
it {is_expected.to be_a_quantity_close_to Q[91.224] }
|
5417
6064
|
end
|
5418
6065
|
describe Q[1,"air"] do
|
5419
|
-
it {is_expected.to be_a_quantity_close_to Q[28.
|
6066
|
+
it {is_expected.to be_a_quantity_close_to Q[28.967904] }
|
5420
6067
|
end
|
5421
6068
|
describe Q[1,"people"] do
|
5422
6069
|
it {is_expected.to be_a_quantity_close_to Q[1] }
|
@@ -5433,6 +6080,51 @@ describe "Unit Conversion" do
|
|
5433
6080
|
describe Q[1,"percapita"] do
|
5434
6081
|
it {is_expected.to be_a_quantity_close_to Q[1] }
|
5435
6082
|
end
|
6083
|
+
describe Q[1,"Tim"] do
|
6084
|
+
it {is_expected.to be_a_quantity_close_to Q[0.17361111,"s"] }
|
6085
|
+
end
|
6086
|
+
describe Q[1,"Grafut"] do
|
6087
|
+
it {is_expected.to be_a_quantity_close_to Q[0.29558045,"m"] }
|
6088
|
+
end
|
6089
|
+
describe Q[1,"Surf"] do
|
6090
|
+
it {is_expected.to be_a_quantity_close_to Q[0.087367804,"m^2"] }
|
6091
|
+
end
|
6092
|
+
describe Q[1,"Volm"] do
|
6093
|
+
it {is_expected.to be_a_quantity_close_to Q[0.025824215,"m^3"] }
|
6094
|
+
end
|
6095
|
+
describe Q[1,"Vlos"] do
|
6096
|
+
it {is_expected.to be_a_quantity_close_to Q[1.7025434,"m s^-1"] }
|
6097
|
+
end
|
6098
|
+
describe Q[1,"Denz"] do
|
6099
|
+
it {is_expected.to be_a_quantity_close_to Q[999.972,"kg m^-3"] }
|
6100
|
+
end
|
6101
|
+
describe Q[1,"Mag"] do
|
6102
|
+
it {is_expected.to be_a_quantity_close_to Q[253.24195,"kg m s^-2"] }
|
6103
|
+
end
|
6104
|
+
describe Q[1,"Maz"] do
|
6105
|
+
it {is_expected.to be_a_quantity_close_to Q[25.823492,"kg"] }
|
6106
|
+
end
|
6107
|
+
describe Q[1,"Tm"] do
|
6108
|
+
it {is_expected.to be_a_quantity_close_to Q[0.17361111,"s"] }
|
6109
|
+
end
|
6110
|
+
describe Q[1,"Gf"] do
|
6111
|
+
it {is_expected.to be_a_quantity_close_to Q[0.29558045,"m"] }
|
6112
|
+
end
|
6113
|
+
describe Q[1,"Sf"] do
|
6114
|
+
it {is_expected.to be_a_quantity_close_to Q[0.087367804,"m^2"] }
|
6115
|
+
end
|
6116
|
+
describe Q[1,"Vm"] do
|
6117
|
+
it {is_expected.to be_a_quantity_close_to Q[0.025824215,"m^3"] }
|
6118
|
+
end
|
6119
|
+
describe Q[1,"Vl"] do
|
6120
|
+
it {is_expected.to be_a_quantity_close_to Q[1.7025434,"m s^-1"] }
|
6121
|
+
end
|
6122
|
+
describe Q[1,"Mz"] do
|
6123
|
+
it {is_expected.to be_a_quantity_close_to Q[25.823492,"kg"] }
|
6124
|
+
end
|
6125
|
+
describe Q[1,"Dz"] do
|
6126
|
+
it {is_expected.to be_a_quantity_close_to Q[999.972,"kg m^-3"] }
|
6127
|
+
end
|
5436
6128
|
describe Q[1,"wari_proportion"] do
|
5437
6129
|
it {is_expected.to be_a_quantity_close_to Q[0.1] }
|
5438
6130
|
end
|
@@ -6685,10 +7377,10 @@ describe "Unit Conversion" do
|
|
6685
7377
|
it {is_expected.to be_a_quantity_close_to Q[0.45359237,"kg"] }
|
6686
7378
|
end
|
6687
7379
|
describe Q[1,"ℎ"] do
|
6688
|
-
it {is_expected.to be_a_quantity_close_to Q[6.
|
7380
|
+
it {is_expected.to be_a_quantity_close_to Q[6.62607e-34,"s^-1 kg m^2"] }
|
6689
7381
|
end
|
6690
7382
|
describe Q[1,"ℏ"] do
|
6691
|
-
it {is_expected.to be_a_quantity_close_to Q[1.
|
7383
|
+
it {is_expected.to be_a_quantity_close_to Q[1.0545718e-34,"s^-1 kg m^2"] }
|
6692
7384
|
end
|
6693
7385
|
describe Q[1,"‰"] do
|
6694
7386
|
it {is_expected.to be_a_quantity_close_to Q[0.001] }
|
@@ -6717,15 +7409,6 @@ describe "Unit Conversion" do
|
|
6717
7409
|
describe Q[1,"㍶"] do
|
6718
7410
|
it {is_expected.to be_a_quantity_close_to Q[3.0856776e+16,"m"] }
|
6719
7411
|
end
|
6720
|
-
describe Q[1,"㍷"] do
|
6721
|
-
it {is_expected.to be_a_quantity_close_to Q[0.1,"m"] }
|
6722
|
-
end
|
6723
|
-
describe Q[1,"㍸"] do
|
6724
|
-
it {is_expected.to be_a_quantity_close_to Q[0.01,"m^2"] }
|
6725
|
-
end
|
6726
|
-
describe Q[1,"㍹"] do
|
6727
|
-
it {is_expected.to be_a_quantity_close_to Q[0.001,"m^3"] }
|
6728
|
-
end
|
6729
7412
|
describe Q[1,"㎀"] do
|
6730
7413
|
it {is_expected.to be_a_quantity_close_to Q[1e-12,"A"] }
|
6731
7414
|
end
|
@@ -6751,10 +7434,10 @@ describe "Unit Conversion" do
|
|
6751
7434
|
it {is_expected.to be_a_quantity_close_to Q[8e+09,"bit"] }
|
6752
7435
|
end
|
6753
7436
|
describe Q[1,"㎈"] do
|
6754
|
-
it {is_expected.to be_a_quantity_close_to Q[4.
|
7437
|
+
it {is_expected.to be_a_quantity_close_to Q[4.184,"kg m^2 s^-2"] }
|
6755
7438
|
end
|
6756
7439
|
describe Q[1,"㎉"] do
|
6757
|
-
it {is_expected.to be_a_quantity_close_to Q[
|
7440
|
+
it {is_expected.to be_a_quantity_close_to Q[4184,"kg m^2 s^-2"] }
|
6758
7441
|
end
|
6759
7442
|
describe Q[1,"㎊"] do
|
6760
7443
|
it {is_expected.to be_a_quantity_close_to Q[1e-12,"A^2 s^4 kg^-1 m^-2"] }
|
@@ -6876,6 +7559,9 @@ describe "Unit Conversion" do
|
|
6876
7559
|
describe Q[1,"㎱"] do
|
6877
7560
|
it {is_expected.to be_a_quantity_close_to Q[1e-09,"s"] }
|
6878
7561
|
end
|
7562
|
+
describe Q[1,"㎲"] do
|
7563
|
+
it {is_expected.to be_a_quantity_close_to Q[1e-06,"s"] }
|
7564
|
+
end
|
6879
7565
|
describe Q[1,"㎳"] do
|
6880
7566
|
it {is_expected.to be_a_quantity_close_to Q[0.001,"s"] }
|
6881
7567
|
end
|
@@ -6972,13 +7658,4 @@ describe "Unit Conversion" do
|
|
6972
7658
|
describe Q[1,"㏝"] do
|
6973
7659
|
it {is_expected.to be_a_quantity_close_to Q[1,"kg m^2 s^-2 A^-1"] }
|
6974
7660
|
end
|
6975
|
-
describe Q[1,"㏞"] do
|
6976
|
-
it {is_expected.to be_a_quantity_close_to Q[1,"kg m s^-3 A^-1"] }
|
6977
|
-
end
|
6978
|
-
describe Q[1,"㏟"] do
|
6979
|
-
it {is_expected.to be_a_quantity_close_to Q[1,"A m^-1"] }
|
6980
|
-
end
|
6981
|
-
describe Q[1,"㏿"] do
|
6982
|
-
it {is_expected.to be_a_quantity_close_to Q[0.0037854118,"m^3"] }
|
6983
|
-
end
|
6984
7661
|
end
|