duckscript 0.10.0

Simple, extendable and embeddable scripting language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

#[test]
fn run_no_arguments() {
    let output = run(&None);

    assert!(output.is_ok());
    assert!(output.unwrap().is_empty());
}

#[test]
fn run_single_file() {
    let output = run(&Some(vec!["./src/test/scripts/simple.ds"]));

    assert!(output.is_ok());
    assert!(output.unwrap().len(), 6);
}