-
Build this project and run tests in xcode : should all pass (both on the simulator and on a device).
-
Build and run tests on the command line using the simulator by using the following command line. (Terminal needs to to be open in the main project folder).
xcodebuild -scheme testQuaternions -sdk iphonesimulator build test
This should show a failed test where the quaternion values are wrong (you can look at the command line output to see the differences in values where you'll see something like:
Quaternion: x:4.48416e-44, y:0.0, z:1.0, w:0.0
followed by:
quaternion result : Quaternion description: x:0.000000, y:0.000000, z:1.000000, w:0.000000
As you can see the x value for the quaternion is wrong, and this will cause the test to fail.
-
Build and run tests on the command line but this time on a device - you'll need to change the device name to match the one you have plugged in. If you are not sure of the name, look in xcode and use the name that appears next to the scheme.
xcodebuild -scheme testQuaternions -destination "platform=iOS,name=Bill's iPhone 5S" build test
This last test should pass, indicating that the code works on a real device but not on the simulator.
-
Notifications
You must be signed in to change notification settings - Fork 0
asensei/testQuaternion
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A test project to demonstrate a bug where using GLKQuaternion over a Swift/Objective-C boundary gives incorrect values in the quaternion.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published