Re: clojure.spec gen-testing VS NaN

2018-03-07 Thread 'Dirk Wetzel' via Clojure
By definition NaN never equals any other number, including NaN itself, so isn't it a perfectly valid scenario to generate double NaNs? (Note: I've not used spec yet, so correct me if I'm completely off track) Am Montag, 7. November 2016 23:07:14 UTC+1 schrieb Alex Miller: > > I think it would be

Re: How to visualise relations, bahavior and so on in functional programming ?

2018-03-07 Thread Daniel
system-vis is a start - it will inform you about the order of _state_ setup and teardown, and by virtue of that, dependencies. On Sunday, March 4, 2018 at 10:28:41 AM UTC-6, Dmitry Fomin wrote: > > Hello from future! :) > > I just wonder have you manag

Re: How to restrict the number of test with stest/check

2018-03-07 Thread Chris Shellenbarger
Alex, When I attempt to specify :num-tests, ie: (stest/check `do-something {:clojure.spec.test.check/opts {:num-tests 10}}) It usually seems to work, but sometimes I can see code executing far more than the number of tests I've specified. This appears to be correlated to when it finds a

Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-07 Thread numbch...@gmail.com
Java Version: java version "9.0.4" Java(TM) SE Runtime Environment (build 9.0.4+11) Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode) System: Arch Linux user=> (require '[clj-memory-meter.core :as mm]) CompilerException java.lang.reflect.InvocationTargetException, compiling:(clj_m

Re: [ANN] clj-memory meter – measure the memory used by arbitrary objects

2018-03-07 Thread Alexander Yakushev
Looks like it's because of JDK9. I created a Github issue, let's take it there: https://github.com/clojure-goes-fast/clj-memory-meter/issues/1 On Wednesday, March 7, 2018 at 5:49:07 PM UTC+2, 路Ricardo M. wrote: > > Java Version: > java version "9.0.4" > Java(TM) SE Runtime Environment (build 9.0.

Re: How to restrict the number of test with stest/check

2018-03-07 Thread Alex Miller
Yes, check will attempt to shrink when an error is found. On Wednesday, March 7, 2018 at 9:43:32 AM UTC-6, Chris Shellenbarger wrote: > > Alex, > When I attempt to specify :num-tests, ie: > > (stest/check `do-something {:clojure.spec.test.check/opts {:num-tests 10}}) > > It usually seems to