Browse Source

Remove useless comments from BrainFuck tests.

release/v0.1
Rafal Kupiec 2 years ago
parent
commit
10516fb655
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
3 changed files with 3 additions and 23 deletions
  1. +1
    -17
      tests/data/brainfuck/array.bf
  2. +1
    -1
      tests/data/brainfuck/hello_world.bf
  3. +1
    -5
      tests/data/brainfuck/sierpinski.bf

+ 1
- 17
tests/data/brainfuck/array.bf View File

@ -3,20 +3,4 @@
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>
>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>
>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>
<<<<<<<<<<
first put the desired index in front of the array
++++
we are done if there is a zero in the current tag cell
[
decrement the current tag cell
-
move the value in the current tag cell to the next if it is not zero
[>>+<<-]
move to next tag cell
>>
we found it: print the desired element
]>.
now print another
<<<<<<<<<
++
[-[>>+<<-]>>]>.
<<<<<<<<<<++++[-[>>+<<-]>>]>.<<<<<<<<<++[-[>>+<<-]>>]>.

+ 1
- 1
tests/data/brainfuck/hello_world.bf View File

@ -1 +1 @@
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

+ 1
- 5
tests/data/brainfuck/sierpinski.bf View File

@ -1,5 +1 @@
++++++++[>+>++++<<-]>++>>+<[-[>>+<<-]+>>]>+[
-<<<[
->[+[-]+>++>>>-<<]<[<]>>++++++[<<+++++>>-]+<<++.[-]<<
]>.>+[>>]>+
]
++++++++[>+>++++<<-]>++>>+<[-[>>+<<-]+>>]>+[-<<<[->[+[-]+>++>>>-<<]<[<]>>++++++[<<+++++>>-]+<<++.[-]<<]>.>+[>>]>+]

Loading…
Cancel
Save