diff options
author | Eduardo Julian | 2019-02-03 11:53:21 -0400 |
---|---|---|
committer | Eduardo Julian | 2019-02-03 11:53:21 -0400 |
commit | cf9e3fa6fef24cc0828ab882661fa96dc6f2570d (patch) | |
tree | 082f91e8c84a72ace38a35b30a4acb61b8d27ab6 /stdlib/test | |
parent | 700f82c940794684cbce9535274f6d7ea3f9c692 (diff) |
Some refactoring around the identity function.
Diffstat (limited to 'stdlib/test')
-rw-r--r-- | stdlib/test/test/lux.lux | 5 |
1 files changed, 3 insertions, 2 deletions
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<Random>)]] ["_" 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." |