We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 59cac8c + 152c2ea commit 08edeb2Copy full SHA for 08edeb2
3 files changed
stack/cas/casstring.units.class.php
@@ -91,6 +91,7 @@ class stack_cas_casstring_units {
91
['Wh', '3600*(kg*m^2)/s^2', 'Wh', 'Watts hours'],
92
['A', 'A', 'A', 'Ampere'],
93
['ohm', '(kg*m^2)/(s^3*A^2)', '\Omega', 'ohm'],
94
+ ['Omega', '(kg*m^2)/(s^3*A^2)', '\Omega', 'ohm'],
95
['C', 's*A', 'C', 'Coulomb'],
96
['V', '(kg*m^2)/(s^3*A)', 'V', 'Volt'],
97
['F', '(s^4*A^2)/(kg*m^2)', 'F', 'Farad'],
tests/ast_filter_998_security_auto_generated_test.php
@@ -873,6 +873,14 @@ public function test_affected_units(): void {
873
true
874
);
875
876
+ $this->expect(
877
+ 'omega',
878
879
+ ['unknownUnitsCase'],
880
+ false,
881
+ true
882
+ );
883
+
884
$this->expect(
885
'partialdiff(x,y,1)',
886
@@ -2406,14 +2414,6 @@ public function test_non_affected_units(): void {
2406
2414
false
2407
2415
2408
2416
2409
- $this->expect(
2410
- 'omega',
2411
2412
- [],
2413
- true,
- false
- );
-
2417
2418
'omicron',
2419
tests/fixtures/answertestfixtures.class.php
@@ -2989,6 +2989,9 @@ class stack_answertest_test_data {
2989
['Units', '3', '-9.81*m/s^2', 'stackunits(-9.815,m/s^2)', 0, 'ATNumSigFigs_Inaccurate. ATUnits_units_match.', ''],
2990
['Units', '3', '-9.82*m/s^2', 'stackunits(displaydp(-9.815,3),m/s^2)', 1, 'ATUnits_units_match.', ''],
2991
['Units', '3', '-9.82*m/s^2', 'stackunits(displaysf(-9.815,4),m/s^2)', 1, 'ATUnits_units_match.', ''],
2992
+ ['Units', '3', '0.330*kohm', '330*ohm', 1, 'ATUnits_compatible_units (kg*m^2)/(A^2*s^3).', ''],
2993
+ ['Units', '2', '330*Omega', '330*ohm', 1, 'ATUnits_compatible_units (kg*m^2)/(A^2*s^3).', ''],
2994
+ ['Units', '2', "330*\u{03A9}", '330*ohm', 1, 'ATUnits_compatible_units (kg*m^2)/(A^2*s^3).', ''],
2995
2996
['UnitsStrict', '2', '25*g', '0.025*kg', 0, 'ATUnits_compatible_units kg.', 'Differences from the Units test only'],
2997
['UnitsStrict', '1', '1*Mg/10^6', '1*N*s^2/(km)', 0, 'ATUnits_compatible_units kg.', ''],
0 commit comments