I have gotten all 14 previous tests right, as well test 16, however I’m failing test 15 and I can’t seem to understand why. All the tests I ran came out as they were supposed to. Can someone help me figure this out?
Test 15. If the input manifest object is not valid, your validateManifest function should return an object describing missing and/or invalid properties.
Actually I do have a normalizeUnits function, I pasted only the “validateManifest” function snippet because the bug is about that particular one. The former “normalizeUnits” part of the code had already passed the tests.
Please post all of your code. We can’t test fully with just a snippet.
There are two ways you can format your code to make it easier to read and test:
After you copy/paste your code into the editor, select it by dragging your cursor over it then click the (</>) button in the toolbar to automatically wrap your code in backticks. (You can click on the animated demo image below to enlarge it.)
Manually add three backticks on a new line above your code and on a new line after your code. Note that a backtick is NOT the same as a single quote('). To find the backtick key on your keyboard, see this post.
To see changes to your post as you make them, you can click the (M+) button on the toolbar to bring up the rich text editor:
Oh, my mistake. I will send the full code below, if it’s best I open a new post please tell me so I can do that. I’m new to the forum, thanks for the patience.
I don’t see it why it shouldn’t be, because even if the user inputs “Kg” or “KG”, it’s logical that they mean “kilograms”, so a simple uppercase shouldn’t invalidate their input.
Yes, I know I still need to implement processManifest, but my question is regarding the validateManifest function only and I’ve only gotten this far. I want to make it pass the #15 test before I proceed to the next function.
I didn’t realize it was meant to be taken literally, I was thinking about input possibilities instead. Fixed that and passed the #15 test. Thank you for your help