Skip to content

Commit 6048bb7

Browse files
authored
Merge pull request #1768 from veryl-lang/fix_test_error
Fix compile error in testcase
2 parents 429e432 + 9c0de98 commit 6048bb7

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

crates/tests/src/lib.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,16 +389,22 @@ mod filelist {
389389
contexts.push((path, input, parser, analyzer));
390390
}
391391

392-
let _ = Analyzer::analyze_post_pass1();
392+
let err = Analyzer::analyze_post_pass1();
393+
dbg!(&err);
394+
assert!(err.is_empty());
393395

394396
for (path, _, parser, analyzer) in &contexts {
395-
let _ = analyzer.analyze_pass2(&path.prj, &path.src, &parser.veryl);
397+
let err = analyzer.analyze_pass2(&path.prj, &path.src, &parser.veryl);
398+
dbg!(&err);
399+
assert!(err.is_empty());
396400
}
397401

398402
let info = Analyzer::analyze_post_pass2();
399403

400404
for (path, _, parser, analyzer) in &contexts {
401-
let _ = analyzer.analyze_pass3(&path.prj, &path.src, &parser.veryl, &info);
405+
let err = analyzer.analyze_pass3(&path.prj, &path.src, &parser.veryl, &info);
406+
dbg!(&err);
407+
assert!(err.is_empty());
402408
}
403409

404410
let paths = veryl::cmd_build::CmdBuild::sort_filelist(&metadata, &paths, false);
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module ModuleC {
22
inst u: $std::ram (
3-
i_clk : _,
4-
i_rst : _,
5-
i_clr : _,
6-
i_mea : _,
7-
i_wea : _,
8-
i_adra: _,
9-
i_da : _,
10-
i_meb : _,
11-
i_adrb: _,
3+
i_clk : 0,
4+
i_rst : 0,
5+
i_clr : 0,
6+
i_mea : 0,
7+
i_wea : 0,
8+
i_adra: 0,
9+
i_da : 0,
10+
i_meb : 0,
11+
i_adrb: 0,
1212
o_qb : _,
1313
);
1414
}

0 commit comments

Comments
 (0)