bottest/tests/unit/basic/basic_keywords_use_kb.rs

23 lines
No EOL
679 B
Rust

//! Unit tests migrated from src/basic/keywords/use_kb.rs
//! These tests were originally in botserver and have been migrated to bottest.
#![allow(unused_imports)]
#![allow(unused_variables)]
#![allow(dead_code)]
use rhai::Dynamic;
use rhai::Engine;
// Original: use super::*; - tests used internal functions from botserver
#[test]
fn test_use_kb_syntax() {
let mut engine = Engine::new();
// This would normally use real state and session
// For now just test that the syntax can be registered
assert!(engine
.register_custom_syntax(&["USE_KB", "$expr$"], true, |_, _| Ok(Dynamic::UNIT))
.is_ok());
}