Improved test to actually check ABI

This commit is contained in:
Johann 2022-03-09 21:22:43 -07:00
parent 7624520ce9
commit 4e07de2c07
1 changed files with 1 additions and 1 deletions

View File

@ -101,13 +101,13 @@ fn can_compile_yul_sample() {
let compiled = project.compile().unwrap();
assert!(compiled.find("Dapp").is_some());
assert!(compiled.find("SimpleStore").is_some());
assert!(compiled.find("SimpleStore").unwrap().abi.is_some());
assert!(!compiled.has_compiler_errors());
// nothing to compile
let compiled = project.compile().unwrap();
assert!(compiled.find("Dapp").is_some());
assert!(compiled.find("SimpleStore").is_some());
println!{"{:?}", compiled};
assert!(compiled.is_unchanged());
let cache = SolFilesCache::read(project.cache_path()).unwrap();