ObjFW  Check-in [5ee5247264]

Overview
Comment:tests/OFMatrix4x4Tests.m: Fix a typo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5ee524726496f354ef59138be8edce8594df442883e9aa6f2805a93fb1bf7b7a
User & Date: js on 2023-04-12 08:54:46
Other Links: manifest | tags
Context
2023-04-12
09:30
Build utils/ofatalkcfg by default check-in: c29a0febe0 user: js tags: trunk
08:54
tests/OFMatrix4x4Tests.m: Fix a typo check-in: 5ee5247264 user: js tags: trunk
08:37
utils/ofatalkcfg: Make the code more portable check-in: 2fc4580a5f user: js tags: trunk
Changes

Modified tests/OFMatrix4x4Tests.m from [26a9451c0a] to [953b65c5c6].

77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
		{  9000, 10000, 11000, 12000 },
		{ 20200, 22800, 25400, 28000 },
		{ 31400, 35600, 39800, 44000 },
		{ 42600, 48400, 54200, 60000 }
	    }]])

	TEST(@"[-translateWithVector:]",
	    R(matrix2 = [OFMatrix4x4 identityMatrix]) &&
	    R([matrix2 translateWithVector: OFMakeVector3D(1, 2, 3)]) &&
	    R(point =
	    [matrix2 transformedVector: OFMakeVector4D(2, 3, 4, 1)]) &&
	    point.x == 3 && point.y == 5 && point.z == 7 && point.w == 1)

	TEST(@"-[scaleWithVector:]",
	    R([matrix2 scaleWithVector: OFMakeVector3D(-1, 0.5f, 2)]) &&







|







77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
		{  9000, 10000, 11000, 12000 },
		{ 20200, 22800, 25400, 28000 },
		{ 31400, 35600, 39800, 44000 },
		{ 42600, 48400, 54200, 60000 }
	    }]])

	TEST(@"[-translateWithVector:]",
	    (matrix2 = [OFMatrix4x4 identityMatrix]) &&
	    R([matrix2 translateWithVector: OFMakeVector3D(1, 2, 3)]) &&
	    R(point =
	    [matrix2 transformedVector: OFMakeVector4D(2, 3, 4, 1)]) &&
	    point.x == 3 && point.y == 5 && point.z == 7 && point.w == 1)

	TEST(@"-[scaleWithVector:]",
	    R([matrix2 scaleWithVector: OFMakeVector3D(-1, 0.5f, 2)]) &&