From b21bc0424f34ba782559e3b636fb96451c747eed Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sun, 26 Apr 2020 21:58:44 -0400 Subject: [PATCH] test for equality between builtin and user defined functions --- tests/get-function.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/get-function.rs b/tests/get-function.rs index bfd047d..757b0ec 100644 --- a/tests/get-function.rs +++ b/tests/get-function.rs @@ -46,6 +46,12 @@ test!( "a {b: get-function(lighten) == get-function(darken);}", "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!( inspect_builtin_function, "a {b: inspect(get-function(lighten));}",