| Línea 34... |
Línea 34... |
| 34 |
*
|
34 |
*
|
| 35 |
* @package qtype_shortanswer
|
35 |
* @package qtype_shortanswer
|
| 36 |
* @copyright 2008 The Open University
|
36 |
* @copyright 2008 The Open University
|
| 37 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
37 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| 38 |
*/
|
38 |
*/
|
| 39 |
class question_test extends \advanced_testcase {
|
39 |
final class question_test extends \advanced_testcase {
|
| 40 |
public function test_compare_string_with_wildcard(): void {
|
40 |
public function test_compare_string_with_wildcard(): void {
|
| 41 |
// Test case sensitive literal matches.
|
41 |
// Test case sensitive literal matches.
|
| 42 |
$this->assertTrue((bool)qtype_shortanswer_question::compare_string_with_wildcard(
|
42 |
$this->assertTrue((bool)qtype_shortanswer_question::compare_string_with_wildcard(
|
| 43 |
'Frog', 'Frog', false));
|
43 |
'Frog', 'Frog', false));
|
| 44 |
$this->assertFalse((bool)qtype_shortanswer_question::compare_string_with_wildcard(
|
44 |
$this->assertFalse((bool)qtype_shortanswer_question::compare_string_with_wildcard(
|