From cf9e3fa6fef24cc0828ab882661fa96dc6f2570d Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sun, 3 Feb 2019 11:53:21 -0400 Subject: Some refactoring around the identity function. --- stdlib/test/test/lux.lux | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'stdlib/test') diff --git a/stdlib/test/test/lux.lux b/stdlib/test/test/lux.lux index 72b9f45ef..0e41a961c 100644 --- a/stdlib/test/test/lux.lux +++ b/stdlib/test/test/lux.lux @@ -6,6 +6,7 @@ [data [number ["." i64]]] + ["." function] ["." math ["r" random (#+ Random) ("r/." Functor)]] ["_" test (#+ Test)]] @@ -21,8 +22,8 @@ ($_ _.and (_.test "Every value is identical to itself." (is? self self)) - (_.test "The 'id' function doesn't change values in any way." - (is? self (id self))) + (_.test "The identity function doesn't change values in any way." + (is? self (function.identity self))) (do @ [other (r.unicode 1)] (_.test "Values created separately can't be identical." -- cgit v1.2.3