From c1341aed82cee197a256a3da56644cd01db34e22 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 11 Apr 2025 01:31:39 +0000 Subject: [PATCH 1/2] Format .jl files --- Project.toml | 2 +- test/runtests.jl | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index c872ac9..d263a4f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "DataGraphs" uuid = "b5a273c3-7e6c-41f6-98bd-8d7f1525a36a" authors = ["Matthew Fishman and contributors"] -version = "0.2.6" +version = "0.2.7" [deps] Dictionaries = "85a47980-9c8c-11e8-2b9f-f7ca1fa99fb4" diff --git a/test/runtests.jl b/test/runtests.jl index 1c52c3e..b4ae80f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -14,11 +14,13 @@ const GROUP = uppercase( ) "match files of the form `test_*.jl`, but exclude `*setup*.jl`" -istestfile(fn) = +function istestfile(fn) endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup") +end "match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`" -isexamplefile(fn) = +function isexamplefile(fn) endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup") +end @time begin # tests in groups based on folder structure From a8f2a36c80b380a7e7158027d3392e6d13246831 Mon Sep 17 00:00:00 2001 From: Matt Fishman Date: Thu, 10 Apr 2025 21:33:12 -0400 Subject: [PATCH 2/2] Apply suggestions from code review --- test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index b4ae80f..98b2d2b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -15,11 +15,11 @@ const GROUP = uppercase( "match files of the form `test_*.jl`, but exclude `*setup*.jl`" function istestfile(fn) - endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup") + return endswith(fn, ".jl") && startswith(basename(fn), "test_") && !contains(fn, "setup") end "match files of the form `*.jl`, but exclude `*_notest.jl` and `*setup*.jl`" function isexamplefile(fn) - endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup") + return endswith(fn, ".jl") && !endswith(fn, "_notest.jl") && !contains(fn, "setup") end @time begin