How do you know when an assignment you hand is was correct?

Tell us what’s happening:
I handed in one assignment and was wondering how do I know if I completed it correctly? All I see is a checkmark. If you can help it would be great. Thanks!

submitting doesn’t currently test your project in any way, but there is a test suite.

put your assignment into that codepen, select the project and run the tests. or you can just import the test suite into whatever environment you want, using a script tag in your html.

Hi thanks a lot for answering. I’m still having issues… it says I failed everything. One reason could be because my code isn’t even showing up in the window beside the test box. If you need more info let me know. Hopefully I can get that sorted. Really want to work through this website but also want to make sure I’m doing things correctly! Thanks again

Hmm, could you link your project?

Sure. I think what’s really happening is every time I copy and paste my code into codepen (because I originally write the code using another program) the test disappears and I don’t know how to get it back.

Yeah, you’re right. You need to make sure the script tag linking the test suite is in your html, technically this script will work no matter where it is in your html, but it’s best practice to put it in the head. It should look like this:

  <link rel="stylesheet" type="text/css" href="Project 1.css">
  <script src=""></script>

If that’s in your html you won’t even need to copy and paste it over to codepen.

Thank you so much! That fixed it.

Maybe you could help me with one more thing. How do I run the tests for the small challenges as I go through the material? Sorry to ask another one. You don’t have to respond if you don’t want:)

Hey, no worries. Hope this helps.

That’s what I’ve been doing that but there are no green checkmarks. There is also no corrections telling me if I passed the test or not.

The tests are just under the buttons, they’ll turn to ticks if you’ve pass the respective test. If all the tests pass, a big tick will pop up in the middle of your screen.

Ya darn… the flask symbol doesn’t change. I did that and the symbol just stays the same. That sucks.

It could possibly be a problem with your browser, which browser are you using ?

You’re so right! Using chrome now and I can do the challenges. Thanks!

1 Like