コード例 #1
0
ファイル: LargeIntTest.php プロジェクト: rockoo/LargInteger
 public function testGreaterThan()
 {
     $obj1 = new LargeInteger("243234243598732149872958714082798523523489723897423897423897429874987239847");
     $obj2 = new LargeInteger("12323543598732149872958714082798523523489723897423897423897429874987239847");
     $obj3 = new LargeInteger("12323543598732149872958714082798523523489723897423897423897429874987239847");
     $obj4 = new LargeInteger("12323543598732149872958714082798523523489723897423897423897429874987239847");
     $this->assertTrue($obj1->greater_than($obj2));
     $this->assertFalse($obj3->greater_than($obj4));
 }