Browse Source

docs(change struct): fixing test and removing folders

pull/1658/head
miguel 1 year ago committed by MSilva95
parent
commit
18a21bfe6d
  1. 6
      sh/tests/change-struct_test.sh
  2. BIN
      sh/tests/solutions/change-struct.tar
  3. 0
      sh/tests/solutions/new-struct/0_to_3/0/.gitignore
  4. 0
      sh/tests/solutions/new-struct/0_to_3/1/.gitignore
  5. 0
      sh/tests/solutions/new-struct/0_to_3/2/.gitignore
  6. 0
      sh/tests/solutions/new-struct/0_to_3/3/text.txt
  7. 0
      sh/tests/solutions/new-struct/4/text2.txt
  8. 0
      sh/tests/solutions/new-struct/6_to_9/6/.gitignore
  9. 0
      sh/tests/solutions/new-struct/6_to_9/7/.gitignore
  10. 0
      sh/tests/solutions/new-struct/6_to_9/8/.gitignore
  11. 0
      sh/tests/solutions/new-struct/6_to_9/9/.gitignore
  12. 0
      sh/tests/solutions/new-struct/A/text3.txt
  13. BIN
      sh/tests/solutions/new-struct/done.tar
  14. 8
      subjects/devops/change-struct/README.md

6
sh/tests/change-struct_test.sh

@ -7,10 +7,10 @@ IFS='
print_content() {
mkdir -p uncompressed
tar -xpf done.tar -C uncompressed
tar -xpf change-struct.tar -C uncompressed
tree uncompressed
}
submitted=$(cd student/new-struct && print_content)
expected=$(cd solutions/new-struct && print_content)
submitted=$(cd student && print_content)
expected=$(cd solutions && print_content)
diff <(echo "$submitted") <(echo "$expected")

BIN
sh/tests/solutions/change-struct.tar

diff.bin_not_shown

0
sh/tests/solutions/new-struct/0_to_3/0/.gitignore diff.vendored

0
sh/tests/solutions/new-struct/0_to_3/1/.gitignore diff.vendored

0
sh/tests/solutions/new-struct/0_to_3/2/.gitignore diff.vendored

0
sh/tests/solutions/new-struct/0_to_3/3/text.txt

0
sh/tests/solutions/new-struct/4/text2.txt

0
sh/tests/solutions/new-struct/6_to_9/6/.gitignore diff.vendored

0
sh/tests/solutions/new-struct/6_to_9/7/.gitignore diff.vendored

0
sh/tests/solutions/new-struct/6_to_9/8/.gitignore diff.vendored

0
sh/tests/solutions/new-struct/6_to_9/9/.gitignore diff.vendored

0
sh/tests/solutions/new-struct/A/text3.txt

BIN
sh/tests/solutions/new-struct/done.tar

diff.bin_not_shown

8
subjects/devops/change-struct/README.md

@ -34,15 +34,15 @@ new-struct/
└── text3.txt
```
Once it is done, use the command below to create the file `done.tar` to be submitted.
Once it is done, use the command below to create the file `change-struct.tar` to be submitted.
```console
$ tar -cf done.tar *
$ tar -cf change-struct.tar *
$ ls new-struct/
0_to_3 4 6_to_9 A done.tar
0_to_3 4 6_to_9 A change-struct.tar
```
**Only `done.tar` should be submitted.**
**Only `change-struct.tar` should be submitted.**
### Hints

Loading…
Cancel
Save