mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Adding more cases.
This commit is contained in:
parent
e3b4c16fa0
commit
82a03fc995
@ -77,6 +77,34 @@ actualmatch = string.match(pattern);
|
||||
expectedmatch = Array('');
|
||||
addThis();
|
||||
|
||||
pattern = /(a|)/;
|
||||
status = inSection(4);
|
||||
string = 'a';
|
||||
actualmatch = string.match(pattern);
|
||||
expectedmatch = Array('a', 'a');
|
||||
addThis();
|
||||
|
||||
pattern = /(a||)/;
|
||||
status = inSection(5);
|
||||
string = 'a';
|
||||
actualmatch = string.match(pattern);
|
||||
expectedmatch = Array('a', 'a');
|
||||
addThis();
|
||||
|
||||
pattern = /(|a)/;
|
||||
status = inSection(6);
|
||||
string = 'a';
|
||||
actualmatch = string.match(pattern);
|
||||
expectedmatch = Array('', '');
|
||||
addThis();
|
||||
|
||||
pattern = /(|a|)/;
|
||||
status = inSection(7);
|
||||
string = 'a';
|
||||
actualmatch = string.match(pattern);
|
||||
expectedmatch = Array('', '');
|
||||
addThis();
|
||||
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
@ -84,6 +112,7 @@ test();
|
||||
//-------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
function addThis()
|
||||
{
|
||||
statusmessages[i] = status;
|
||||
|
Loading…
Reference in New Issue
Block a user