test: fix env-pin globals assertion (builtins seed operators workspace-flat)
This commit is contained in:
@@ -206,7 +206,16 @@ fn build_check_env_matches_inline_seeding() {
|
||||
|
||||
// Per-call overlay fields must NOT be seeded by the helper.
|
||||
assert_eq!(env_helper.current_module, "", "current_module is overlay");
|
||||
assert!(env_helper.globals.is_empty(), "globals is overlay");
|
||||
// env.globals — partially workspace-flat (builtins operators
|
||||
// installed by `builtins::install`) and partially overlay
|
||||
// (per-module fns seeded by callers). The helper carries only
|
||||
// the workspace-flat half; key-set must match the inline
|
||||
// reproduction at this point.
|
||||
assert_eq!(
|
||||
env_helper.globals.keys().collect::<Vec<_>>(),
|
||||
env_inline.globals.keys().collect::<Vec<_>>(),
|
||||
"env.globals key-set differs (workspace-flat half from builtins)"
|
||||
);
|
||||
assert!(env_helper.imports.is_empty(), "imports is overlay");
|
||||
assert!(env_helper.rigid_vars.is_empty(), "rigid_vars is overlay");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user