Решение на Четвърта задача от Делян Димитров
Обратно към всички решения
Към профила на Делян Димитров
Резултати
- 1 точка от тестове
- 0 бонус точки
- 1 точка общо
- 1 успешни тест(а)
- 10 неуспешни тест(а)
Код
Лог от изпълнението
FFFFFFFFFF.
Failures:
1) Command Line Toolkit arranges components horizontally by default
Failure/Error: label text: '1'
NoMethodError:
undefined method `label' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a97554>
# /tmp/d20141126-26053-1dbmfby/spec.rb:21:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:20:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
2) Command Line Toolkit adding horizontal group does not change the behavior
Failure/Error: horizontal do
NoMethodError:
undefined method `horizontal' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a96244>
# /tmp/d20141126-26053-1dbmfby/spec.rb:31:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:30:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
3) Command Line Toolkit verical group orders elements vertically
Failure/Error: vertical do
NoMethodError:
undefined method `vertical' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a95010>
# /tmp/d20141126-26053-1dbmfby/spec.rb:43:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:42:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
4) Command Line Toolkit handles complex group nestings
Failure/Error: vertical do
NoMethodError:
undefined method `vertical' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a8fd18>
# /tmp/d20141126-26053-1dbmfby/spec.rb:57:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:56:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
5) Command Line Toolkit wraps vertically-aligned components correctly in border
Failure/Error: vertical border: '|' do
NoMethodError:
undefined method `vertical' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a8e760>
# /tmp/d20141126-26053-1dbmfby/spec.rb:86:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:85:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
6) Command Line Toolkit handles borders correctly in complex group nestings
Failure/Error: vertical border: '|' do
NoMethodError:
undefined method `vertical' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a8d3b0>
# /tmp/d20141126-26053-1dbmfby/spec.rb:100:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:99:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
7) Command Line Toolkit applies upcase to simple components
Failure/Error: label text: 'some', style: :upcase
NoMethodError:
undefined method `label' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a8c0a0>
# /tmp/d20141126-26053-1dbmfby/spec.rb:129:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:128:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
8) Command Line Toolkit propagates upcase to child components
Failure/Error: horizontal do
NoMethodError:
undefined method `horizontal' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a86b78>
# /tmp/d20141126-26053-1dbmfby/spec.rb:138:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:137:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
9) Command Line Toolkit applies downcase to simple components
Failure/Error: label text: 'SOME'
NoMethodError:
undefined method `label' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a8541c>
# /tmp/d20141126-26053-1dbmfby/spec.rb:164:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:163:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
10) Command Line Toolkit propagates downcase to child components
Failure/Error: horizontal do
NoMethodError:
undefined method `horizontal' for #<RSpec::Core::ExampleGroup::Nested_1:0xb9a766b0>
# /tmp/d20141126-26053-1dbmfby/spec.rb:173:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/solution.rb:39:in `draw'
# /tmp/d20141126-26053-1dbmfby/spec.rb:8:in `block (3 levels) in <top (required)>'
# /tmp/d20141126-26053-1dbmfby/spec.rb:172:in `block (2 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (3 levels) in <top (required)>'
# ./lib/language/ruby/run_with_timeout.rb:5:in `block (2 levels) in <top (required)>'
Finished in 0.0171 seconds
11 examples, 10 failures
Failed examples:
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:19 # Command Line Toolkit arranges components horizontally by default
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:29 # Command Line Toolkit adding horizontal group does not change the behavior
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:41 # Command Line Toolkit verical group orders elements vertically
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:55 # Command Line Toolkit handles complex group nestings
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:84 # Command Line Toolkit wraps vertically-aligned components correctly in border
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:98 # Command Line Toolkit handles borders correctly in complex group nestings
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:127 # Command Line Toolkit applies upcase to simple components
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:136 # Command Line Toolkit propagates upcase to child components
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:162 # Command Line Toolkit applies downcase to simple components
rspec /tmp/d20141126-26053-1dbmfby/spec.rb:171 # Command Line Toolkit propagates downcase to child components
История (2 версии и 0 коментара)
Делян обнови решението на 25.11.2014 22:36 (преди почти 10 години)
Делян обнови решението на 25.11.2014 23:41 (преди почти 10 години)