revert RealRange.IsEmpty
This commit is contained in:
parent
c07c5d712a
commit
71535a9af1
|
|
@ -8,6 +8,6 @@ Assert( ('b'..'b').IsEmpty = false );
|
|||
Assert( ('b'..'c').IsEmpty = false );
|
||||
Assert( ('c'..'b').IsEmpty = true );
|
||||
|
||||
Assert( (2.0..2).IsEmpty = true );
|
||||
Assert( (2.0..2).IsEmpty = false );
|
||||
Assert( (2.0..3).IsEmpty = false );
|
||||
Assert( (3.0..2).IsEmpty = true );
|
||||
|
|
@ -18,4 +18,6 @@ Assert( 1 not in rr );
|
|||
Assert( 2 in rr );
|
||||
Assert( 2.5 in rr );
|
||||
Assert( 3 in rr );
|
||||
Assert( 4 not in rr );
|
||||
Assert( 4 not in rr );
|
||||
|
||||
Assert( 2 in 2.0..2 );
|
||||
|
|
@ -786,7 +786,7 @@ type
|
|||
end;
|
||||
|
||||
/// Возвращает True если диапазон пуст
|
||||
function IsEmpty: boolean := l>=h;
|
||||
function IsEmpty: boolean := l>h;
|
||||
|
||||
function ToString: string; override := $'{l}..{h}';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue