Files
hakorune/src/tests/mod.rs
nyash-codex 7ed13f98d5 test(stageb): 最小再現ケース+Rustテスト追加 - using読み込み問題発見
## 🔍 新規ファイル
1. **funcscanner_skip_ws_min.hako**: 最小再現ケース
   - FuncScannerBox.skip_whitespace直接呼び出しテスト
   - 期待: idx=3(3空白スキップ)
   - 実際: idx=0(loop不実行でFAIL)

2. **mir_funcscanner_skip_ws.rs**: Rustレベルテスト
   - MIRコンパイル + 検証
   - 関数存在確認

## 🐛 重大発見
### 問題: using経由モジュールが読み込まれない
```
[test] Module has 2 functions
[test] ALL available functions:
[test]   - main
[test]   - condition_fn
```
- `using lang.compiler.entry.func_scanner as FuncScannerBox`宣言済み
- でもFuncScannerBox.skip_whitespace/2が**モジュールに存在しない**
- CLI実行時は動作 → Rustテスト環境特有の問題?

### 2層の問題構造
1. **本命バグ**: loop(1==1)が実行されない(CLI実行で再現済み)
2. **新発見**: usingモジュール読み込み未実装(Rustテスト環境)

## 📊 次のステップ
- using systemのコンパイル時モジュール解決を調査
- または別アプローチでloop バグに直接アプローチ

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 08:16:35 +09:00

31 lines
874 B
Rust

#[cfg(feature = "aot-plan-import")]
pub mod aot_plan_import;
pub mod box_tests;
pub mod host_reverse_slot;
pub mod identical_exec;
pub mod identical_exec_collections;
pub mod identical_exec_instance;
pub mod identical_exec_string;
pub mod mir_stageb_like_args_length;
pub mod mir_stageb_loop_break_continue;
pub mod mir_stage1_using_resolver_verify;
pub mod mir_locals_ssa;
pub mod mir_loopform_exit_phi;
pub mod mir_breakfinder_ssa;
pub mod mir_funcscanner_ssa;
pub mod mir_funcscanner_skip_ws;
pub mod nyash_abi_basic;
pub mod parser_static_box_members;
pub mod plugin_hygiene;
pub mod policy_mutdeny;
pub mod sugar_basic_test;
pub mod sugar_coalesce_test;
pub mod sugar_comp_assign_test;
pub mod sugar_pipeline_test;
pub mod sugar_range_test;
pub mod sugar_safe_access_test;
pub mod typebox_tlv_diff;
pub mod vtable_map_ext;
pub mod vtable_strict;
pub mod vtable_string;