This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathinfinity.livecodescript
More file actions
56 lines (43 loc) · 1.91 KB
/
infinity.livecodescript
File metadata and controls
56 lines (43 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
script "CoreMathInfinity"
/*
Copyright (C) 2018 LiveCode Ltd.
This file is part of LiveCode.
LiveCode is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License v3 as published by the Free
Software Foundation.
LiveCode is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
command _TestInfinityDivOperator
get inf div 1 is inf
end _TestInfinityDivOperator
on TestInfinityDivOperator
TestAssertBrokenThrow "Infinity is unchanged by div operator", "_TestInfinityDivOperator", "Bug 14316", \
the long id of me, "EE_DIV_RANGE"
end TestInfinityDivOperator
on TestInfinitySubtractOperator
TestAssert "Infinity is unchanged by subtract operator", inf - 1 is inf
end TestInfinitySubtractOperator
on TestInfinityOverOperator
TestAssert "Infinity is unchanged by over operator", inf / 2 is inf
end TestInfinityOverOperator
on TestInfinityAddOperator
TestAssert "Infinity is unchanged by add operator", inf + 1 is inf
end TestInfinityAddOperator
command _TestInfinityMultiplyOperator
get inf * 2 is inf
end _TestInfinityMultiplyOperator
on TestInfinityMultiplyOperator
TestAssertBrokenThrow "Infinity is unchanged by multiply operator", "_TestInfinityMultiplyOperator", "Bug 14316", \
the long id of me, "EE_MULTIPLY_RANGE"
end TestInfinityMultiplyOperator
command _TestInfinityPowerOperator
get inf ^ 2 is inf
end _TestInfinityPowerOperator
on TestInfinityPowerOperator
TestAssertBrokenThrow "Infinity is unchanged by power operator", "_TestInfinityPowerOperator", "Bug 14316", \
the long id of me, "EE_POW_RANGE"
end TestInfinityPowerOperator