Skip to content

Instantly share code, notes, and snippets.

@Klaim
Created January 26, 2014 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Klaim/8633937 to your computer and use it in GitHub Desktop.
Save Klaim/8633937 to your computer and use it in GitHub Desktop.
SphereVector current test report (with errors)
4> [----------] 8 tests from Test_SphereVector
4> [ RUN ] Test_SphereVector.assignation_comparison
4> [ OK ] Test_SphereVector.assignation_comparison (0 ms)
4> [ RUN ] Test_SphereVector.axes_to_cartesian
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(0), phi = Radian(0) }
4> Induced cartesian Vector: Vector3(0, 1, 0)
4> Comparing against Vector: Vector3(0, 1, 0)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(0) }
4> Induced cartesian Vector: Vector3(0, -4.37114e-008, 1)
4> Comparing against Vector: Vector3(0, 0, 1)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(1.5708) }
4> Induced cartesian Vector: Vector3(1, -4.37114e-008, -4.37114e-008)
4> Comparing against Vector: Vector3(1, 0, 0)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(3.14159), phi = Radian(0) }
4> Induced cartesian Vector: Vector3(-0, -1, -8.74228e-008)
4> Comparing against Vector: Vector3(0, -1, 0)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(3.14159) }
4> Induced cartesian Vector: Vector3(-8.74228e-008, -4.37114e-008, -1)
4> Comparing against Vector: Vector3(0, 0, -1)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(4.71239) }
4> Induced cartesian Vector: Vector3(-1, -4.37114e-008, 1.19249e-008)
4> Comparing against Vector: Vector3(-1, 0, 0)
4> [ OK ] Test_SphereVector.axes_to_cartesian (1 ms)
4> [ RUN ] Test_SphereVector.axes_from_cartesian
4> ----
4> Checking from_cartesian with Vector Vector3(0, 1, 0)
4> Induced SphereVector: { radius = 1, theta = Radian(0), phi = Radian(0) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(0), phi = Radian(0) }
4> ----
4> Checking from_cartesian with Vector Vector3(0, 0, 1)
4> Induced SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(0) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(0) }
4> ----
4> Checking from_cartesian with Vector Vector3(1, 0, 0)
4> Induced SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(1.5708) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(1.5708) }
4> ----
4> Checking from_cartesian with Vector Vector3(0, -1, 0)
4> Induced SphereVector: { radius = 1, theta = Radian(3.14159), phi = Radian(0) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(3.14159), phi = Radian(0) }
4> ----
4> Checking from_cartesian with Vector Vector3(0, 0, -1)
4> Induced SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(3.14159) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(3.14159) }
4> ----
4> Checking from_cartesian with Vector Vector3(-1, 0, 0)
4> Induced SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(4.71239) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(4.71239) }
4> [ OK ] Test_SphereVector.axes_from_cartesian (1 ms)
4> [ RUN ] Test_SphereVector.default_axes_to_cartesian
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(1.5708) }
4> Induced cartesian Vector: Vector3(1, -4.37114e-008, -4.37114e-008)
4> Comparing against Vector: Vector3(1, 0, 0)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(0), phi = Radian(0) }
4> Induced cartesian Vector: Vector3(0, 1, 0)
4> Comparing against Vector: Vector3(0, 1, 0)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(0) }
4> Induced cartesian Vector: Vector3(0, -4.37114e-008, 1)
4> Comparing against Vector: Vector3(0, 0, 1)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(4.71239) }
4> Induced cartesian Vector: Vector3(-1, -4.37114e-008, 1.19249e-008)
4> Comparing against Vector: Vector3(-1, 0, 0)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(3.14159), phi = Radian(0) }
4> Induced cartesian Vector: Vector3(-0, -1, -8.74228e-008)
4> Comparing against Vector: Vector3(0, -1, 0)
4> ----
4> Checking to_cartesian with SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(3.14159) }
4> Induced cartesian Vector: Vector3(-8.74228e-008, -4.37114e-008, -1)
4> Comparing against Vector: Vector3(0, 0, -1)
4> [ OK ] Test_SphereVector.default_axes_to_cartesian (0 ms)
4> [ RUN ] Test_SphereVector.default_axes_from_cartesian
4> ----
4> Checking from_cartesian with Vector Vector3(1, 0, 0)
4> Induced SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(1.5708) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(1.5708) }
4> ----
4> Checking from_cartesian with Vector Vector3(0, 1, 0)
4> Induced SphereVector: { radius = 1, theta = Radian(0), phi = Radian(0) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(0), phi = Radian(0) }
4> ----
4> Checking from_cartesian with Vector Vector3(0, 0, 1)
4> Induced SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(0) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(0) }
4> ----
4> Checking from_cartesian with Vector Vector3(-1, 0, 0)
4> Induced SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(4.71239) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(4.71239) }
4> ----
4> Checking from_cartesian with Vector Vector3(0, -1, 0)
4> Induced SphereVector: { radius = 1, theta = Radian(3.14159), phi = Radian(0) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(3.14159), phi = Radian(0) }
4> ----
4> Checking from_cartesian with Vector Vector3(0, 0, -1)
4> Induced SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(3.14159) }
4> Comparing against Vector: SphereVector: { radius = 1, theta = Radian(1.5708), phi = Radian(3.14159) }
4> [ OK ] Test_SphereVector.default_axes_from_cartesian (1 ms)
4> [ RUN ] Test_SphereVector.symetric_cartesian_funcs
4> ----
4> Comparing
4> Left: Vector3(1, 0, 0)
4> Right: Vector3(1, -4.37114e-008, -4.37114e-008)
4> ----
4> Comparing
4> Left: Vector3(0, 1, 0)
4> Right: Vector3(0, 1, 0)
4> ----
4> Comparing
4> Left: Vector3(0, 0, 1)
4> Right: Vector3(0, -4.37114e-008, 1)
4> ----
4> Comparing
4> Left: Vector3(-1, 0, 0)
4> Right: Vector3(-1, -4.37114e-008, 1.19249e-008)
4> ----
4> Comparing
4> Left: Vector3(0, -1, 0)
4> Right: Vector3(-0, -1, -8.74228e-008)
4> ----
4> Comparing
4> Left: Vector3(0, 0, -1)
4> Right: Vector3(-8.74228e-008, -4.37114e-008, -1)
4> [ OK ] Test_SphereVector.symetric_cartesian_funcs (1 ms)
4> [ RUN ] Test_SphereVector.axe_rotation_quaternion
4> ----
4> Comparing
4> Left: Vector3(1, -4.37114e-008, -4.37114e-008)
4> Right: Vector3(1, 0, 0)
4> ----
4> Comparing
4> Left: Vector3(-8.74228e-008, 1, 1.19209e-007)
4> Right: Vector3(0, 1, 0)
4> ----
4> Comparing
4> Left: Vector3(1.74846e-007, -4.37114e-008, 1)
4> Right: Vector3(0, 0, 1)
4> ----
4> Comparing
4> Left: Vector3(-1, -4.37114e-008, 4.88762e-007)
4> Right: Vector3(-1, 0, 0)
4> ----
4> Comparing
4> Left: Vector3(-6.63205e-008, -1, 1.35652e-007)
4> Right: Vector3(0, -1, 0)
4> ----
4> Comparing
4> Left: Vector3(-3.25841e-007, -4.37114e-008, -1)
4> Right: Vector3(0, 0, -1)
4> ----
4> Comparing
4> Left: Vector3(9.61651e-007, -3.0598e-007, 7)
4> Right: Vector3(0, 0, -1)
4>e:\projects\games\netrush\netrush_projects\projects\netrush\zoneview\tests\spherevector.cpp(210): error : Value of: check_compare( svec_360.to_cartesian(), Vector3::NEGATIVE_UNIT_Z )
4> Actual: false
4> Expected: true
4> ----
4> Comparing
4> Left: { radius = 1, theta = Radian(1.5708), phi = Radian(1.5708) }
4> Right: { radius = 1, theta = Radian(1.5708), phi = Radian(1.5708) }
4> ----
4> Comparing
4> Left: { radius = 1, theta = Radian(1.4783e-007), phi = Radian(5.65042) }
4> Right: { radius = 1, theta = Radian(0), phi = Radian(0) }
4>e:\projects\games\netrush\netrush_projects\projects\netrush\zoneview\tests\spherevector.cpp(213): error : Value of: check_compare( svec_y , SphereVector::UNIT_Y )
4> Actual: false
4> Expected: true
4> ----
4> Comparing
4> Left: { radius = 1, theta = Radian(1.5708), phi = Radian(1.74846e-007) }
4> Right: { radius = 1, theta = Radian(1.5708), phi = Radian(0) }
4> ----
4> Comparing
4> Left: { radius = 1, theta = Radian(1.5708), phi = Radian(4.71239) }
4> Right: { radius = 1, theta = Radian(1.5708), phi = Radian(4.71239) }
4> ----
4> Comparing
4> Left: { radius = 1, theta = Radian(3.14159), phi = Radian(5.82845) }
4> Right: { radius = 1, theta = Radian(3.14159), phi = Radian(0) }
4>e:\projects\games\netrush\netrush_projects\projects\netrush\zoneview\tests\spherevector.cpp(216): error : Value of: check_compare( svec_ny , SphereVector::NEGATIVE_UNIT_Y )
4> Actual: false
4> Expected: true
4> ----
4> Comparing
4> Left: { radius = 1, theta = Radian(1.5708), phi = Radian(3.14159) }
4> Right: { radius = 1, theta = Radian(1.5708), phi = Radian(3.14159) }
4> ----
4> Comparing
4> Left: { radius = 7, theta = Radian(1.5708), phi = Radian(1.37379e-007) }
4> Right: { radius = 1, theta = Radian(1.5708), phi = Radian(3.14159) }
4>e:\projects\games\netrush\netrush_projects\projects\netrush\zoneview\tests\spherevector.cpp(218): error : Value of: check_compare( svec_360, SphereVector::NEGATIVE_UNIT_Z )
4> Actual: false
4> Expected: true
4> [ FAILED ] Test_SphereVector.axe_rotation_quaternion (2 ms)
4> [ RUN ] Test_SphereVector.axe_rotation_theta_phi
4> [ OK ] Test_SphereVector.axe_rotation_theta_phi (0 ms)
4> [----------] 8 tests from Test_SphereVector (6 ms total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment