moduleMatrixShiftTestexposing(suite)importExpectexposing(equal)importMatrixShiftexposing(matrixShiftRight)importTestexposing(Test,describe,test)suite:Testsuite=describe"Matrix Shift"[test"It should return the array shifted #1"<|\_->letinput=[['a','b','c','d'],['1','2','3','4'],['c','o','d','e'],['b','l','a','h']]output:List(ListChar)output=[['h','a','b','c'],['d','1','2','3'],['4','c','o','d'],['e','b','l','a']]inequaloutput<|matrixShiftRightinput,test"It should return the array shifted #2"<|\_->letinput=[['h','i'],['o','k']]output:List(ListChar)output=[['k','h'],['i','o']]inequaloutput<|matrixShiftRightinput,test"It should return the array shifted #3"<|\_->letinput:List(ListChar)input=[['d','u','d','e'],['i','m','c','o'],['d','i','n','g']]output:List(ListChar)output=[['g','d','u','d'],['e','i','m','c'],['o','d','i','n']]inequaloutput<|matrixShiftRightinput]
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Elm
Tests