diff --git a/app/AttributeTypes/Units/Implementations/LengthUnits.php b/app/AttributeTypes/Units/Implementations/LengthUnits.php index c499603d..9ffbcd4c 100644 --- a/app/AttributeTypes/Units/Implementations/LengthUnits.php +++ b/app/AttributeTypes/Units/Implementations/LengthUnits.php @@ -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), - ); } } diff --git a/tests/Unit/Attributes/SiAttributeTest.php b/tests/Unit/Attributes/SiAttributeTest.php index 5682264e..15817aa3 100644 --- a/tests/Unit/Attributes/SiAttributeTest.php +++ b/tests/Unit/Attributes/SiAttributeTest.php @@ -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)); }