1 # This file is part of NIT ( http://www.nitlanguage.org ).
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
17 fun get_float
(f
: Float): Float do return f
18 fun get_object
(f
: Float): Object do return f
20 var fp
: Float = get_float
(0.0)
21 var fm
: Float = get_float
(-0.0)
22 var f1
: Float = get_float
(1.0)
23 var ofp
: Object = get_float
(0.0)
24 var ofm
: Object = get_float
(-0.0)
25 var of1
: Object = get_float
(1.0)
26 var op
: Object = get_object
(0.0)
27 var om
: Object = get_object
(-0.0)
28 var o1
: Object = get_object
(1.0)
45 (not fp
is of1
).output
55 (not fm
is of1
).output
62 (not ofp
is f1
).output
65 (not ofp
is of1
).output
68 (not ofp
is o1
).output
72 (not ofm
is f1
).output
75 (not ofm
is of1
).output
78 (not ofm
is o1
).output
85 (not op
is of1
).output
95 (not om
is of1
).output