diff options
Diffstat (limited to 'test/unit/evaluators')
| -rw-r--r-- | test/unit/evaluators/FOL.ml | 6 | ||||
| -rw-r--r-- | test/unit/evaluators/Lambda.ml | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/test/unit/evaluators/FOL.ml b/test/unit/evaluators/FOL.ml index cf8aedb..9cfeb84 100644 --- a/test/unit/evaluators/FOL.ml +++ b/test/unit/evaluators/FOL.ml @@ -6,9 +6,6 @@ module Make (S : Abstract.Storage.STORAGE) (C : Helpers.Storage.CONFIGURATOR) = module H = Helpers.Storage.Make (S) (C) module SR = Rnt.Kernel.SubstantialRelation.Make (S) - let hash s = - Concepts.Blob.blob_of_bytes (Bytes.of_string s) |> Concepts.Hash.hash_of_blob - let alaric = { Concepts.Tuple.type_ = "employee"; attributes = @@ -28,7 +25,8 @@ module Make (S : Abstract.Storage.STORAGE) (C : Helpers.Storage.CONFIGURATOR) = begin let open Utilities.Result in let* tx = S.start conn in - let* relation = SR.empty tx ~schematics:(hash "schema") () in + let* schematics = H.store_schema tx ["name"] in + let* relation = SR.empty tx ~schematics () in let* relation = SR.assert_tuple tx relation alaric in let* () = S.commit tx in let* employee = SR.wrap conn relation in diff --git a/test/unit/evaluators/Lambda.ml b/test/unit/evaluators/Lambda.ml index b30fe33..5866411 100644 --- a/test/unit/evaluators/Lambda.ml +++ b/test/unit/evaluators/Lambda.ml @@ -6,9 +6,6 @@ module Make (S : Abstract.Storage.STORAGE) (C : Helpers.Storage.CONFIGURATOR) = module H = Helpers.Storage.Make (S) (C) module SR = Rnt.Kernel.SubstantialRelation.Make (S) - let hash s = - Concepts.Blob.blob_of_bytes (Bytes.of_string s) |> Concepts.Hash.hash_of_blob - let datum = { Concepts.Tuple.type_ = "noun"; attributes = @@ -36,8 +33,9 @@ module Make (S : Abstract.Storage.STORAGE) (C : Helpers.Storage.CONFIGURATOR) = let evaluate conn term = let open Utilities.Result in let* tx = S.start conn in + let* schematics = H.store_schema tx ["lemma"] in let singleton tuple = - let* relation = SR.empty tx ~schematics:(hash "schema") () in + let* relation = SR.empty tx ~schematics () in SR.assert_tuple tx relation tuple in let* noun = singleton datum in |
