Filter-out non-.tig files from list of test case files
authorSiraaj Khandkar <siraaj@khandkar.net>
Mon, 17 Sep 2018 11:28:27 +0000 (07:28 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Mon, 17 Sep 2018 11:28:27 +0000 (07:28 -0400)
compiler/src/lib/tiger/tiger_test_cases_book.ml

index 5cae186..98e8383 100644 (file)
@@ -144,5 +144,6 @@ let read ~from_dir:dir =
   Sys.readdir dir
   |> Array.to_list
   |> List.filter ~f:is_filename_not_hidden
+  |> List.filter ~f:(fun filename -> Filename.check_suffix filename ".tig")
   |> List.sort ~cmp:compare
   |> List.map ~f:(test_case_of_filename ~dir)
This page took 0.019146 seconds and 4 git commands to generate.