move to another file

This commit is contained in:
olivia 2018-05-06 17:27:03 +02:00
parent d0e3a6e770
commit 8ecc1e6ff1
2 changed files with 20 additions and 20 deletions

20
src/about_variables.rs Normal file
View File

@ -0,0 +1,20 @@
#[allow(dead_code)]
mod about_variables {
pub fn guess_this () -> i32 {
let one = 5;
let two = 7;
let three = 3;
let result = (one + two) / three;
return result;
}
}
#[cfg(test)]
mod tests {
use super::about_variables::*;
#[test]
fn test_complicated () {
assert_eq!(___, guess_this());
}
}

View File

@ -1,20 +0,0 @@
#[allow(dead_code)]
mod about_variables {
pub fn guess_this () -> i32 {
let one = 5;
let two = 7;
let three = 3;
let result = (one + two) / three;
return result;
}
}
#[cfg(test)]
mod tests {
use super::about_variables::*;
#[test]
fn test_complicated () {
assert_eq!(___, guess_this());
}
}