aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_relational_engine.ml
blob: 69a7df2c84b4cec141636fb8e44ced6bb4c11ab2 (plain) (blame)
1
2
3
4
5
6
7
8
let%test _ =
  let open Relational_engine.Disk.Executor in
  let stream: history = [{state = _EMPTY_SHA_HASH_; files = StringMap.empty}] in
  let locations: locations = StringMap.empty in
  let (new_commit, _) = Result.get_ok @@ write (List.hd stream) locations ~filename:"trash" @@ Bytes.of_string "abc" in
  let expected_state_hash = "bca39cc55b19274133ce57d0bea1ff794589f025d4bcf670c44d5d2811837830" in
  new_commit.state = expected_state_hash