#![allow(unused)] use rs2glsl::prelude::*; #[glsl] mod glsl { use rs2glsl::traits::*; pub fn fn1() { let mut x: i32 = -5; x = abs(x) } } const EXPECTED: &str = r#" void fn1() { int x = -5; x = abs(x); } "#; #[test] fn test1() { assert_eq!(EXPECTED.trim(), glsl::GLSL_FN1.with_dependencies()) } fn main() {}