Remove redundant files and add tests for #504 bug

This commit is contained in:
crazywhalecc 2024-07-19 23:34:01 +08:00 committed by Jerry Ma
parent fbae0021a3
commit ca6d5da10f
3 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,8 @@ declare(strict_types=1);
namespace SPC\builder\linux\library;
use SPC\store\FileSystem;
class icu extends LinuxLibraryBase
{
use \SPC\builder\unix\library\icu;
@ -36,5 +38,6 @@ class icu extends LinuxLibraryBase
->exec('make install');
$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
FileSystem::removeDir(BUILD_LIB_PATH . '/icu');
}
}

View File

@ -4,6 +4,8 @@ declare(strict_types=1);
namespace SPC\builder\macos\library;
use SPC\store\FileSystem;
class icu extends MacOSLibraryBase
{
use \SPC\builder\unix\library\icu;
@ -20,5 +22,6 @@ class icu extends MacOSLibraryBase
->exec('make install');
$this->patchPkgconfPrefix(['icu-i18n.pc', 'icu-io.pc', 'icu-uc.pc'], PKGCONF_PATCH_PREFIX);
FileSystem::removeDir(BUILD_LIB_PATH . '/icu');
}
}

View File

@ -3,3 +3,6 @@
declare(strict_types=1);
assert(class_exists(NumberFormatter::class));
assert(function_exists('locale_get_default'));
$fmt = new NumberFormatter('de-DE', NumberFormatter::DECIMAL);
assert(strval($fmt->parse('1.100')) === '1100');