Skip to content
Snippets Groups Projects
Commit a477957d authored by Michael Aaron Murphy's avatar Michael Aaron Murphy
Browse files

Move workspace members

parent dc24e41a
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 19 deletions
...@@ -8,7 +8,7 @@ nightly: ...@@ -8,7 +8,7 @@ nightly:
script: script:
- cargo build - cargo build
- cargo test --lib - cargo test --lib
- cargo test --manifest-path ion_braces/Cargo.toml - cargo test --manifest-path members/braces/Cargo.toml
- cargo test --manifest-path ion_builtins/Cargo.toml - cargo test --manifest-path members/builtins/Cargo.toml
- cargo test --manifest-path ion_ranges/Cargo.toml - cargo test --manifest-path members/ranges/Cargo.toml
- bash examples/run_examples.sh - bash examples/run_examples.sh
...@@ -17,7 +17,9 @@ repository = "https://gitlab.redox-os.org/redox-os/ion" ...@@ -17,7 +17,9 @@ repository = "https://gitlab.redox-os.org/redox-os/ion"
version = "1.0.0-alpha" version = "1.0.0-alpha"
[workspace] [workspace]
members = [ "ion_braces", "ion_builtins", "ion_sys", "ion_ranges" ] members = [
"members/braces", "members/builtins", "members/sys", "members/ranges"
]
[[bin]] [[bin]]
name = "ion" name = "ion"
...@@ -43,10 +45,10 @@ smallstring = "0.1" ...@@ -43,10 +45,10 @@ smallstring = "0.1"
smallvec = "0.6" smallvec = "0.6"
unicode-segmentation = "1.2" unicode-segmentation = "1.2"
xdg = { git = "https://github.com/whitequark/rust-xdg" } xdg = { git = "https://github.com/whitequark/rust-xdg" }
ion_braces = { path = "ion_braces" } ion_braces = { path = "members/braces" }
ion_builtins = { path = "ion_builtins" } ion_builtins = { path = "members/builtins" }
ion_sys = { path = "ion_sys" } ion_sys = { path = "members/sys" }
ion_ranges = { path = "ion_ranges" } ion_ranges = { path = "members/ranges" }
[lib] [lib]
path = "src/lib/lib.rs" path = "src/lib/lib.rs"
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
...@@ -423,39 +423,39 @@ fn test_integers_arguments() { ...@@ -423,39 +423,39 @@ fn test_integers_arguments() {
#[test] #[test]
fn test_file_exists() { fn test_file_exists() {
assert_eq!(file_exists("../testing/empty_file"), true); assert_eq!(file_exists("../../testing/empty_file"), true);
assert_eq!(file_exists("this-does-not-exist"), false); assert_eq!(file_exists("this-does-not-exist"), false);
} }
#[test] #[test]
fn test_file_is_regular() { fn test_file_is_regular() {
assert_eq!(file_is_regular("../testing/empty_file"), true); assert_eq!(file_is_regular("../../testing/empty_file"), true);
assert_eq!(file_is_regular("../testing"), false); assert_eq!(file_is_regular("../../testing"), false);
} }
#[test] #[test]
fn test_file_is_directory() { fn test_file_is_directory() {
assert_eq!(file_is_directory("../testing"), true); assert_eq!(file_is_directory("../../testing"), true);
assert_eq!(file_is_directory("../testing/empty_file"), false); assert_eq!(file_is_directory("../../testing/empty_file"), false);
} }
#[test] #[test]
fn test_file_is_symlink() { fn test_file_is_symlink() {
assert_eq!(file_is_symlink("../testing/symlink"), true); assert_eq!(file_is_symlink("../../testing/symlink"), true);
assert_eq!(file_is_symlink("../testing/empty_file"), false); assert_eq!(file_is_symlink("../../testing/empty_file"), false);
} }
#[test] #[test]
fn test_file_has_execute_permission() { fn test_file_has_execute_permission() {
assert_eq!(file_has_execute_permission("../testing/executable_file"), true); assert_eq!(file_has_execute_permission("../../testing/executable_file"), true);
assert_eq!(file_has_execute_permission("../testing/empty_file"), false); assert_eq!(file_has_execute_permission("../../testing/empty_file"), false);
} }
#[test] #[test]
fn test_file_size_is_greater_than_zero() { fn test_file_size_is_greater_than_zero() {
assert_eq!( assert_eq!(
file_size_is_greater_than_zero("../testing/file_with_text"), file_size_is_greater_than_zero("../../testing/file_with_text"),
true true
); );
assert_eq!(file_size_is_greater_than_zero("../testing/empty_file"), false); assert_eq!(file_size_is_greater_than_zero("../../testing/empty_file"), false);
} }
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment