Skip to content

Commit

Permalink
Removed light year
Browse files Browse the repository at this point in the history
  • Loading branch information
Severino committed Jul 29, 2024
1 parent ca12764 commit 19248dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
3 changes: 0 additions & 3 deletions app/AttributeTypes/Units/Implementations/LengthUnits.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,5 @@ public function __construct() {
Unit::createUnit('yard' , 'yd', Imperial::YARD_2_M),
Unit::createUnit('mile' , 'mi', Imperial::MILE_2_M),
]);
$this->add(
Unit::createUnit('light_year', 'ly', General::LIGHTYEAR),
);
}
}
7 changes: 0 additions & 7 deletions tests/Unit/Attributes/SiAttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,6 @@ public function testLengthUnits() {
$this->assertEquals('mile', $mile->getLabel());
$this->assertEquals('mi', $mile->getSymbol());
$this->assertEquals(1609.344, $mile->is(1));

// Others
$lightYear = $lengthUnits->get('light_year');
$this->assertNotNull($lightYear);
$this->assertEquals('light_year', $lightYear->getLabel());
$this->assertEquals('ly', $lightYear->getSymbol());
$this->assertEquals(9460730472580800, $lightYear->is(1));
}


Expand Down

0 comments on commit 19248dc

Please sign in to comment.