aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/util/platform_test.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-21 01:19:55 +0900
committernsfisis <nsfisis@gmail.com>2026-06-21 01:47:58 +0900
commitb5a9d37a7880b05cb3ba1fdbe5b8873295621514 (patch)
treefa16db033aa869f0aa4517ba5e9543a033e36e71 /crates/shirabe/tests/util/platform_test.rs
parente050356c9ba8e1a2c20d2fc842924e189f3cc89e (diff)
downloadphp-shirabe-b5a9d37a7880b05cb3ba1fdbe5b8873295621514.tar.gz
php-shirabe-b5a9d37a7880b05cb3ba1fdbe5b8873295621514.tar.zst
php-shirabe-b5a9d37a7880b05cb3ba1fdbe5b8873295621514.zip
style: apply rustfmt to ported test files
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/util/platform_test.rs')
-rw-r--r--crates/shirabe/tests/util/platform_test.rs15
1 files changed, 9 insertions, 6 deletions
diff --git a/crates/shirabe/tests/util/platform_test.rs b/crates/shirabe/tests/util/platform_test.rs
index 3d00370..626e358 100644
--- a/crates/shirabe/tests/util/platform_test.rs
+++ b/crates/shirabe/tests/util/platform_test.rs
@@ -7,8 +7,14 @@ use shirabe_php_shim::defined;
#[ignore = "Platform::expand_path does not read the env var set via put_env in this runtime"]
fn test_expand_path() {
Platform::put_env("TESTENV", "/home/test");
- assert_eq!("/home/test/myPath", Platform::expand_path("%TESTENV%/myPath"));
- assert_eq!("/home/test/myPath", Platform::expand_path("$TESTENV/myPath"));
+ assert_eq!(
+ "/home/test/myPath",
+ Platform::expand_path("%TESTENV%/myPath")
+ );
+ assert_eq!(
+ "/home/test/myPath",
+ Platform::expand_path("$TESTENV/myPath")
+ );
assert_eq!(
format!(
"{}/test",
@@ -23,9 +29,6 @@ fn test_expand_path() {
#[test]
fn test_is_windows() {
// Compare 2 common tests for Windows to the built-in Windows test
- assert_eq!(
- std::path::MAIN_SEPARATOR == '\\',
- Platform::is_windows()
- );
+ assert_eq!(std::path::MAIN_SEPARATOR == '\\', Platform::is_windows());
assert_eq!(defined("PHP_WINDOWS_VERSION_MAJOR"), Platform::is_windows());
}