Search Issue Tracker
Fixed
Fixed in 2021.3.40f1, 2022.3.31f1, 6000.0.6f1, 7000.0.0a1
Votes
1
Found in
2021.3.30f1
6000.0.37f1
Issue ID
UUM-48738
Regression
No
Pose Equals function test fails when comparing it with itself
How to reproduce:
1. Download and open the attached "PoseEquality" project
2. Open the Test Runner window (Window > General > Test Runner)
3. In the Test Runner window, press "Run All"
Expected outcome: The tests succeed
Actual outcome: The tests fail
Reproducible with: 2021.3.30f1, 2022.3.9f1, 2023.1.13f1, 2023.2.0b9, 2023.3.0a5
Tested on: macOS (Ventura 13.4)
The Pose Equals function doesn't always return true even when compared to itself, while the Quaternion Equals function does always return true.
This is because Pose Equals function doesn't use Quaternion Equals function but its == operator.
This lead to inconsistencies when using the `Assert.AreEqual` function in automated testing
See forum post: [https://forum.unity.com/threads/pose-equality-not-implemented-in-accordance-with-quaterion.1484145/] (fix suggested in the post)
2. How can we reproduce it using the example you attached
- Open the project
- Run the editor tests
Expected result: The test succeed
Actual result: The test fail
Comments (1)
-
Pitou22
Sep 11, 2023 19:51
The "Found in" field is missing versions 2022.3.9f1, 2023.1.13f1, 2023.2.0b9, 2023.3.0a5
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note (fix version 7000.0.0a1):
Fixed via Backports
Resolution Note (fix version 2022.3.31f1):
Verified with: 2022.3.31f1
Resolution Note (fix version 2021.3.40f1):
Fixed via Backports