Phase 33 NORM canon test: enforce normalized dev route for P1/P2/JP mini
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
//! Phase 34-7.5: テストヘルパーモジュール
|
||||
|
||||
pub mod joinir_frontend;
|
||||
pub mod joinir_env;
|
||||
pub mod joinir_frontend;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#[cfg(all(test, feature = "cranelift-jit", not(feature = "jit-direct-only")))]
|
||||
mod tests {
|
||||
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use crate::mir::{BasicBlockId, BinaryOp, ConstValue, EffectMask, MirInstruction, MirType};
|
||||
#[allow(unused_imports)]
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#[cfg(all(test, feature = "cranelift-jit", not(feature = "jit-direct-only")))]
|
||||
mod tests {
|
||||
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use crate::mir::{
|
||||
BasicBlockId, ConstValue, EffectMask, FunctionSignature, MirFunction, MirInstruction,
|
||||
|
||||
@ -1,9 +1,7 @@
|
||||
#[cfg(all(test, feature = "cranelift-jit", not(feature = "jit-direct-only")))]
|
||||
mod tests {
|
||||
use std::collections::HashMap;
|
||||
|
||||
|
||||
|
||||
use crate::box_factory::RuntimeError;
|
||||
use crate::box_trait::NyashBox;
|
||||
use crate::mir::{
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#[cfg(all(test, feature = "cranelift-jit", not(feature = "jit-direct-only")))]
|
||||
mod tests {
|
||||
|
||||
|
||||
#[allow(unused_imports)]
|
||||
use crate::mir::{
|
||||
BasicBlockId, ConstValue, EffectMask, FunctionSignature, MirFunction, MirInstruction,
|
||||
|
||||
@ -456,7 +456,7 @@ fn joinir_json_v0_stageb_funcscanner_min_matches_fixture() {
|
||||
// 実行方法:
|
||||
// cargo test --release joinir_stageb_structure -- --nocapture
|
||||
|
||||
use crate::mir::join_ir_vm_bridge::convert_joinir_to_mir;
|
||||
use crate::mir::join_ir_vm_bridge::bridge_joinir_to_mir;
|
||||
|
||||
/// Stage-B Body: JoinIR lowering + JoinIR→MIR 変換の構造テスト
|
||||
#[test]
|
||||
@ -510,7 +510,7 @@ fn joinir_stageb_body_structure_test() {
|
||||
);
|
||||
|
||||
// Step 2: JoinIR → MIR 変換
|
||||
let mir_module = match convert_joinir_to_mir(&join_module) {
|
||||
let mir_module = match bridge_joinir_to_mir(&join_module) {
|
||||
Ok(m) => m,
|
||||
Err(e) => {
|
||||
eprintln!("[joinir/stageb_body] JoinIR→MIR conversion failed: {:?}", e);
|
||||
@ -599,7 +599,7 @@ fn joinir_stageb_funcscanner_structure_test() {
|
||||
);
|
||||
|
||||
// Step 2: JoinIR → MIR 変換
|
||||
let mir_module = match convert_joinir_to_mir(&join_module) {
|
||||
let mir_module = match bridge_joinir_to_mir(&join_module) {
|
||||
Ok(m) => m,
|
||||
Err(e) => {
|
||||
eprintln!(
|
||||
|
||||
@ -55,7 +55,6 @@ mod tests {
|
||||
|
||||
use crate::mir::function::FunctionMetadata;
|
||||
use crate::mir::{EffectMask, MirType};
|
||||
|
||||
|
||||
MirFunction {
|
||||
signature: crate::mir::FunctionSignature {
|
||||
@ -119,7 +118,6 @@ mod tests {
|
||||
|
||||
use crate::mir::function::FunctionMetadata;
|
||||
use crate::mir::{EffectMask, MirType};
|
||||
|
||||
|
||||
MirFunction {
|
||||
signature: crate::mir::FunctionSignature {
|
||||
@ -449,7 +447,6 @@ mod tests {
|
||||
|
||||
use crate::mir::function::FunctionMetadata;
|
||||
use crate::mir::{EffectMask, MirType};
|
||||
|
||||
|
||||
MirFunction {
|
||||
signature: crate::mir::FunctionSignature {
|
||||
@ -520,7 +517,6 @@ mod tests {
|
||||
|
||||
use crate::mir::function::FunctionMetadata;
|
||||
use crate::mir::{EffectMask, MirType};
|
||||
|
||||
|
||||
MirFunction {
|
||||
signature: crate::mir::FunctionSignature {
|
||||
|
||||
@ -3,11 +3,10 @@
|
||||
mod tests {
|
||||
use crate::box_trait::{IntegerBox, NyashBox, StringBox};
|
||||
use crate::boxes::array::ArrayBox;
|
||||
|
||||
|
||||
use crate::runtime::plugin_loader_unified::PluginHost;
|
||||
use std::env;
|
||||
use std::fs;
|
||||
|
||||
|
||||
// RAII: environment variable guard (restores on drop)
|
||||
struct EnvGuard {
|
||||
|
||||
Reference in New Issue
Block a user