()
| 469 | |
| 470 | #[test] |
| 471 | fn test_dispatch_cost() { |
| 472 | let reg = CommandRegistry::new(); |
| 473 | let ctx = test_ctx(); |
| 474 | let out = reg.dispatch("/cost", &ctx).unwrap(); |
| 475 | assert!(out.text.contains("5000")); |
| 476 | assert!(out.text.contains("0.0123")); |
| 477 | } |
| 478 | |
| 479 | #[test] |
| 480 | fn test_dispatch_model_show() { |