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