-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
115 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...e_variadic_tag_configurations_c/examples/_willbe_variadic_tag_configurations_c_trivial.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() | ||
{ | ||
print!( "example" ); | ||
} |
11 changes: 11 additions & 0 deletions
11
module/move/willbe/tests/asset/single_module_with_example/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"module/test_module", | ||
] | ||
|
||
[workspace.metadata] | ||
master_branch = "test_branch" | ||
project_name = "test" | ||
repo_url = "https://github.com/Username/test" | ||
discord_url = "https://discord.gg/m3YfbXpUUY" |
2 changes: 2 additions & 0 deletions
2
module/move/willbe/tests/asset/single_module_with_example/Readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!--{ generate.main_header.start() }--> | ||
<!--{ generate.main_header.end }--> |
7 changes: 7 additions & 0 deletions
7
module/move/willbe/tests/asset/single_module_with_example/module/test_module/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "test_module" | ||
version = "0.1.0" | ||
edition = "2021" | ||
repository = "https://github.com/Wandalen/wTools/tree/master/module/move/test_module" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
2 changes: 2 additions & 0 deletions
2
...move/willbe/tests/asset/single_module_with_example/module/test_module/Readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!--{ generate.module_header.start() }--> | ||
<!--{ generate.module_header.end }--> |
4 changes: 4 additions & 0 deletions
4
...tests/asset/single_module_with_example/module/test_module/examples/test_module_trivial.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fn main() | ||
{ | ||
println!( "example" ); | ||
} |
17 changes: 17 additions & 0 deletions
17
module/move/willbe/tests/asset/single_module_with_example/module/test_module/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pub fn add( left : usize, right : usize ) -> usize | ||
{ | ||
left + right | ||
} | ||
|
||
#[ cfg( test ) ] | ||
mod tests | ||
{ | ||
use super::*; | ||
|
||
#[ test ] | ||
fn it_works() | ||
{ | ||
let result = add( 2, 2 ); | ||
assert_eq!( result, 4 ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters