diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-12-18 15:44:24 +0200 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-12-18 15:44:24 +0200 |
commit | 43d6c5affc78755f8a45b242d8d39acc72bd3526 (patch) | |
tree | c09ad3fc849d662f914286e48d5ff64b7b18cbca /queue/list/add.rb | |
parent | 55ca438b2db24eadd2a5008f6f9d13fcf25a30fa (diff) |
Document queue
Diffstat (limited to 'queue/list/add.rb')
-rwxr-xr-x | queue/list/add.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/queue/list/add.rb b/queue/list/add.rb new file mode 100755 index 0000000..a8676d9 --- /dev/null +++ b/queue/list/add.rb @@ -0,0 +1,22 @@ +#!/usr/bin/ruby +# +# Add the same three tests over and over again. +# +# +require "redis" + +@redis = Redis.new(:host => "127.0.0.1") + + +x = [] + +x.push( "http://example.com/ must run http otherwise 'fail'" ) +x.push( "1.2.3.4 must run ping otherwise 'fail'" ) +x.push( "https://steve.net/ must run https otherwise 'fail'" ) + + +for i in 0 .. 10 + x.each do |test| + @redis.lpush('list', test) + end +end |