Files
regorus/tests/interpreter/cases/builtins/mod.rs
Anand Krishnamoorthi c4ae2d4cc2 Tests for types functions
Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
2023-02-28 09:38:40 +05:30

12 lines
279 B
Rust

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
use regorus::builtins;
use regorus::Value;
// Lockdown calls that cannot happen via rego.
#[test]
fn type_name_undefined() {
assert_eq!(builtins::types::get_type(&Value::Undefined), "undefined");
}