예제 #1
0
def test_are_convertible() -> None:
    assert cfunits.are_convertible("K", "K")
    assert cfunits.are_convertible("m", "meters")
    assert cfunits.are_convertible("hPa", "Pa")
    assert not cfunits.are_convertible("m", "Pa")
예제 #2
0
def test_are_convertible():
    assert cfunits.are_convertible('m', 'm')
    assert cfunits.are_convertible('hPa', 'Pa')
    assert not cfunits.are_convertible('m', 'Pa')