diff --git a/lib/simpletest/testmoodlelib.php b/lib/simpletest/testmoodlelib.php index 7b250d15410..b3cab058c58 100644 --- a/lib/simpletest/testmoodlelib.php +++ b/lib/simpletest/testmoodlelib.php @@ -380,6 +380,10 @@ class moodlelib_test extends UnitTestCase { $text = "

standard 'break-out' sub groups in TGs?

 <<There are several"; $this->assertEqual("

standard 'break-out' sub groups in ...

", shorten_text($text, 43)); + + $text = "

123456789

";//a string with no convenient breaks + $this->assertEqual("

12345...

", + shorten_text($text, 8)); } }