dsntk-model-evaluator 0.3.0

ÐecisionToolkit | DMN model evaluator
Documentation
use super::*;

from_examples!(DMN_3_1151);

static_context!(CTX, "{}");

fn eq(invocable: &str, ctx: &FeelContext, expected: &str) {
  assert_decision(&MODEL_EVALUATOR, &MODEL_NAMESPACE, &MODEL_NAME, invocable, ctx, expected);
}

#[test]
fn _0001() {
  eq("decision001", &CTX, "[3, 4, 5]");
}

#[test]
fn _0002() {
  eq("decision002", &CTX, "[]");
}

#[test]
fn _0003() {
  eq("decision003", &CTX, r#"["not a list"]"#);
}

#[test]
fn _0004() {
  eq("decision004", &CTX, "null(only number or boolean indexes are allowed in filters)");
}

#[test]
fn _0005() {
  eq("decision005", &CTX, "null(only number or boolean indexes are allowed in filters)");
}

#[test]
fn _0006() {
  eq("decision006", &CTX, "null(only number or boolean indexes are allowed in filters)");
}