Read files macro for loading reading files to string at compile-time
Makefile for formatting and linting Workspace for subcrates. Moved crates to subdir and moved subcrate configs to workspace.*
This commit is contained in:
13
crates/read_files/tests/lib.rs
Normal file
13
crates/read_files/tests/lib.rs
Normal file
@ -0,0 +1,13 @@
|
||||
use read_files::read_files_to_string;
|
||||
|
||||
#[test]
|
||||
fn test_load_files() {
|
||||
let files = read_files_to_string!("./src", ".rs$");
|
||||
assert!(!files.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_load_all_files() {
|
||||
let files = read_files_to_string!("./src");
|
||||
assert!(!files.is_empty());
|
||||
}
|
Reference in New Issue
Block a user