Skip to content

Commit ab1d519

Browse files
committed
Move tests and sample formats to the top-level
I think this structure is a bit nicer, as it makes it easy for new-comers to see the current capabilities of the language.
1 parent d7a8fe7 commit ab1d519

File tree

135 files changed

+14
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+14
-3
lines changed

fathom/tests/source_tests.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ use walkdir::WalkDir;
77
fn main() {
88
let args = libtest_mimic::Arguments::from_args();
99

10+
std::env::set_current_dir("..").unwrap();
11+
1012
let tests = std::iter::empty()
11-
.chain(find_source_files("examples").map(extract_test))
13+
.chain(find_source_files("formats").map(extract_test))
1214
.chain(find_source_files("tests").map(extract_test))
1315
.collect();
1416

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
(nix-filter.lib.inDirectory "fathom")
7575
];
7676
exclude = [
77-
(nix-filter.lib.inDirectory "fathom/examples")
78-
(nix-filter.lib.inDirectory "fathom/test")
77+
(nix-filter.lib.inDirectory "examples")
78+
(nix-filter.lib.inDirectory "test")
7979
];
8080
};
8181
crate-check-sources = nix-filter.lib.filter {

formats/README.md

Lines changed: 6 additions & 0 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)