Skip to content
Snippets Groups Projects
Select Git revision
  • cbc575ec8657e3954e45b84a9c5030c353c3a5a5
  • main default protected
2 results

ToDoList.java

Blame
  • main.rs 438 B
    mod board;
    
    use board::tictactoe::TicTacToe;
        
    fn main() {
        let board = TicTacToe::new();
    
        board.display();
    }
    
    // Will only be build in 'test' configuration
    #[cfg(test)]
    // A module where the tests are located, more on modules later
    mod tests {
        #[test]
        fn should_pass() {
            assert!(true);
        }
        #[test]
        #[should_panic]
        fn should_panic() {
            panic!("Doing wrong things on purpose here!");
        }
    }