fixed broken test

test added for PY-1083
This commit is contained in:
Dmitry Trofimov
2010-06-18 21:44:22 +04:00
parent 3a16b51911
commit 9ac3cbadf4
@@ -115,7 +115,7 @@ public class PyParameterListImpl extends PyBaseElementImpl<PyParameterListStub>
if (nextParameter.isKeywordContainer() || nextParameter.isPositionalContainer()) {
++i;
}
if (nextParameter.isKeywordContainer() && j<anotherParametersLength && anotherParameters[j] instanceof PyNamedParameter) {
while (nextParameter.isKeywordContainer() && j<anotherParametersLength && anotherParameters[j].hasDefaultValue()) {
j++;
}
}
@@ -127,7 +127,7 @@ public class PyParameterListImpl extends PyBaseElementImpl<PyParameterListStub>
if (nextParameter.isKeywordContainer() || nextParameter.isPositionalContainer()) {
++j;
}
if (nextParameter.isKeywordContainer() && i<parametersLength && parameters[i] instanceof PyNamedParameter) {
while (nextParameter.isKeywordContainer() && i<parametersLength && parameters[i].hasDefaultValue()) {
i++;
}
}