summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndy Davidoff <disruptek@users.noreply.github.com>2019-08-05 08:27:45 -0400
committerAndreas Rumpf <rumpf_a@web.de>2019-08-05 14:27:45 +0200
commitd208d7a99575fe8fdef9087aa4efd5c7e7781d9e (patch)
tree9120431b1258a786637b209fb63b8ddcf8a867b5 /tests
parent61c66abbfea43752acb73d5c451fef5fce8e0d35 (diff)
downloadNim-d208d7a99575fe8fdef9087aa4efd5c7e7781d9e.tar.gz
set[T].len is an alias for set[T].card (#11885) [feature]
Diffstat (limited to 'tests')
-rw-r--r--tests/sets/tsets.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sets/tsets.nim b/tests/sets/tsets.nim
index e68007d32..dbbeed543 100644
--- a/tests/sets/tsets.nim
+++ b/tests/sets/tsets.nim
@@ -207,6 +207,10 @@ echo warnUninit in gNotes
 doAssert {-1.int8, -2, -2}.card == 2
 doAssert {1, 2, 2, 3..5, 4..6}.card == 6
 
+# merely test the alias
+doAssert {-1.int8, -2, -2}.len == 2
+doAssert {1, 2, 2, 3..5, 4..6}.len == 6
+
 type Foo = enum
   Foo1 = 0
   Foo2 = 1