Back to Freecodecamp

Task 29

curriculum/challenges/english/blocks/learn-about-speculation-and-requests/67eeb0a9bfe9ce2ab1cbffd2.md

latest1.9 KB
Original Source
<!-- (audio) Sophie: Great. Also, you should have run the test suite before submitting your code. -->

--instructions--

Listen to the audio and answer the question below.

--questions--

--text--

What else should Mark have done?

--answers--

He should have rewritten his entire code.

--feedback--

Mark didn't need to rewrite everything.


He should have tested his code first.


He should have removed all comments.

--feedback--

Comments are useful and should not be removed.


He should have skipped testing because it takes too long.

--feedback--

Testing is an important step before submitting code.

--video-solution--

2

--explanation--

A test suite is a collection of tests that check if a program works correctly. For example:

  • We ran the test suite to check if the app works properly. - The team executed all the tests to ensure the app functions as expected.

  • We need to add more tests to the test suite to check for edge cases. - The team should include more tests to cover all possible situations.

--scene--

json
{
  "setup": {
    "background": "company2-center.png",
    "characters": [
      {
        "character": "Sophie",
        "position": {
          "x": 50,
          "y": 0,
          "z": 1.4
        },
        "opacity": 0
      }
    ],
    "audio": {
      "filename": "B1_17-1.mp3",
      "startTime": 1,
      "startTimestamp": 42.42,
      "finishTimestamp": 45.94
    }
  },
  "commands": [
    {
      "character": "Sophie",
      "opacity": 1,
      "startTime": 0
    },
    {
      "character": "Sophie",
      "startTime": 1,
      "finishTime": 4.52,
      "dialogue": {
        "text": "Great. Also, you should have run the test suite before submitting your code.",
        "align": "center"
      }
    },
    {
      "character": "Sophie",
      "opacity": 0,
      "startTime": 5.02
    }
  ]
}