Unity-Technologies / AssetGraph

Visual Workflow Automation Tool for Unity.
Other
1.12k stars 208 forks source link

Path Test fails on Windows #115

Closed hiroki-o closed 6 years ago

hiroki-o commented 6 years ago

Original report by ttermeer-reboundcg (Bitbucket: ttermeer-reboundcg, GitHub: ttermeer-reboundcg).


Running Unit Test on Windows cause the following failure :

#!c#

PathTestSimplePasses (0.010s)
---
String lengths are both 49. Strings differ at index 41.
  Expected: "Assets/UnityEngine.AssetBundleGraph\\Cache/Prefabs"
  But was:  "Assets/UnityEngine.AssetBundleGraph\\Cache\\Prefabs"
  -----------------------------------------------------^
---
at PathTest.TestPath (System.String expected, System.String path) [0x00003] in ...\Assets\UnityEngine.AssetBundleGraph\Editor\Test\PathTest.cs:61
at PathTest.PathTestSimplePasses () [0x000c1] in ...\Assets\UnityEngine.AssetBundleGraph\Editor\Test\PathTest.cs:31

This is due to System.IO.Path.Combine returning \\ instead or / on Windows system.

hiroki-o commented 6 years ago

Original comment by Hiroki Omae (Bitbucket: [Hiroki Omae](https://bitbucket.org/Hiroki Omae), ).


fixed in dev & 1.4/release branch. thank you for reporting.