Skip to content

Commit aa2b0ac

Browse files
committed
dir example minor fix
1 parent 2d63d61 commit aa2b0ac

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ci/all_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ for roc_file in $EXAMPLES_DIR*.roc; do
7474
# Skip argsBROKEN.roc
7575
# countdown, echo, form, piping, stdin require user input
7676
# dir.roc hits `index out of bounds: the len is...`
77-
ignore_list=("argsBROKEN.roc" "countdown.roc" "echo.roc" "form.roc" "piping.roc" "stdin.roc" "dir.roc")
77+
ignore_list=("argsBROKEN.roc" "countdown.roc" "echo.roc" "form.roc" "piping.roc" "stdin.roc")
7878

7979
# check if base_file matches something from ignore_list
8080
for file in "${ignore_list[@]}"; do

examples/dir.roc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ main =
2727
Path.fromStr "dirExampleA"
2828
|> Dir.list
2929
|> Task.mapErr! FailedToListDir
30+
31+
pathsAsStr = List.map paths Path.display
3032

3133
# Check the contents of the directory
32-
expect (List.map paths Path.display) == ["b", "child"]
34+
expect pathsAsStr == ["dirExampleA/b", "dirExampleA/child"]
3335

3436
# Try to create a directory without a parent (should fail, ignore error)
3537
Dir.create (Path.fromStr "dirExampleD/child")

0 commit comments

Comments
 (0)