aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorarie <arie@alleycat.cc>2021-05-27 12:10:05 +0200
committerarie <arie@alleycat.cc>2021-06-28 21:02:39 +0200
commit8c9bc8478842a393f85259f1350bf04711c190fa (patch)
tree2cb8bf74dd07fbd38e8353075cc0e20c3136c146 /test
parent253809af6f90cc86bba9e0510b524918c1c4d01e (diff)
Rdf_turtle test
forgot to add these files in the last commit. See previous commit for comments.
Diffstat (limited to 'test')
-rw-r--r--test/alcotest/dune3
-rw-r--r--test/alcotest/rdf_alcotest.ml21
-rw-r--r--test/alcotest/rdf_alcotest.mli14
3 files changed, 36 insertions, 2 deletions
diff --git a/test/alcotest/dune b/test/alcotest/dune
index 53a1268..3462348 100644
--- a/test/alcotest/dune
+++ b/test/alcotest/dune
@@ -1,4 +1,3 @@
(library
- (name rdf_alcotest)
(public_name rdf_alcotest)
- (libraries rdf alcotest))
+ (libraries rdf rdf_turtle alcotest))
diff --git a/test/alcotest/rdf_alcotest.ml b/test/alcotest/rdf_alcotest.ml
index 9e510eb..7144f27 100644
--- a/test/alcotest/rdf_alcotest.ml
+++ b/test/alcotest/rdf_alcotest.ml
@@ -24,3 +24,24 @@ let triple =
let graph =
Alcotest.testable Rdf.Graph.pp Rdf.Graph.equal
+
+let ast_iriref =
+ Alcotest.testable Rdf_turtle.AST.Iriref.pp Rdf_turtle.AST.Iriref.equal
+
+let ast_language =
+ Alcotest.testable Rdf_turtle.AST.Language.pp Rdf_turtle.AST.Language.equal
+
+let ast_prefixed_name =
+ Alcotest.testable Rdf_turtle.AST.Prefixed_name.pp Rdf_turtle.AST.Prefixed_name.equal
+
+let ast_blank_node =
+ Alcotest.testable Rdf_turtle.AST.Blank_node.pp Rdf_turtle.AST.Blank_node.equal
+
+let ast_iri =
+ Alcotest.testable Rdf_turtle.AST.Iri.pp Rdf_turtle.AST.Iri.equal
+
+let ast_literal =
+ Alcotest.testable Rdf_turtle.AST.Literal.pp Rdf_turtle.AST.Literal.equal
+
+let ast_predicate =
+ Alcotest.testable Rdf_turtle.AST.Predicate.pp Rdf_turtle.AST.Predicate.equal
diff --git a/test/alcotest/rdf_alcotest.mli b/test/alcotest/rdf_alcotest.mli
index dca2170..144c5ec 100644
--- a/test/alcotest/rdf_alcotest.mli
+++ b/test/alcotest/rdf_alcotest.mli
@@ -17,3 +17,17 @@ val term : Rdf.Term.t Alcotest.testable
val triple : Rdf.Triple.t Alcotest.testable
val graph : Rdf.Graph.t Alcotest.testable
+
+val ast_iriref : Rdf_turtle.AST.Iriref.t Alcotest.testable
+
+val ast_language : Rdf_turtle.AST.Language.t Alcotest.testable
+
+val ast_prefixed_name : Rdf_turtle.AST.Prefixed_name.t Alcotest.testable
+
+val ast_blank_node : Rdf_turtle.AST.Blank_node.t Alcotest.testable
+
+val ast_iri: Rdf_turtle.AST.Iri.t Alcotest.testable
+
+val ast_literal : Rdf_turtle.AST.Literal.t Alcotest.testable
+
+val ast_predicate : Rdf_turtle.AST.Predicate.t Alcotest.testable