mirror of
https://github.com/janet-lang/janet
synced 2025-10-17 00:37:39 +00:00
Merge pull request #340 from pepe/get-vs-in-last
Fix last for empty collection, add tests
This commit is contained in:
@@ -237,4 +237,8 @@ neldb\0\0\0\xD8\x05printG\x01\0\xDE\xDE\xDE'\x03\0marshal_tes/\x02
|
||||
load-image-dict))
|
||||
(gccollect)
|
||||
|
||||
# in vs get regression
|
||||
(assert (nil? (first @"")) "in vs get 1")
|
||||
(assert (nil? (last @"")) "in vs get 1")
|
||||
|
||||
(end-suite)
|
||||
|
Reference in New Issue
Block a user