Skip to content

Commit 60fe3d7

Browse files
committed
fixed gated error issue for test
1 parent 118747a commit 60fe3d7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/serialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,4 +408,4 @@ pub mod tests {
408408
easycond.body = easycond.s(Stmt::Block(body));
409409
println!("{}", serialize_to_string(&easycond, &symbols).unwrap());
410410
}
411-
}
411+
}

src/typecheck.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ pub fn type_check(tr: &Transaction, st: &SymbolTable, handler: &mut DiagnosticHa
146146
}
147147
}
148148

149+
#[cfg(test)]
149150
mod tests {
150151
use crate::serialize::tests::{create_add_transaction, create_calyx_go_down_transaction};
151152
use baa::BitVecValue;

0 commit comments

Comments
 (0)