Permalink
Commits on Mar 7, 2012
  1. Import of missing signatures from `batStd.mli` into `batPervasives.mli`

    mjambon committed Mar 7, 2012
    -----------------------------------------------------------------------
    
    The following used to be invisible to ocamldoc. They still are, using
    (**/**):
    
    ```ocaml
    val input_lines : Pervasives.in_channel -> string BatEnum.t
    val input_chars : Pervasives.in_channel -> char BatEnum.t
    val input_list : Pervasives.in_channel -> string list
    val input_all : Pervasives.in_channel -> string
    ```
    
    The following two functions were added to `batPervasives.mli`
    with their original names. Their names however are not consistent
    with other functions of `BatPervasives`. One would expect `input_file`
    and `output_file` to operate
    on channels (`BatIO.input`/`output`) rather than file names:
    
    ```ocaml
    val input_file : ?bin:bool -> string -> string
    val output_file : filename:string -> text:string -> unit
    ```
    
    `print` became `print_any` because there was already a (deprecated)
    function named `print`. Also, its type has changed:
    
    ```ocaml
    (* before, in BatStd: *)
    val print : 'a -> unit
    
    (* after, in BatPervasives: *)
    val print_any : 'b BatIO.output -> 'a -> unit
    ```
    
    I also added the following signatures that hadn't been copied from
    `batStd.mli`:
    
    ```ocaml
    val forever : ('a -> 'b) -> 'a -> unit
    val ignore_exceptions : ('a -> 'b) -> 'a -> unit
    val ignore_ok : ('a, exn) result -> unit
    val ok : ('a, exn) result -> 'a
    val wrap : ('a -> 'b) -> 'a -> ('b, exn) result
    ```
Commits on Mar 5, 2012
  1. test_file: deleting files when testing is done

    sliquister committed Mar 5, 2012
    instead of when the program exits, because when the program segfaults
    it leaks 10000 files, and you quickly reach hundreds of thousands of
    garbage files
Commits on Mar 4, 2012
  1. global: ignoring everything for code coverage

    sliquister committed Mar 4, 2012
    because, well, I fail to see how anything could be wrong in here
  2. global: reindent

    sliquister committed Mar 4, 2012
  3. float: 100% coverage

    sliquister committed Mar 4, 2012
  4. test_sequence: some more tests of dynarray

    sliquister committed Mar 4, 2012
    80% coverage now
Commits on Mar 3, 2012
  1. test_container: testing of_enum with a non countable enum

    sliquister committed Mar 3, 2012
    because several containers have different behaviours depending
    on whether the count is known in advance or not
  2. dynarray: cleanup

    sliquister committed Mar 3, 2012
  3. dllist: indent

    sliquister committed Mar 3, 2012
  4. buffer: 100% overage

    sliquister committed Mar 3, 2012
  5. digest: 100% coverage

    sliquister committed Mar 3, 2012
  6. digest: indent

    sliquister committed Mar 3, 2012
Commits on Feb 26, 2012
  1. deque: 100% coverage

    sliquister committed Feb 26, 2012
Commits on Feb 25, 2012
  1. complex: 100% coverage

    sliquister committed Feb 25, 2012
    + bug fix in modulo that would raise an exception too early
    + rewrite of of_string that was completely broken
    + defining an efficient compare
    + defining an equal function
    + adding a little documentation
    + adding spaces in to_string because 1+ i2 is not even remotely as readable
      1 + i 2
Commits on Feb 24, 2012
  1. array: the cloning operation of the enumerations was _very_ slow

    sliquister committed Feb 24, 2012
    why would you copy a structure, especially when the specification
    explicitely allows you to avoid that??
    
    it makes test_container twice as fast
    (because it clones a lot)
  2. bigarray: adding more tests

    sliquister committed Feb 24, 2012
  3. bool: 100% coverage

    sliquister committed Feb 24, 2012
  4. more tests of sequences

    sliquister committed Feb 24, 2012
Commits on Feb 23, 2012
  1. removing many warnings

    sliquister committed Feb 23, 2012
  2. testing: adding a generic test for iterations on containers

    sliquister committed Feb 23, 2012
    + bug fix in dynarray
  3. Move lots of functionality out of BatInnerIO - Printf moves to BatPri…

    thelema committed Feb 23, 2012
    …ntf, and buffer functions move to BatBuffer
  4. queue: reindent

    sliquister committed Feb 23, 2012
  5. queue: 100% coverage

    sliquister committed Feb 23, 2012