fix pwsh path error (#250)

* add version

* improve test actions

* use XY_On_Windows

---------

Co-authored-by: mikachu2333 <mikachu23333@zohomail.com>
This commit is contained in:
Mikachu2333
2025-08-17 16:15:52 +08:00
committed by GitHub
parent 41c449f4ac
commit a3cf4fcc99
3 changed files with 65 additions and 17 deletions

View File

@@ -2,11 +2,12 @@
* SPDX-License-Identifier: MIT
* -------------------------------------------------------------
* File Name : xy.c
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org>
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org>
* | Mikachu2333 <mikachu.23333@zohomail.com>
* |
* Created On : <2023-08-30>
* Last Modified : <2025-08-08>
* Last Modified : <2025-08-11>
*
* Test xy.h
* ------------------------------------------------------------*/
@@ -97,6 +98,8 @@ main (int argc, char const *argv[])
assert (xy_dir_exist ("~"));
if (xy_on_windows)
{
say (xy_win_powershell_profile);
say (xy_win_powershellv5_profile);
assert (xy_file_exist (xy_win_powershell_profile));
assert (true == xy_file_exist (xy_win_powershellv5_profile));
assert (xy_dir_exist ("C:\\Users"));