chore: move the pure-stage simulation under a feature in order to avoid a rand dependency in production
      
        
    
  Signed-off-by: etorreborre <[email protected]>
Signed-off-by: etorreborre <[email protected]>
Signed-off-by: KtorZ <[email protected]>
- Avoid having paths to tests referenced in two places (one in build.rs and the other in evaluate_ledger_states) - Moving paths to build.rs allows to remove the 'TestContext' wrapper - Use fully qualified test_case import in the generate case, to avoid the awkward unused import in the evaluate_ledger_state module. - Bubble the 'Result' from import_vector up to the conformance test case to get nicer errors and avoid unecessary unwraps. - Switch names 'evaluate_vector' and 'import_vector'; since the logic is actually swapped. Signed-off-by: KtorZ <[email protected]>
Editors should be configured to run `cargo clippy` on save. Or at the very least, install pre-push hooks to check for `cargo clippy-amaru`. Signed-off-by: KtorZ <[email protected]>
Signed-off-by: KtorZ <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: KtorZ <[email protected]>
Signed-off-by: yHSJ <[email protected]> Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
Signed-off-by: ruko <[email protected]>
- Avoid having paths to tests referenced in two places (one in build.rs and the other in evaluate_ledger_states) - Moving paths to build.rs allows to remove the 'TestContext' wrapper - Use fully qualified test_case import in the generate case, to avoid the awkward unused import in the evaluate_ledger_state module. - Bubble the 'Result' from import_vector up to the conformance test case to get nicer errors and avoid unecessary unwraps. - Switch names 'evaluate_vector' and 'import_vector'; since the logic is actually swapped. Signed-off-by: KtorZ <[email protected]>
Signed-off-by: KtorZ <[email protected]>
Signed-off-by: KtorZ <[email protected]>
Signed-off-by: KtorZ <[email protected]>
Editors should be configured to run `cargo clippy` on save. Or at the very least, install pre-push hooks to check for `cargo clippy-amaru`. Signed-off-by: KtorZ <[email protected]>
Signed-off-by: etorreborre <[email protected]>
Signed-off-by: etorreborre <[email protected]>