Crate specjam

Source
Expand description

The specjam library

§Specjam

jam-test-vectors rust wrapper.

For avoiding the memory overload, we now wraps the jam-test-vectors repo and generates the test vectors on demand, all tests are in the same interface.

pub struct Test {
  input: String,
  output: String,
  scale: Option<Scale>,
  section: Section,
  name: String,
}

For using it in your project,

use specjam::Registry;

fn my_test() {
  for test in Registry("jamtestvectors").accumulate().iter() {
    println!("{}", test.name);
  }
}

§LICENSE

GPL-3.0

Structs§

Entry
A test vector registry entry
Registry
The test vector registry
Test
A general test vector

Enums§

Scale
The scale of the test vectors
Section
A section of the test vectors
Trace
The traces section