-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Lobooooooo14/development
Added new conversion: Rankine
- Loading branch information
Showing
7 changed files
with
266 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
**/__pycache__/ | ||
.vscode | ||
.pytest_cache/ | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
import tempyrature | ||
|
||
|
||
def test_float_celsius2fahrenheit(): | ||
assert type(tempyrature.Converter.celsius2fahrenheit(10.3)) == float | ||
|
||
|
||
def test_correct_response_celsius2fahrenheit(): | ||
assert tempyrature.Converter.celsius2fahrenheit(10.3) == 50.540000000000006 | ||
|
||
|
||
def test_float_celsius2kelvin(): | ||
assert type(tempyrature.Converter.celsius2kelvin(10.3)) == float | ||
|
||
|
||
def test_correct_response_celsius2kelvin(): | ||
assert tempyrature.Converter.celsius2kelvin(10.3) == 283.45 | ||
|
||
|
||
def test_float_fahrenheit2celsius(): | ||
assert type(tempyrature.Converter.fahrenheit2celsius(34.3)) == float | ||
|
||
|
||
def test_correct_response_fahrenheit2celsius(): | ||
assert tempyrature.Converter.fahrenheit2celsius(34.3) == 1.2777777777777761 | ||
|
||
|
||
def test_float_fahrenheit2kelvin(): | ||
assert type(tempyrature.Converter.fahrenheit2kelvin(34.3)) == float | ||
|
||
|
||
def test_correct_response_fahrenheit2kelvin(): | ||
assert tempyrature.Converter.fahrenheit2kelvin(34.3) == 274.42777777777775 | ||
|
||
|
||
def test_float_kelvin2celsius(): | ||
assert type(tempyrature.Converter.kelvin2celsius(280.2)) == float | ||
|
||
|
||
def test_correct_response_kelvin2celsius(): | ||
assert tempyrature.Converter.kelvin2celsius(280.2) == 7.050000000000011 | ||
|
||
|
||
def test_float_kelvin2fahrenheit(): | ||
assert type(tempyrature.Converter.kelvin2fahrenheit(280.2)) == float | ||
|
||
|
||
def test_correct_response_kelvin2fahrenheit(): | ||
assert tempyrature.Converter.kelvin2fahrenheit(280.2) == 44.69000000000002 | ||
|
||
|
||
def test_correct_response_rankine2celsius(): | ||
assert tempyrature.Converter.rankine2celsius(509.66999999999996) == 10.0 | ||
|
||
|
||
def test_correct_response_celsius2rankine(): | ||
assert tempyrature.Converter.celsius2rankine(10.0) == 509.66999999999996 | ||
|
||
|
||
def test_correct_response_rankine2fahrenheit(): | ||
assert tempyrature.Converter.rankine2fahrenheit(563.6700000000001) == 104.00000000000006 | ||
|
||
|
||
def test_correct_response_fahrenheit2rankine(): | ||
assert tempyrature.Converter.fahrenheit2rankine(104.0) == 563.6700000000001 | ||
|
||
|
||
def test_correct_response_rankine2kelvin(): | ||
assert tempyrature.Converter.rankine2kelvin(563.6700000000001) == 313.15000000000003 | ||
|
||
|
||
def test_correct_response_kelvin2rankine(): | ||
assert tempyrature.Converter.kelvin2rankine(313.15000000000003) == 563.6700000000001 |
Oops, something went wrong.