test update
This commit is contained in:
parent
773f27e296
commit
5d4128a491
|
@ -100,11 +100,13 @@ fn can_compile_yul_sample() {
|
||||||
|
|
||||||
let compiled = project.compile().unwrap();
|
let compiled = project.compile().unwrap();
|
||||||
assert!(compiled.find("Dapp").is_some());
|
assert!(compiled.find("Dapp").is_some());
|
||||||
|
assert!(compiled.find("SimpleStore").is_some());
|
||||||
assert!(!compiled.has_compiler_errors());
|
assert!(!compiled.has_compiler_errors());
|
||||||
|
|
||||||
// nothing to compile
|
// nothing to compile
|
||||||
let compiled = project.compile().unwrap();
|
let compiled = project.compile().unwrap();
|
||||||
assert!(compiled.find("Dapp").is_some());
|
assert!(compiled.find("Dapp").is_some());
|
||||||
|
assert!(compiled.find("SimpleStore").is_some());
|
||||||
assert!(compiled.is_unchanged());
|
assert!(compiled.is_unchanged());
|
||||||
|
|
||||||
let cache = SolFilesCache::read(project.cache_path()).unwrap();
|
let cache = SolFilesCache::read(project.cache_path()).unwrap();
|
||||||
|
@ -113,12 +115,14 @@ fn can_compile_yul_sample() {
|
||||||
std::fs::remove_dir_all(&project.paths().artifacts).unwrap();
|
std::fs::remove_dir_all(&project.paths().artifacts).unwrap();
|
||||||
let compiled = project.compile().unwrap();
|
let compiled = project.compile().unwrap();
|
||||||
assert!(compiled.find("Dapp").is_some());
|
assert!(compiled.find("Dapp").is_some());
|
||||||
|
assert!(compiled.find("SimpleStore").is_some());
|
||||||
assert!(!compiled.is_unchanged());
|
assert!(!compiled.is_unchanged());
|
||||||
|
|
||||||
let updated_cache = SolFilesCache::read(project.cache_path()).unwrap();
|
let updated_cache = SolFilesCache::read(project.cache_path()).unwrap();
|
||||||
assert_eq!(cache, updated_cache);
|
assert_eq!(cache, updated_cache);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn can_compile_configured() {
|
fn can_compile_configured() {
|
||||||
let root = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("test-data/dapp-sample");
|
let root = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("test-data/dapp-sample");
|
||||||
|
|
Loading…
Reference in New Issue