test: prove ordinary import binding modes
This commit is contained in:
@@ -228,17 +228,26 @@ Separate compilation is the only driver build path; no compatibility mode
|
||||
switch remains.
|
||||
|
||||
`test/package/package_test.ww` also owns the dual-stage
|
||||
`declared_name_identity_and_file_import_scope` observer. It generates temporary
|
||||
`declared_name_identity_and_file_import_scope` and
|
||||
`explicit_import_alias_binding_modes` observers. They generate temporary
|
||||
directory trees proving that canonical import identity, physical directory,
|
||||
declared package name, and source-file default qualifier remain distinct;
|
||||
imports are file-scoped while dependency edges are the package-wide sorted
|
||||
union; command and production/internal/external/generated-main variants retain
|
||||
canonical action ownership; vendor expansion changes identity but not the
|
||||
declared qualifier; compiler argv contains only direct `.wwi` inputs; and its
|
||||
named rejected actions leave neither committed nor staged action artifacts or a
|
||||
published binary. It also forces a staged multi-artifact commit to fail after
|
||||
the interface rename, then proves that both stages invalidate old unit vouchers
|
||||
and reconsider the importer rather than accepting a mixed warm generation. A
|
||||
declared package name, optional source alias, and effective source-file
|
||||
qualifier remain distinct. The alias matrix covers default and explicit-only
|
||||
qualification, bare function/type/def/const/variable rejection with exact
|
||||
unused-before-undefined diagnostics, same-file duplicate bindings, accepted
|
||||
same-path imports under distinct bindings, alias reuse across files, sibling
|
||||
scope isolation, package-declaration collisions, unused aliases, and explicit
|
||||
blank-alias rejection. It also pins canonical `.wwi` spelling, archive/action
|
||||
ownership, stage-equal diagnostics and binaries, and clean rejection state.
|
||||
The declared-name observer proves imports are file-scoped while dependency
|
||||
edges are the package-wide sorted union; command and
|
||||
production/internal/external/generated-main variants retain canonical action
|
||||
ownership; vendor expansion changes identity but not the effective qualifier;
|
||||
compiler argv contains only direct `.wwi` inputs; and its named rejected
|
||||
actions leave neither committed nor staged action artifacts or a published
|
||||
binary. It also forces a staged multi-artifact commit to fail after the
|
||||
interface rename, then proves that both stages invalidate old unit vouchers and
|
||||
reconsider the importer rather than accepting a mixed warm generation. A
|
||||
separate injected stamp-removal failure proves the pre-commit gate leaves all
|
||||
previously committed artifacts byte-identical.
|
||||
Together with the existing directory, recursive, vendor,
|
||||
|
||||
Reference in New Issue
Block a user