diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-07-31 08:24:24 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-07-31 08:24:24 +0000 |
commit | 65c453b9b8499eb4a273bfd6f013608b9af23844 (patch) | |
tree | ca7932482c933447f96004673e284c94ee86f07d /src/util.rs | |
parent | bc9493725346d909c305fcaacd06c448e303cd05 (diff) | |
parent | ec41f376c51ad990c67015829d24daba65cd2538 (diff) | |
download | riki-65c453b9b8499eb4a273bfd6f013608b9af23844.tar.gz |
Merge branch 'definition-lists' into 'main'
detect definition lists, fail if found
Closes #5
See merge request larswirzenius/riki!29
Diffstat (limited to 'src/util.rs')
-rw-r--r-- | src/util.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/util.rs b/src/util.rs index fbf81f6..e1f82b3 100644 --- a/src/util.rs +++ b/src/util.rs @@ -84,12 +84,18 @@ mod test { #[test] fn joins_relative() { - assert_eq!(join_subpath(Path::new("foo"), Path::new("bar")), PathBuf::from("foo/bar")); + assert_eq!( + join_subpath(Path::new("foo"), Path::new("bar")), + PathBuf::from("foo/bar") + ); } #[test] fn joins_absolute() { - assert_eq!(join_subpath(Path::new("foo"), Path::new("/bar")), PathBuf::from("foo/bar")); + assert_eq!( + join_subpath(Path::new("foo"), Path::new("/bar")), + PathBuf::from("foo/bar") + ); } #[test] |