Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

[tx] Convert Clojure tests into Rust tests #188

@ncalexan

Description

@ncalexan

The Clojure implementation has an extensive correctness test suite. Most of the tests look like:

  1. install test schema;
  2. transact a few assertions;
  3. assert that datoms, transactions, or fulltext values table has following contents/new rows.
    Since our SQL schema is identical to the Clojure implementation, it should be easy to move the input and output data into .edn files and write a generic test harness to do those steps.

It might be finicky to get the transaction IDs, timestamps, and other ephemeral data correct. I wonder if we can rewrite :db/tx and :db/txInstant in controlled locations to get what we want? (This could require reader syntax like #value [:db/tx] or similar.)

Metadata

Metadata

Assignees

Labels

A-transactIssues or requests in the transactor.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions