1
0

feat: add lost functions for env namespace.

- add some lost functions for env namespace according to Rust std library. hiwever some functions are not implemented.
- change some function's signatures located in env namespace.
- reduce some useless error kine in env namespace.
This commit is contained in:
2025-12-07 21:47:54 +08:00
parent f76eabee7a
commit 8b7ab2c870
4 changed files with 114 additions and 35 deletions

View File

@ -48,8 +48,7 @@ namespace yycctest::env {
auto rv = ENV::current_exe();
ASSERT_TRUE(rv.has_value());
std::filesystem::path p(rv.value());
auto filename = p.filename().u8string();
auto filename = rv.value().filename().u8string();
#if defined(YYCC_OS_WINDOWS)
// Only Windows has special ext.
EXPECT_EQ(filename, u8"YYCCTest.exe");