diff options
author | Eduardo Julian | 2016-12-25 13:29:42 -0400 |
---|---|---|
committer | Eduardo Julian | 2016-12-25 13:29:42 -0400 |
commit | 83140c8ff4e91d622da1c549daad22f7c368bc8f (patch) | |
tree | d47143ae745fbf6f2bc3a6fe31eb6174388b585b /stdlib/source | |
parent | 70cc416bbf70fd7585ee9f374d6f7e5b7609d082 (diff) |
- Fixed a bug where the Frac max value was getting confused with the min value.
- Updated the lux/data/number tests.
Diffstat (limited to '')
-rw-r--r-- | stdlib/source/lux/data/number.lux | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/source/lux/data/number.lux b/stdlib/source/lux/data/number.lux index 8b3081d14..7d33da387 100644 --- a/stdlib/source/lux/data/number.lux +++ b/stdlib/source/lux/data/number.lux @@ -107,10 +107,10 @@ (def: top <top>) (def: bottom <bottom>))] - [ Nat (_lux_proc ["nat" "max-value"] []) (_lux_proc ["nat" "min-value"] [])] - [ Int (_lux_proc ["jvm" "getstatic:java.lang.Long:MAX_VALUE"] []) (_lux_proc ["jvm" "getstatic:java.lang.Long:MIN_VALUE"] [])] - [Real (_lux_proc ["jvm" "getstatic:java.lang.Double:MAX_VALUE"] []) (_lux_proc ["jvm" "getstatic:java.lang.Double:MIN_VALUE"] [])] - [Frac (_lux_proc ["frac" "max-value"] []) (_lux_proc ["frac" "max-value"] [])]) + [ Nat (_lux_proc ["nat" "max-value"] []) (_lux_proc ["nat" "min-value"] [])] + [ Int (_lux_proc ["jvm" "getstatic:java.lang.Long:MAX_VALUE"] []) (_lux_proc ["jvm" "getstatic:java.lang.Long:MIN_VALUE"] [])] + [Real (_lux_proc ["jvm" "getstatic:java.lang.Double:MAX_VALUE"] []) (_lux_proc ["jvm" "getstatic:java.lang.Double:MIN_VALUE"] [])] + [Frac (_lux_proc ["frac" "max-value"] []) (_lux_proc ["frac" "min-value"] [])]) (do-template [<name> <type> <unit> <append>] [(struct: #export <name> (Monoid <type>) |