Fix use of deprecated function. Fix bug when compile time subtracting a distinct type. Fix test/benchmark debug info use.

This commit is contained in:
Christoffer Lerno
2024-08-19 09:36:45 +02:00
parent cb7116f08b
commit 6de17b9ae9
5 changed files with 70 additions and 14 deletions

View File

@@ -363,7 +363,7 @@ fn void! test_path_is_absolute()
fn void! test_path_absolute()
{
$if env::WIN32:
assert(path::new_windows(`C:\abs`).absolute()!.str_view() == `C:\abs`);
assert(path::new_windows(`C:\abs`).new_absolute()!.str_view() == `C:\abs`);
$else
assert(path::new_posix("/").new_absolute()!.str_view() == "/");
assert(path::new_posix(".").new_absolute()!.str_view() == path::temp_cwd()!!.str_view());