This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,16 @@
open Stdune
open Dune_tests_common
let () = init ()
(* Check that [of_alist_multi] groups elements in the right order *)
let%expect_test _ =
let open Dyn in
String.Map.of_list_multi [ "a", 1; "b", 1; "a", 2; "a", 3; "b", 2 ]
|> String.Map.to_dyn (list int)
|> print_dyn;
[%expect
{|
map { "a" : [ 1; 2; 3 ]; "b" : [ 1; 2 ] }
|}]
;;