Moontoast\Math\BigNumberTest::testShiftLeft PHP Метод

testShiftLeft() публичный Метод

public testShiftLeft ( )
    public function testShiftLeft()
    {
        $bn = new BigNumber(1);
        $this->assertSame($bn, $bn->shiftLeft(30));
        $this->assertSame('1073741824', $bn->getValue());
        $this->assertSame('4611686018427387904', $bn->shiftLeft(32)->getValue());
        $this->assertSame('42535295865117307932921825928971026432', $bn->shiftLeft(63)->getValue());
        $this->assertSame('784637716923335095479473677900958302012794430558004314112', $bn->shiftLeft(64)->getValue());
        $this->assertSame('3369993333393829974333376885877453834204643052817571560137951281152', $bn->shiftLeft(32)->getValue());
    }