Sha256: 9bc9a3799162caf3c95b414ee5691283e20adc724dbd24ddeefb880daf665480
Contents?: true
Size: 279 Bytes
Versions: 1
Compression:
Stored size: 279 Bytes
Contents
# encoding: utf-8 require 'tty-command' cmd = TTY::Command.new path = File.expand_path("../spec/fixtures/infinite_input", __dir__) range = 1..Float::INFINITY infinite_input = range.lazy.map { |x| x }.first(10_000).join("\n") cmd.run(path, input: infinite_input, timeout: 2)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tty-command-0.8.1 | examples/timeout_input.rb |