You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the Diamond exercise in F#, the submission below fails with an empty error message, stating only "We received the following error when we ran your code", but no actual reason.
Looking at the dev console in my browser, I see multiple calls to the "test_run_ endpoint returning
{"test_run":null}
with status 304. If I modify my submission slightly by defining
letspace='.'// instead of let space = ' '
then I receive a "test_run" response with status 200 and some expected test failure messages (after some empty 304s as above).
The code submission:
moduleDiamondletalphabet=[|'A'..'Z'|]letspace=' 'letcreateUpperHalfRow row size =letcenter= size /2if row =0then
Array.init size (fun i ->if i = center then alphabet.[row]else space)else
Array.init size (fun i ->if i = center - row || i = center + row then alphabet.[row]else space)letcreateUpperHalf size =
Array.init (size /2+1)(fun i -> createUpperHalfRow i size)letmirrorLowerHalf upperHalf =letlength= Array.length upperHalf
Array.init (length -1)(fun i -> upperHalf.[length - i -2])letmake letter =letsize=(Array.findIndex ((=) letter) alphabet)*2+1letupperHalf= createUpperHalf size
letlowerHalf= mirrorLowerHalf upperHalf
lowerHalf
|> Array.append upperHalf
|> Array.map System.String
|> String.concat System.Environment.NewLine
The text was updated successfully, but these errors were encountered:
For the Diamond exercise in F#, the submission below fails with an empty error message, stating only "We received the following error when we ran your code", but no actual reason.
Looking at the dev console in my browser, I see multiple calls to the "test_run_ endpoint returning
with status 304. If I modify my submission slightly by defining
then I receive a "test_run" response with status 200 and some expected test failure messages (after some empty 304s as above).
The code submission:
The text was updated successfully, but these errors were encountered: