brainfuck interpreter
brainfuck cli rust
5

Configure Feed

Select the types of activity you want to include in your feed.

added initial rough test

digi.rip (Jun 1, 2026, 8:28 PM EDT) d915a155 a8617657

+19
+19
src/evaluator.rs
··· 584 584 .unwrap(); 585 585 assert_eq!(capture_buffer, b"42 "); 586 586 } 587 + 588 + // this test is for making sure bytes from one input call dont 589 + // overflow into another 590 + #[test] 591 + fn read_raw_discard() { 592 + let tokens = tokenizer(",>,<.>."); 593 + let map = parse_brackets(&tokens).unwrap(); 594 + let mut machine = VM::builder() 595 + // .input_type(InputType::Raw) 596 + // .output_type(OutputType::Raw) 597 + .build(); 598 + let fake_input = std::io::Cursor::new(b"123123\n456456"); 599 + let mut capture_buffer: Vec<u8> = Vec::new(); 600 + 601 + machine 602 + .run(&tokens, &map, fake_input, &mut capture_buffer) 603 + .unwrap(); 604 + assert_eq!(capture_buffer, b"123 456"); 605 + } 587 606 }