Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle/profile: Canonicalize during test
Merged lorenz opened 6 months ago

Fixes test profile::test::canonicalize_home.

Since Home::new canonicalizes its argument (which is what the test wants to ensure), also canonicalize the expected value, which is especially important on Windows as the canonicalization is more complex than on Linux.

For example:

thread 'profile::test::canonicalize_home' panicked at crates\radicle\src\profile.rs:802:9:
assertion `left == right` failed
  left: "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\.tmpMnNkr6\\Home\\Radicle"
 right: "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\.tmpMnNkr6\\Home\\Radicle"
lorenz opened with revision acc4d47d on base 10e7b94c +3 -2 6 months ago

Fixes test profile::test::canonicalize_home.

Since Home::new canonicalizes its argument (which is what the test wants to ensure), also canonicalize the expected value, which is especially important on Windows as the canonicalization is more complex than on Linux.

For example:

thread 'profile::test::canonicalize_home' panicked at crates\radicle\src\profile.rs:802:9:
assertion `left == right` failed
  left: "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\.tmpMnNkr6\\Home\\Radicle"
 right: "C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\.tmpMnNkr6\\Home\\Radicle"
lorenz pushed revision 2 a90a2857 on base 10e7b94c +3 -2 6 months ago

Canonicalize after creation.

fintohaps pushed revision 3 5ebb169c on base 86b7ef23 +3 -2 6 months ago

Rebase

fintohaps merged revision 5ebb169c at 60798cdb 6 months ago