mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 00:00:29 +09:00
Fix example code
This commit is contained in:
1 parent
9ca05ba893
commit
6146714112
8 files changed
+7
-14
No files matched your search
@@ -303,13 +303,6 @@ pub fn test_asmgen(path: &Path) {
|
||||
|
||||
// TODO: test all the way down to assembly
|
||||
pub fn test_end_to_end(path: &Path) {
|
||||
// TODO: delete ignore list in the future
|
||||
let ignore_list = vec!["examples/c/float2.c"];
|
||||
if ignore_list.contains(&path.to_str().expect("`path` must be transformed to `&str`")) {
|
||||
println!("skip test");
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if the file has .c extension
|
||||
assert_eq!(path.extension(), Some(std::ffi::OsStr::new("c")));
|
||||
let unit = c::Parse::default()
|
||||
|
||||
Reference in new issue
Block a user