Merge pull request #166 from aiken-lang/some-interesting-test-cases

Include generics to get test cases working
This commit is contained in:
Matthias Benkort
2022-12-15 02:07:05 +01:00
committed by GitHub
46 changed files with 2760 additions and 1332 deletions

View File

@@ -11,6 +11,10 @@ pub struct Args {
#[clap(short, long)]
skip_tests: bool,
/// When enabled, also pretty-print test UPLC on failure
#[clap(long)]
debug: bool,
/// Only run tests if their path + name match the given string
#[clap(short, long)]
match_tests: Option<String>,
@@ -20,8 +24,11 @@ pub fn exec(
Args {
directory,
skip_tests,
debug,
match_tests,
}: Args,
) -> miette::Result<()> {
crate::with_project(directory, |p| p.check(skip_tests, match_tests.clone()))
crate::with_project(directory, |p| {
p.check(skip_tests, match_tests.clone(), debug)
})
}