companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<d_bot> <NULL> They are describing all forms of function definitions
<quartz> Uhh
rgrinberg has joined #ocaml
quartz has quit [Ping timeout: 246 seconds]
Haudegen has quit [Ping timeout: 256 seconds]
gerard` has joined #ocaml
quartz has joined #ocaml
gerard` has quit [Remote host closed the connection]
vicfred has quit [Quit: Leaving]
spip has quit [Ping timeout: 246 seconds]
bobo has joined #ocaml
<d_bot> <atlx> why when I run `dune exec test` nothing happens
<d_bot> <atlx> I'm using OUnit2
<d_bot> <atlx> everything builds fine, but when I do `dune exec test` nothing is printed
<d_bot> <atlx> nothing is printed
quartz has quit [Quit: WeeChat 3.5]
quartz has joined #ocaml
spip has joined #ocaml
bobo has quit [Ping timeout: 240 seconds]
quartz has quit [Quit: WeeChat 3.5]
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
gerard` has joined #ocaml
gerard` has quit [Remote host closed the connection]
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
<d_bot> <darrenldl> you need to fill in a `runtest` stanza i believe
vicfred has joined #ocaml
waleee has quit [Ping timeout: 240 seconds]
<d_bot> <atlx> this is what I have
<d_bot> <atlx> ```lisp
<d_bot> <atlx> (executable
<d_bot> <atlx> (name test)
<d_bot> <atlx> (libraries ounit2))
<d_bot> <atlx> ```
<d_bot> <atlx> How can I do the runtest thing? (I'm new to ocaml)
<d_bot> <atlx> I literally copied that from the ounit2 doc
<d_bot> <atlx> Also, I'm curious. Should I be using OUnit2 or built-in testing framework?
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shawnw has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
mbuf has joined #ocaml
<remexre> am I missing how to mutate existing contents of Buffer.t, or does it not provide that?
<d_bot> <sim642> `dune exec test.exe` should work I think
<d_bot> <sim642> Or if you change the dune `executable` stanza to `test`, then just `dune runtest`
<d_bot> <sim642> What do you mean by built in testing framework?
<d_bot> <atlx> Like ppx
<d_bot> <atlx> Thingy
<d_bot> <atlx> Inline tests
<d_bot> <sim642> I guess it's mostly personal preference. I've stayed with ounit to keep all the testing out of the actual implementation. Especially if some of the tests are longer than one liners and involve bigger inputs
<d_bot> <atlx> true
bartholin has joined #ocaml
ralu1 has quit [Quit: The Lounge - https://thelounge.chat]
ralu1 has joined #ocaml
dextaa has joined #ocaml
ralu1 has quit [Read error: Connection reset by peer]
ralu1 has joined #ocaml
<d_bot> <AdonisOrRafik Hammoutène> hello everyone , is anyone by any chance good with java networking please?
bartholin has quit [Ping timeout: 256 seconds]
bartholin has joined #ocaml
<d_bot> <orbitz> Do you have a specific question?
Anarchos has joined #ocaml
olle has joined #ocaml
wyrd has quit [Remote host closed the connection]
wyrd has joined #ocaml
jpds has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
bartholin has quit [Ping timeout: 256 seconds]
jpds has quit [Ping timeout: 240 seconds]
jpds has joined #ocaml
bartholin has joined #ocaml
Haudegen has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
bartholin has quit [Ping timeout: 248 seconds]
bartholin has joined #ocaml
wyrd has quit [Remote host closed the connection]
wyrd has joined #ocaml
spip has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
bartholin has quit [Ping timeout: 256 seconds]
shawnw has quit [Ping timeout: 256 seconds]
rgrinberg has joined #ocaml
quartz has joined #ocaml
Anarchos has joined #ocaml
bartholin has joined #ocaml
waleee has joined #ocaml
olle has quit [Ping timeout: 250 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
jpds has quit [Remote host closed the connection]
jpds has joined #ocaml
bartholin has quit [Ping timeout: 246 seconds]
kakadu has quit [Remote host closed the connection]
wingsorc has quit [Quit: Leaving]
mbuf has quit [Quit: Leaving]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
vicfred has quit [Quit: Leaving]
berberman has quit [Remote host closed the connection]
vicfred has joined #ocaml
berberman has joined #ocaml
bartholin has joined #ocaml
azimut has quit [Remote host closed the connection]
azimut has joined #ocaml
kaph has joined #ocaml
bartholin has quit [Ping timeout: 250 seconds]
kaph has quit [Ping timeout: 240 seconds]
bartholin has joined #ocaml
quartz has quit [Quit: WeeChat 3.5]
olle has joined #ocaml
bartholin has quit [Ping timeout: 246 seconds]
bartholin has joined #ocaml
brettgilio has joined #ocaml
quartz has joined #ocaml
vicfred has quit [Quit: Leaving]
xgqt has quit [Ping timeout: 256 seconds]
xgqt has joined #ocaml
<d_bot> <atlx> nope, I'm getting this error:
<d_bot> <atlx> also tried changing executable to test, no avail
<d_bot> <atlx> this is my folder structure
<d_bot> <KW78> test is linked to alias runtest (as per dune file) so `dune runtest` should do
kaph has joined #ocaml
<d_bot> <atlx> nothing
<d_bot> <atlx> this is what should be coming out :
<d_bot> <KW78> try to remove the rule stanza the run command (not visible) may be wrong
<d_bot> <KW78> or `dune runtest --verbose`
rgrinberg has joined #ocaml
<d_bot> <KW78> ok sorry it is already commented
<d_bot> <atlx> dune runtest --verbose prints out a bunch of config then final line is
<d_bot> <atlx> ```
<d_bot> <atlx> Promoting "_build/default/ocaml_lang.opam" to "ocaml_lang.opam"
<d_bot> <atlx> ```
<d_bot> <atlx> it also says `Running[0]: /home/atlx/.opam/4.13.1/bin/ocamlc.opt -config > /tmp/dune_65c1e1_output`
<d_bot> <atlx> i think it has to do with the folder structure
<d_bot> <atlx> it's as if the tests aren't detected
<d_bot> <atlx> they are built, and the test.exe is present on the _build folder, but it's not executing it for some reason
<d_bot> <atlx> here's what I mean
<d_bot> <sim642> Then `dune exec test/test.exe` should run that directly
<d_bot> <atlx> yep
<d_bot> <atlx> that works
<d_bot> <atlx> any method to get it to work like `dune exec test`
<d_bot> <sim642> I think runtest only reruns changed stuff
<d_bot> <atlx> placing it under the bin folder ?
<d_bot> <KW78> you structure looks fine, my test dune file is simply `(test
<d_bot> <KW78> (name main.ml))`
<d_bot> <atlx> hm
kaph has quit [Remote host closed the connection]
kaph has joined #ocaml
kaph has quit [Read error: Connection reset by peer]
kaph_ has joined #ocaml
kaph_ has quit [Ping timeout: 246 seconds]
wyrd has quit [Remote host closed the connection]
dextaa has quit [Ping timeout: 256 seconds]
wyrd has joined #ocaml
bartholin has quit [Ping timeout: 248 seconds]
kaph has joined #ocaml
bartholin has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
quartz has quit [Quit: WeeChat 3.5]
bartholin has quit [Quit: Leaving]
wyrd has quit [Ping timeout: 240 seconds]
wyrd has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olle has quit [Ping timeout: 246 seconds]
vicfred has joined #ocaml
vicfred has quit [Ping timeout: 246 seconds]
vicfred has joined #ocaml