1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
use wasm_bindgen::prelude::*;

#[cfg(test)]
mod tests {
    use crate::is_computer_on;
    #[test]
    fn the_computer_is_on() {
        assert_eq!(is_computer_on(), true);
    }
}

#[wasm_bindgen]
pub fn is_computer_on() -> bool {
    return true;
}