2024-05-13 13:37:53 +00:00
|
|
|
use crate::repl::tests::{fail_test, run_test_std, TestResult};
|
2023-04-05 20:44:59 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn library_loaded() -> TestResult {
|
2023-06-20 21:33:01 +00:00
|
|
|
run_test_std("scope modules | where name == 'std' | length", "1")
|
2023-04-05 20:44:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn prelude_loaded() -> TestResult {
|
2023-05-23 20:48:50 +00:00
|
|
|
run_test_std("shells | length", "1")
|
2023-04-05 20:44:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn not_loaded() -> TestResult {
|
2023-04-07 18:04:51 +00:00
|
|
|
fail_test("log info", "")
|
2023-04-05 20:44:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn use_command() -> TestResult {
|
2023-04-16 22:24:56 +00:00
|
|
|
run_test_std("use std assert; assert true; print 'it works'", "it works")
|
2023-04-05 20:44:59 +00:00
|
|
|
}
|