Created
September 20, 2010 09:17
-
-
Save clauswitt/587650 to your computer and use it in GitHub Desktop.
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
public function testGetNumber() | |
{ | |
$this->assertEquals(1000, $this->object->getNumber('M')); | |
$this->assertEquals(100, $this->object->getNumber('C')); | |
$this->assertEquals(10, $this->object->getNumber('X')); | |
$this->assertEquals(1, $this->object->getNumber('I')); | |
$this->assertEquals(500, $this->object->getNumber('D')); | |
$this->assertEquals(50, $this->object->getNumber('L')); | |
$this->assertEquals(5, $this->object->getNumber('V')); | |
$this->assertEquals(900, $this->object->getNumber('CM')); | |
$this->assertEquals(90, $this->object->getNumber('XC')); | |
$this->assertEquals(9, $this->object->getNumber('IX')); | |
$this->assertEquals(1900, $this->object->getNumber('MCM')); | |
$this->assertEquals(1980, $this->object->getNumber('MCMLXXX')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment