Function simple_turing_machine::main
source · pub(crate) fn main()
Expand description
Main function to execute the Turing Machine simulation.
This function sets up the Turing Machine with predefined states and transitions, generates random numbers, converts them to binary, and runs the Turing Machine to verify that the sum of the numbers is correctly computed in binary form. It runs a series of tests and asserts that the Turing Machine’s output matches the expected binary sum.
§Panics
The function will panic if the Turing Machine’s result does not match the expected binary sum of the two random numbers generated.