示例#1
0
 /**
  * This method tests the "multiply" method.
  *
  * @dataProvider data_multiply
  */
 public function test_multiply(array $provided, array $expected)
 {
     $p0 = IFloat\Module::multiply(IFloat\Type::box($provided[0]), IFloat\Type::box($provided[1]));
     $e0 = $expected[0];
     $this->assertInstanceOf('\\Saber\\Data\\IFloat\\Type', $p0);
     $this->assertSame($e0, $p0->unbox());
 }