Merge pull request #166 from aiken-lang/some-interesting-test-cases
Include generics to get test cases working
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user