The official text
Old and new, side by side
Indian Evidence Act, 1872
Section 118 Who may testify
All persons shall be competent to testify unless the Court considers that they are prevented from understanding the questions put to them, or from giving rational answers to those questions, by tender years, extreme old age, disease, whether of body or mind, or any other cause of the same kind.
Explanation. –– A lunatic is not incompetent to testify, unless he is prevented by his lunacy from understanding the questions put to him and giving rational answers to them.
Bharatiya Sakshya Adhiniyam, 2023
Section 124 Who may testify
All persons shall be competent to testify unless the Court considers that they are prevented from understanding the questions put to them, or from giving rational answers to those questions, by tender years, extreme old age, disease, whether of body or mind, or any other cause of the same kind.
Explanation.—A person of unsound mind is not incompetent to testify, unless he is prevented by his unsoundness of mind from understanding the questions put to him and giving rational answers to them.
The texts are India Code’s. The amendment markers and footnotes of the official print are left out, so the old section reads as it stood when it was repealed. The PDFs linked below carry the full history.