cleanup
This commit is contained in:
parent
4ed006c548
commit
0f0d1aa1a9
10
src/var.rs
10
src/var.rs
|
@ -714,8 +714,14 @@ fn test_normalize_varname() {
|
|||
assert_eq!(GameVars::normalize_varname("Clippy", "FOO"), "clippy$foo");
|
||||
assert_eq!(GameVars::normalize_varname("Clippy", "$foo"), "clippy$foo");
|
||||
assert_eq!(GameVars::normalize_varname("Clippy", "$$foo"), "$$foo");
|
||||
assert_eq!(GameVars::normalize_varname("Clippy", "PizzaClippy$foo"), "pizzaclippy$foo");
|
||||
assert_eq!(GameVars::normalize_varname("Clippy", "$foo$foo$foo$foo"), "$foo$foo$foo$foo");
|
||||
assert_eq!(
|
||||
GameVars::normalize_varname("Clippy", "PizzaClippy$foo"),
|
||||
"pizzaclippy$foo"
|
||||
);
|
||||
assert_eq!(
|
||||
GameVars::normalize_varname("Clippy", "$foo$foo$foo$foo"),
|
||||
"$foo$foo$foo$foo"
|
||||
);
|
||||
}
|
||||
|
||||
#[derive(Resource, Default)]
|
||||
|
|
Loading…
Reference in a new issue