Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CON-2331 update push-swap audit commands to run to be in line with subject #2353

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions subjects/push-swap/audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,71 +2,71 @@

###### Has the requirement for the allowed packages been respected? (Reminder for this project: only [standard packages](https://golang.org/pkg/))

##### Try to run `"./push-swap"`.
##### Try to run `./push-swap`.

###### Does it display nothing?

##### Try to run `"./push-swap "2 1 3 6 5 8""`.
##### Try to run `./push-swap "2 1 3 6 5 8"`.

###### Does it display a valid solution and less than 9 instructions?

##### Try to run `"./push-swap "0 1 2 3 4 5""`.
##### Try to run `./push-swap "0 1 2 3 4 5"`.

###### Does it display nothing?

##### Try to run `"./push-swap "0 one 2 3""`.
##### Try to run `./push-swap "0 one 2 3"`.

```console
Error
```

###### Does it display the correct result as above?

##### Try to run `"./push-swap "1 2 2 3""`.
##### Try to run `./push-swap "1 2 2 3"`.

```console
Error
```

###### Does it display the correct result as above?

##### Try to run `"./push-swap "<5 random numbers>""` with 5 random numbers instead of the tag.
##### Try to run `./push-swap "<5 random numbers>"` with 5 random numbers instead of the tag.

###### Does it display a valid solution and less than 12 instructions?

##### Try to run `"./push-swap "<5 random numbers>""` with 5 different random numbers instead of the tag.
##### Try to run `./push-swap "<5 random numbers>"` with 5 different random numbers instead of the tag.

###### Does it still displays a valid solution and less than 12 instructions?

##### Try to run `"./checker"` and input nothing.
##### Try to run `./checker` and input nothing.

###### Does it display nothing?

##### Try to run `"./checker "0 one 2 3""`.
##### Try to run `./checker "0 one 2 3"`.

```console
Error
```

###### Does it display the correct result as above?

##### Try to run `"echo -e "sa\npb\nrrr\n" | ./checker "0 9 1 8 2 7 3 6 4 5""`.
##### Try to run `echo -e "sa\npb\nrrr\n" | ./checker "0 9 1 8 2 7 3 6 4 5"`.

```console
KO
```

###### Does it display the correct result as above?

##### Try to run `"echo -e "pb\nra\npb\nra\nsa\nra\npa\npa\n" | ./checker "0 9 1 8 2""`.
##### Try to run `echo -e "pb\nra\npb\nra\nsa\nra\npa\npa\n" | ./checker "0 9 1 8 2"`.

```console
OK
```

###### Does it display the correct result as above?

##### Try to run `"ARG=("4 67 3 87 23"); ./push-swap $ARG | ./checker $ARG"`.
##### Try to run `ARG="4 67 3 87 23"; ./push-swap "$ARG" | ./checker "$ARG"`.

```console
OK
Expand All @@ -78,11 +78,11 @@ OK

#### General

##### Try to run `"ARG=("<100 random numbers>"); ./push-swap $ARG"` with 100 random different numbers instead of the tag.
##### Try to run `ARG="<100 random numbers>"; ./push-swap "$ARG"` with 100 random different numbers instead of the tag.

###### +Does it display less than 700 commands?

##### Try to run `"ARG=("<100 random numbers>"); ./push-swap $ARG | ./checker $ARG"` with the same 100 random different numbers as before instead of the tag.
##### Try to run `ARG="<100 random numbers>"; ./push-swap "$ARG" | ./checker "$ARG"` with the same 100 random different numbers as before instead of the tag.

```console
OK
Expand Down
Loading