aboutsummaryrefslogtreecommitdiff
path: root/test/minmax.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-24 16:13:23 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-24 16:13:23 -0500
commit0e10313d64f54dd587ebbcd5f413bd999333c911 (patch)
tree16a07c4b01467d59807611b23f91f9eb125959e2 /test/minmax.tm
parent6ecf6a272446af04f3affd354520d21127a5b952 (diff)
Switch `NaN` to be identical to the null value
Diffstat (limited to 'test/minmax.tm')
-rw-r--r--test/minmax.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/minmax.tm b/test/minmax.tm
index a5dd984e..3d11f8e5 100644
--- a/test/minmax.tm
+++ b/test/minmax.tm
@@ -1,7 +1,7 @@
struct Foo(x:Int, y:Int):
func len(f:Foo->Num):
- return Num.sqrt(f.x*f.x + f.y*f.y)
+ return Num.sqrt(f.x*f.x + f.y*f.y)!
func main():
>> 3 _min_ 5