test for equality between builtin and user defined functions

This commit is contained in:
ConnorSkees 2020-04-26 21:58:44 -04:00
parent 3615835e03
commit b21bc0424f

View File

@ -46,6 +46,12 @@ test!(
"a {b: get-function(lighten) == get-function(darken);}", "a {b: get-function(lighten) == get-function(darken);}",
"a {\n b: false;\n}\n" "a {\n b: false;\n}\n"
); );
test!(
builtin_not_equal_to_user_defined,
"@function user-defined() {\n @return foo;\n}\n
a {b: get-function(lighten) == get-function(user-defined);}",
"a {\n b: false;\n}\n"
);
test!( test!(
inspect_builtin_function, inspect_builtin_function,
"a {b: inspect(get-function(lighten));}", "a {b: inspect(get-function(lighten));}",