cleanup
This commit is contained in:
@@ -36,7 +36,9 @@ fn pusher_loads_as_a_tagged_scripted_solid_object() {
|
||||
p.builtin_script.is_some(),
|
||||
"carries the embedded pusher script"
|
||||
);
|
||||
assert!(p.script_name.is_none());
|
||||
// Expansion keys all pushers under one synthetic script name so they share a
|
||||
// compiled AST; the source still comes from `builtin_script`.
|
||||
assert_eq!(p.script_name.as_deref(), Some("BUILTIN_pusher"));
|
||||
assert!(!board.is_passable(0, 0), "pusher is solid");
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,9 @@ fn spinner_loads_as_a_tagged_scripted_solid_object() {
|
||||
obj.builtin_script.is_some(),
|
||||
"carries the embedded spinner script"
|
||||
);
|
||||
assert!(obj.script_name.is_none());
|
||||
// Expansion keys all spinners under one synthetic script name so they share a
|
||||
// compiled AST; the source still comes from `builtin_script`.
|
||||
assert_eq!(obj.script_name.as_deref(), Some("BUILTIN_spinner"));
|
||||
assert!(!board.is_passable(0, 0), "spinner is solid");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user