1#[cfg(test)]
2mod tests {
3 use super::*;
4
5 #[test]
6 fn it_works() {
7 assert_eq!(2 + 2, 4);
8 }
9
10 #[test]
11 fn print_outs() {
12 private_function();
13 public_function();
14 indirect_access();
15 }
16}
17
18pub fn public_function() {
19 println!("called boilerup's `public_function()`");
20}
21
22fn private_function() {
23 println!("called boilerup's `private_function()`");
24}
25
26pub fn indirect_access() {
27 print!("called boilerup's `indirect_access()`, that\n> ");
28
29 private_function();
30}