@@ -26,7 +26,7 @@ const REDIS_EXPIRED_KEY = -2
2626 @test del (conn, testkey, " notakey" , " notakey2" ) == 1 # only 1 of 3 key exists
2727
2828 # 'NIL'
29- @test get (conn, " notakey" ) == nothing
29+ @test get (conn, " notakey" ) === nothing
3030
3131 set (conn, testkey, s1)
3232 set (conn, testkey2, s2)
@@ -143,12 +143,12 @@ end
143143 @test lpush (conn, testkey, s1, s2, " a" , " a" , s3, s4) == 6
144144 @test lpop (conn, testkey) == s4
145145 @test rpop (conn, testkey) == s1
146- @test lpop (conn, " non_existent_list" ) == nothing
147- @test rpop (conn, " non_existent_list" ) == nothing
146+ @test lpop (conn, " non_existent_list" ) === nothing
147+ @test rpop (conn, " non_existent_list" ) === nothing
148148 @test llen (conn, testkey) == 4
149- @test lindex (conn, " non_existent_list" , 1 ) == nothing
149+ @test lindex (conn, " non_existent_list" , 1 ) === nothing
150150 @test lindex (conn, testkey, 0 ) == s3
151- @test lindex (conn, testkey, 10 ) == nothing
151+ @test lindex (conn, testkey, 10 ) === nothing
152152 @test lrem (conn, testkey, 0 , " a" ) == 2
153153 @test lset (conn, testkey, 0 , s5) == " OK"
154154 @test lindex (conn, testkey, 0 ) == s5
167167 for i in 1 : 3
168168 @test rpoplpush (conn, testkey, testkey2) == listvals[4 - i] # rpop
169169 end
170- @test rpoplpush (conn, testkey, testkey2) == nothing
170+ @test rpoplpush (conn, testkey, testkey2) === nothing
171171 @test llen (conn, testkey) == 0
172172 @test llen (conn, testkey2) == 3
173173 @test lrange (conn, testkey2, 0 , - 1 ) == listvals
@@ -191,11 +191,11 @@ end
191191 @test hget (conn, testhash, 1 ) == " 2"
192192 @test hgetall (conn, testhash) == Dict (" 1" => " 2" , " 3" => " 4" , " 5" => " 6" )
193193
194- @test hget (conn, testhash, " non_existent_field" ) == nothing
194+ @test hget (conn, testhash, " non_existent_field" ) === nothing
195195 @test hmget (conn, testhash, 1 , 3 ) == [" 2" , " 4" ]
196196 a = hmget (conn, testhash, " non_existent_field1" , " non_existent_field2" )
197- @test a[1 ] == nothing
198- @test a[2 ] == nothing
197+ @test a[1 ] === nothing
198+ @test a[2 ] === nothing
199199
200200 @test Set (hvals (conn, testhash)) == Set ([" 2" , " 4" , " 6" ]) # use Set for comp as hash ordering is random
201201 @test Set (hkeys (conn, testhash)) == Set ([" 1" , " 3" , " 5" ])
@@ -239,13 +239,13 @@ end
239239 @test sinterstore (conn, testkey3, testkey, testkey2) == 1
240240 # only the following method returns 'nil' if the Set does not exist
241241 @test srandmember (conn, testkey3) in Set ([s1, s2, s3])
242- @test srandmember (conn, " empty_set" ) == nothing
242+ @test srandmember (conn, " empty_set" ) === nothing
243243 # this method returns an emtpty Set if the the Set is empty
244244 @test issubset (srandmember (conn, testkey2, 2 ), Set ([s1, s2, s3]))
245245 @test srandmember (conn, " non_existent_set" , 10 ) == Set {AbstractString} ()
246246 @test sdiff (conn, testkey, testkey2) == Set ([s1])
247247 @test spop (conn, testkey) in Set ([s1, s2, s3])
248- @test spop (conn, " empty_set" ) == nothing
248+ @test spop (conn, " empty_set" ) === nothing
249249 del (conn, testkey, testkey2, testkey3)
250250end
251251
287287 @test zrank (conn, testkey, " d" ) == 3 # redis arrays 0-base
288288
289289 # 'NIL'
290- @test zrank (conn, testkey, " z" ) == nothing
290+ @test zrank (conn, testkey, " z" ) === nothing
291291 del (conn, testkey)
292292
293293 zadd (conn, testkey, zip (1 : length (vals), vals)... )
301301 @test zrevrangebyscore (conn, testkey, 7 , 5 ) == OrderedSet ([" g" , " f" , " e" ])
302302 @test zrevrangebyscore (conn, testkey, " (6" , " (5" ) == OrderedSet {AbstractString} ()
303303 @test zrevrank (conn, testkey, " e" ) == 5
304- @test zrevrank (conn, " ordered_set" , " non_existent_member" ) == nothing
304+ @test zrevrank (conn, " ordered_set" , " non_existent_member" ) === nothing
305305 @test zscore (conn, testkey, " e" ) == " 5"
306- @test zscore (conn, " ordered_set" , " non_existent_member" ) == nothing
306+ @test zscore (conn, " ordered_set" , " non_existent_member" ) === nothing
307307 del (conn, testkey)
308308
309309 vals2 = [" a" , " b" , " c" , " d" ]
0 commit comments