Computer Science, asked by vaalboihea1799, 11 months ago

A doctest mixes documentation and testing. State true or false.

Answers

Answered by CaptainB
0

Answer:

I think so the answer is true

Explanation:

I think so the answer is true

Answered by theking20
1

The given statement ''A doctest mixes documentation and testing'' is true.

  • It is true that, a doctest mixes documentation and testing. It has an interpreter which is very interactive.
  • We can use that to create examples. From there only, we can just copy paste those codes in the module doc strings.
  • In fact, the basic purpose of doctest is that, we could use documentation to create automated tests for a particular module.
  • Doctest basically runs the test code examples in the document itself, and verify if they produce expected results or not.
Similar questions