Skip to content

Commit 3f26722

Browse files
authored
Add more expected test cases for ls implementations (#441)
Some trainees are doing a bit less than I was expecting when originally setting this. Not to be merged util the current cohort have completed Module-Tools.
1 parent 47e4131 commit 3f26722

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

implement-shell-tools/ls/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Your task is to implement your own version of `ls`.
66

77
It must act the same as `ls` would, if run from the directory containing this README.md file, for the following command lines:
88

9+
* `ls sample-files`
10+
* `ls sample-files/1.txt`
11+
* `ls sample-files/*`
912
* `ls -1`
1013
* `ls -1 sample-files`
1114
* `ls -1 -a sample-files`

implement-shell-tools/wc/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ It must act the same as `wc` would, if run from the directory containing this RE
1111
* `wc -w sample-files/3.txt`
1212
* `wc -c sample-files/3.txt`
1313
* `wc -l sample-files/*`
14+
* `wc -w -l sample-files/3.txt`
15+
* `wc -w -l sample-files/*`
1416

1517
Matching any additional behaviours or flags are optional stretch goals.
1618

0 commit comments

Comments
 (0)