Skip to content

Commit

Permalink
Use °F instead of just F
Browse files Browse the repository at this point in the history
  • Loading branch information
cmfcmf committed May 29, 2019
1 parent d2b0fb3 commit 6c5eee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cmfcmf/OpenWeatherMap/Util/Unit.php
Expand Up @@ -85,7 +85,7 @@ public function getUnit()
if ($this->unit == 'celsius' || $this->unit == 'metric') {
return "°C";
} elseif ($this->unit == 'fahrenheit') {
return 'F';
return '°F';
} else {
return $this->unit;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Util/UnitTest.php
Expand Up @@ -114,7 +114,7 @@ public function testFahrenheitFix()
{
$this->givenThereIsAUnitWithUnit("fahrenheit");

$this->assertSame("F", $this->unit->getUnit());
$this->assertSame("°F", $this->unit->getUnit());
}

private function givenThereIsAUnitWithUnit($unit)
Expand Down

0 comments on commit 6c5eee9

Please sign in to comment.