mirror of https://git.sr.ht/~garritfra/sabre
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
235 B
10 lines
235 B
3 years ago
|
use crate::generator::c::generate_type;
|
||
|
use crate::parser::node_type::Type;
|
||
|
use crate::util::Either;
|
||
|
|
||
|
#[test]
|
||
|
fn test_generate_type_regular_type() {
|
||
|
let t = generate_type(Either::Right(Some(Type::Int)));
|
||
|
assert_eq!(t, "int")
|
||
|
}
|