The question asks to define a square matrix P with size n =5. The following matrix is just an example for n = 4. Even though it looks like the matrices P in the text and in the code look the same, they are not.
You’re not missing anything, you are actually correct! There is a bug in the unit test function, this is alredy being fixed by our Curriculum Engineer.
Why are there so many bugs in graded labs that are pretty basic in nature? This is paid course for godsake that is $50 a month! Does your staff have no quality control? Students are hardpressed to find time to spend on low quality of labs. A student should not be expected to uncover bugs in a lab, report back to you so you can fix it while they are waiting for their grade to reflect what they actually know. This is pretty disappointing.
What this means is that the Curriculum Engineer is not even checking the content that he is publishing as a graded lab. This should be basic QA 101 in any kind of a software release process.
I don’t mean to be misunderstood. I am aware that your staff is trying their best to help out the students, and it is universally appreciated, but the people putting out the labs should know better.