Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 754 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 754 Bytes

Rust Compatibility Tests

This directory contains tests that verify Zorsh's compatibility with Rust's Borsh implementation. These tests ensure that Zorsh correctly serializes and deserializes data in a format that is compatible with Rust's Borsh library.

Running the Tests

To run the Rust compatibility tests:

  1. Make sure you have Rust and Cargo installed on your system
  2. Navigate to the rust/borsh_test directory
  3. Generate test data:
    cargo test -- --ignored
  4. Return to the project root and run the TypeScript tests:
    npm test

The tests in complex-serialization.test.ts verify that complex data structures are correctly serialized and deserialized between TypeScript and Rust implementations.