Browse Source

examples correction

pull/386/head
OGordoo 5 years ago
parent
commit
7ea60e86bb
  1. 14
      subjects/push-swap/push-swap.en.md

14
subjects/push-swap/push-swap.en.md

@ -105,7 +105,7 @@ This project will help you learn about :
- In case of there are no arguments the program displays nothing (0 instructions). - In case of there are no arguments the program displays nothing (0 instructions).
```console ```console
student$ ./push_swap 2 1 3 6 5 8 student$ ./push_swap "2 1 3 6 5 8"
sa sa
pb pb
pb pb
@ -114,7 +114,7 @@ sa
pa pa
pa pa
pa pa
student$ ./push_swap 0 one 2 3 student$ ./push_swap "0 one 2 3"
Error Error
student$ student$
``` ```
@ -134,15 +134,15 @@ pb
sa sa
rra rra
pa pa
student$ echo -e "rra\npb\nsa\nrra\npa\n" | ./checker 3 2 1 0 student$ echo -e "rra\npb\nsa\nrra\npa\n" | ./checker "3 2 1 0"
OK OK
student$ echo -e "sa\n\nrra\npb" student$ echo -e "sa\n\nrra\npb"
sa sa
rra rra
pb pb
student$ echo -e "sa\n\nrra\npb\n" | ./checker 3 2 1 0 student$ echo -e "sa\n\nrra\npb\n" | ./checker "3 2 1 0"
KO KO
student$ ./checker 3 2 one 0 student$ echo -e "sa\n\nrra\npb\n" | ./checker "3 2 one 0"
Error Error
student$ student$
``` ```
@ -158,9 +158,9 @@ student$
### Usage ### Usage
```console ```console
student$ ARG="4 67 3 87 23"; ./push_swap $ARG | wc -l student$ ARG="4 67 3 87 23"; ./push_swap "$ARG" | wc -l
6 6
student$ ARG="4 67 3 87 23"; ./push_swap $ARG | ./checker $ARG student$ ARG="4 67 3 87 23"; ./push_swap "$ARG" | ./checker "$ARG"
OK OK
``` ```

Loading…
Cancel
Save