5 . a5/tests a5/master problem longest longest.rb build ((echo -n "load 'a5/check-longest.rb';"; cat longest.rb) >.longest-chk.rb) test longest-version case ruby --version /* Note: Trying to use -r produces this: $ ruby -r ./a5/check-longest.rb longest.rb (eval):1:in `-': oops -- can't use '-' for that type! (RuntimeError) from /usr/local/rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/monitor.rb:196:in `mon_exit' from /usr/local/rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:143:in `ensure in require' from /usr/local/rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:143:in `require' */ oops test longest template ulimit -t 5; #case -diffw ruby .longest-chk.rb < a5/lg.1 case ruby .longest-chk.rb < a5/lg.1 case ruby .longest-chk.rb < a5/lg.2 case egrep ^o /usr/share/dict/words | ruby .longest-chk.rb case ruby .longest-chk.rb < /dev/null case ruby .longest-chk.rb < /dev/null | wc -c case ruby .longest-chk.rb < a5/lg.3 case ruby .longest-chk.rb < /usr/share/dict/words case egrep ^q /usr/share/dict/words | ruby .longest-chk.rb case egrep ^w /usr/share/dict/words | ruby .longest-chk.rb case egrep ^wo /usr/share/dict/words | ruby .longest-chk.rb problem seqwords seqwords.rb build ((echo "# encoding: US-ASCII"; echo "load 'a5/check-seqwords.rb'"; cat seqwords.rb) >.seqwords-chk.rb) test seqwords-version case ruby --version test seqwords template ulimit -t 2; case ruby .seqwords-chk.rb < a5/sw.1 | sed "s/ *$//" case ruby .seqwords-chk.rb < a5/sw.2 | sed "s/ *$//" case ruby .seqwords-chk.rb < a5/sw.3 | sed "s/ *$//" case ruby .seqwords-chk.rb < a5/sw.4 | sed "s/ *$//" case ruby .seqwords-chk.rb < a5/sw.5 | sed "s/ *$//" problem xfield xfield.rb build true test xfield-version case ruby --version test xfield template ulimit -t 2; case ruby xfield.rb 1 3 < a5/xf.1 case ruby xfield.rb 3 2 1 < a5/xf.1 case ruby xfield.rb -1 1 < a5/xf.1 case ruby xfield.rb -1 1 2 -2 < a5/xf.1 case ruby xfield.rb 1 10 2 < a5/xf.1 case ruby xfield.rb -s... 1 3 1 < a5/xf.1 case echo 1/-4 2/-3 3/-2 4/-1 | ruby xfield.rb 1 2 3 2 5 6 7 8 2 5 1 3 -1 -2 -3 -4 4 -5 4 -3 -3 -2 -10 -100 -1 -1 -5 case ruby xfield.rb -d: 1 5 -1 < a5/xf.4 case ruby xfield.rb -d/ 3 2 -10 < a5/xf.4 case ruby xfield.rb int= 2 ", real=" 3 ", english=" 1 < a5/xf.1 case ruby xfield.rb -s. 1 2 3 < a5/xf.2 case ruby xfield.rb -s. A 1 2 3 B C < a5/xf.2 case ruby xfield.rb -s. A 1 B C 2 3 D < a5/xf.2 case ruby xfield.rb -s. A 1 B C 2 D 3 E < a5/xf.2 case ruby xfield.rb -dx -s- 1 2 3 < a5/xf.3 case ruby xfield.rb -dx -s- -1 ... -2 -3 @ < a5/xf.3 case ruby xfield.rb -s/ -de 1 2 < a5/xf.1 case ruby xfield.rb -s/ -d: 1 x 2 3 < /dev/null case ruby xfield.rb < /dev/null case ruby xfield.rb -d. < /dev/null case ruby xfield.rb -s1 -d: -d. -s2 -d, -s. 1 < /dev/null case ruby xfield.rb -d, -s. 1 < /dev/null