s/_or_equal_than/_than_or_equal/g
This commit is contained in:
parent
464b1c511e
commit
c49e79ae1c
2 changed files with 6 additions and 6 deletions
|
@ -16,7 +16,7 @@ module Rpl
|
|||
end
|
||||
|
||||
# binary operator >=
|
||||
def greater_or_equal_than( stack )
|
||||
def greater_than_or_equal( stack, dictionary )
|
||||
stack, args = Rpl::Lang::Core.stack_extract( stack, %i[any any] )
|
||||
|
||||
stack << { type: :boolean,
|
||||
|
@ -36,7 +36,7 @@ module Rpl
|
|||
end
|
||||
|
||||
# binary operator <=
|
||||
def less_or_equal_than( stack, dictionary )
|
||||
def less_than_or_equal( stack, dictionary )
|
||||
stack, args = Rpl::Lang::Core.stack_extract( stack, %i[any any] )
|
||||
|
||||
stack << { type: :boolean,
|
||||
|
|
|
@ -94,11 +94,11 @@ module Rpl
|
|||
|
||||
# TEST
|
||||
add( '>', proc { |stack, dictionary| Rpl::Lang::Core.greater_than( stack, dictionary ) } )
|
||||
add( '>=', proc { |stack, dictionary| Rpl::Lang::Core.greater_or_equal_than( stack, dictionary ) } )
|
||||
add( '≥', proc { |stack, dictionary| Rpl::Lang::Core.greater_or_equal_than( stack, dictionary ) } ) # alias
|
||||
add( '>=', proc { |stack, dictionary| Rpl::Lang::Core.greater_than_or_equal( stack, dictionary ) } )
|
||||
add( '≥', proc { |stack, dictionary| Rpl::Lang::Core.greater_than_or_equal( stack, dictionary ) } ) # alias
|
||||
add( '<', proc { |stack, dictionary| Rpl::Lang::Core.less_than( stack, dictionary ) } )
|
||||
add( '<=', proc { |stack, dictionary| Rpl::Lang::Core.less_or_equal_than( stack, dictionary ) } )
|
||||
add( '≤', proc { |stack, dictionary| Rpl::Lang::Core.less_or_equal_than( stack, dictionary ) } ) # alias
|
||||
add( '<=', proc { |stack, dictionary| Rpl::Lang::Core.less_than_or_equal( stack, dictionary ) } )
|
||||
add( '≤', proc { |stack, dictionary| Rpl::Lang::Core.less_than_or_equal( stack, dictionary ) } ) # alias
|
||||
add( '!=', proc { |stack, dictionary| Rpl::Lang::Core.different( stack, dictionary ) } )
|
||||
add( '≠', proc { |stack, dictionary| Rpl::Lang::Core.different( stack, dictionary ) } ) # alias
|
||||
add( '==', proc { |stack, dictionary| Rpl::Lang::Core.same( stack, dictionary ) } ) # alias
|
||||
|
|
Loading…
Reference in a new issue