示例#1
0
 public function testBase60()
 {
     ob_start();
     num_to_sxg(503194);
     $result = ob_get_clean();
     $this->assertEquals('', $result);
 }
示例#2
0
 /**
  * @dataProvider toSxgDataProvider
  */
 public function testNumToSxg($expected, $input)
 {
     $this->assertEquals($expected, num_to_sxg($input));
 }
示例#3
0
文件: cassis.php 项目: tantek/cassis
function whistle_short_path($p)
{
    return strcat(substr($p, 9, 1), substr($p, 9, 1) !== 't' ? "/" : "", yd_to_sdf(substr($p, 0, 8), 3), num_to_sxg(substr($p, 10, 3)));
}