Ejemplo n.º 1
0
 public function testGreaterOrEqualThan()
 {
     $obj1 = new LargeInteger("12323543598732149872958714082798523523489723897423897423897429874987239847");
     $obj2 = new LargeInteger("12323543598732149872958714082798523523489723897423897423897429874987239847");
     $obj3 = new LargeInteger("22323543598732149872958714082798523523489723897423897423897429874987239847");
     $obj4 = new LargeInteger("12323543598732149872958714082798523523489723897423897423897429874987239847");
     $obj5 = new LargeInteger("2323543598732149872958714082798523523489723897423897423897429874987239847");
     $obj6 = new LargeInteger("12323543598732149872958714082798523523489723897423897423897429874987239847");
     $this->assertTrue($obj1->greater_or_equal_than($obj2));
     $this->assertTrue($obj3->greater_or_equal_than($obj4));
     $this->assertFalse($obj5->greater_or_equal_than($obj6));
 }