Given:
EUR inc GST / EUR = 1.1
10.0 EUR in EUR inc GST = ?
EURincGST / EUR = 1.1
10.0 EUR in EUR inc GST = ?
driver steering angle = 34 degree
sin(driver steering angle) = ?
driver steering angle = 34 rad
sin(driver steering angle) = ?
Expect:
EUR inc GST / EUR = 1.1
10.0 EUR in EUR inc GST = 11 EUR inc GST
EURincGST / EUR = 1.1
10.0 EUR in EUR inc GST = 11 EURincGST
driver steering angle = 34 degree
sin(driver steering angle) = 0.5591929034707469
driver steering angle = 34 rad
sin(driver steering angle) = 0.5290826861200238
Given:
a = 5
b = a
c = b + 2
d = c + a
d + 5 =
Expect:
a = 5
b = a
c = b + 2
d = c + a
d + 5 = 17
Given:
10 / 3 =
Expect:
10 / 3 = 3.3333333333333335
Given:
a = 2
b = 5
c = a + b = ?
Expect:
a = 2
b = 5
c = a + b = 7
Given:
a = 1
a = ?
Expect:
a = 1
a = 1
Given:
15 > 100 ? 1 : -1 =
Expect:
15 > 100 ? 1 : -1 = -1
Given:
100 == 100 =
Expect:
100 == 100 = true
Given:
shops = 10
earningPerShop = 1500
totalEarnings = shops * earningPerShop
totalEarnings = ?
Expect:
shops = 10
earningPerShop = 1500
totalEarnings = shops * earningPerShop
totalEarnings = 15000
Given:
shops = 10
earningPerShop = 1500
totalEarnings = shops * earningPerShop
= ?
Expect:
shops = 10
earningPerShop = 1500
totalEarnings = shops * earningPerShop
= 15000
Given:
a = 2
1 + a
= ?
1 + 1
= ?
a
= ?
Expect:
a = 2
1 + a
= 3
1 + 1
= 2
a
= 2
Given:
Per Person Delivery = 11
People Count = 23
Delivery = 12
Total Food Price = Per Person Delivery * People Count
= ?
Total Price = Total Food Price + Delivery
= ?
2 m + 3 km = ?
Expect:
Per Person Delivery = 11
People Count = 23
Delivery = 12
Total Food Price = Per Person Delivery * People Count
= 253
Total Price = Total Food Price + Delivery
= 265
2 m + 3 km = 3.002 km
Given:
apple_price = 32 USD
orange_price = 43 USD
total = 3*apple_price + 4*orange_price
= ?
Expect:
apple_price = 32 USD
orange_price = 43 USD
total = 3*apple_price + 4*orange_price
= 268 USD
Given:
apple_price = 32 USD
orange_price = 43 USD
total = 3*apple_price + 4*orange_price
total:
total: ?
total: 268 USD
Expect:
apple_price = 32 USD
orange_price = 43 USD
total = 3*apple_price + 4*orange_price
total: 268 USD
total: 268 USD
total: 268 USD
Given:
f(x) = 2 * x
result = f(3)
result : ?
Expect:
f(x) = 2 * x
result = f(3)
result : 6
Test Case: Allow for currency pairs and pair ratios (Tip: only alphanumeric characters are allowed in unit names):
Note: investigate possible edge case if EUR/USD = 1.25
is ran multiple times
Given:
# Glimmer to Shimmer
GLM/SHM = 50
5 SHM to GLM = ?
# Euros to US Dollars
EUR/USD = 1.30
5 USD to EUR = ?
# Euros incusive of GST (10% gst tax)
EUR / EUR inc GST = 1/1.1
10.0 EUR in EUR inc GST = ?
Expect:
# Glimmer to Shimmer
GLM/SHM = 50
5 SHM to GLM = 250 GLM
# Euros to US Dollars
EUR/USD = 1.30
5 USD to EUR = 6.5 EUR
# Euros incusive of GST (10% gst tax)
EUR / EUR inc GST = 1/1.1
10.0 EUR in EUR inc GST = 11 EUR inc GST