diff --git a/lib/simpletest/testmoodlelib.php b/lib/simpletest/testmoodlelib.php index a03106b4b3e..56e0543010f 100644 --- a/lib/simpletest/testmoodlelib.php +++ b/lib/simpletest/testmoodlelib.php @@ -256,6 +256,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)); } }