Skip to content

Commit

Permalink
fix: some tests fail on Windows (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Jul 6, 2022
1 parent d70c6f3 commit 0a90ac1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ public void DebugTypeName_ShouldReturnFloat_When_ValueIsSet()
float[] array = { 0.01f };
using (var packet = new FloatArrayPacket(array))
{
#if UNITY_EDITOR_WIN
Assert.AreEqual("float [0]", packet.DebugTypeName());
#else
Assert.AreEqual("float []", packet.DebugTypeName());
#endif
}
}
#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@ public void DebugTypeName_ShouldReturnFloat_When_ValueIsSet()
{
using (var packet = new ImageFramePacket(new ImageFrame()))
{
#if UNITY_EDITOR_WIN
Assert.AreEqual("class mediapipe::ImageFrame", packet.DebugTypeName());
#else
Assert.AreEqual("mediapipe::ImageFrame", packet.DebugTypeName());
#endif
}
}
#endregion
Expand Down

0 comments on commit 0a90ac1

Please sign in to comment.