|
|
@ -4,9 +4,15 @@ from scaling import froude
|
|
|
|
def test_unit_to_same_unit():
|
|
|
|
def test_unit_to_same_unit():
|
|
|
|
assert froude.model_to_proto(1, 1, 'm', 'm') == 1
|
|
|
|
assert froude.model_to_proto(1, 1, 'm', 'm') == 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_unit_to_different_unit():
|
|
|
|
|
|
|
|
assert froude.model_to_proto(1, 1, 'kN', 'N') == 1000
|
|
|
|
|
|
|
|
|
|
|
|
def test_froude_length():
|
|
|
|
def test_froude_length():
|
|
|
|
assert froude.model_to_proto(1, 10, 'm', 'm') == 10
|
|
|
|
assert froude.model_to_proto(1, 10, 'm', 'm') == 10
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_froude_time():
|
|
|
|
|
|
|
|
assert froude.model_to_proto(1, 25, 's', 's') == 5
|
|
|
|
|
|
|
|
|
|
|
|
def test_froude_force():
|
|
|
|
def test_froude_force():
|
|
|
|
assert froude.model_to_proto(1, 10, 'N', 'N') == 1000
|
|
|
|
assert froude.model_to_proto(1, 10, 'N', 'N') == 1000
|
|
|
|
|
|
|
|
|
|
|
|