home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Espanso Rust Test cfg Section

September 2023
Code
#!/bin/bash

echo '#[cfg(test)]'
echo ''
echo 'mod test {'
echo '    use super::*;'
echo ''
echo '    #[test]'
echo '    pub fn basic() {'
echo '        let left = "";'
echo '        let right = "";'
echo '        assert_eq!(left, right);'
echo '    }'
echo '}'
═══ § ═══