コード例 #1
0
ファイル: PostProcessTest.php プロジェクト: tantek/cassis
 public function testBase60()
 {
     ob_start();
     num_to_sxg(503194);
     $result = ob_get_clean();
     $this->assertEquals('', $result);
 }
コード例 #2
0
ファイル: NewBase60Test.php プロジェクト: tantek/cassis
 /**
  * @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)));
}