File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public ComparisonException(BilingualString message) : base(message)
1919 public static ComparisonException NotSupported ( )
2020 {
2121 return new ComparisonException ( new BilingualString (
22- $ "Сравнение на больше/меньше для типа не поддерживается",
22+ $ "Сравнение на больше/меньше для данного типа не поддерживается",
2323 $ "Greater-than/Less-than comparison operations are not supported") ) ;
2424 }
2525
Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ public override int CompareTo(BslValue other)
3131 typeOfOther ??= GetType ( ) . ToString ( ) ;
3232 }
3333
34- throw ComparisonException . NotSupported ( typeOfThis , typeOfOther ) ;
34+ if ( typeOfThis == typeOfOther )
35+ throw ComparisonException . NotSupported ( typeOfThis ) ;
36+ else
37+ throw ComparisonException . NotSupported ( typeOfThis , typeOfOther ) ;
3538 }
3639
3740 public override bool Equals ( BslValue other ) => false ;
Original file line number Diff line number Diff line change 683683 "Рез = (ХешФункция > СтатусСообщения);" ,
684684 Ошибка, "Для перечислений разных типов" );
685685
686+ ОшибкаДляТип = "Сравнение на больше/меньше для типа 'Тип' не поддерживается" ;
686687 юТест.ПроверитьКодСОшибкой(
687688 "Рез = (ТипЗнч(истина) > ТипЗнч(0));" ,
688- Ошибка , "Для значений типа 'Тип'" );
689+ ОшибкаДляТип , "Для значений типа 'Тип'" );
689690
690691 юТест.ПроверитьКодСОшибкой(
691692 "Массив = Новый Массив(1);
You can’t perform that action at this time.
0 commit comments