Решение на Трета задача от Ангел Ангелов
Обратно към всички решения
Към профила на Ангел Ангелов
Резултати
- 5 точки от тестове
- 0 бонус точки
- 5 точки общо
- 37 успешни тест(а)
- 7 неуспешни тест(а)
Код
Лог от изпълнението
.F......FFFFFF..............................
Failures:
1) RBFS Directory can create empty directory
Failure/Error: directory.add_directory 'home'
ArgumentError:
wrong number of arguments (1 for 2)
# /tmp/d20141111-26053-17cu48g/solution.rb:59:in `add_directory'
# /tmp/d20141111-26053-17cu48g/spec.rb:150:in `block (3 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) RBFS Directory serialization #serialize can serialize
Failure/Error: directory.add_directory 'rbfs'
ArgumentError:
wrong number of arguments (1 for 2)
# /tmp/d20141111-26053-17cu48g/solution.rb:59:in `add_directory'
# /tmp/d20141111-26053-17cu48g/spec.rb:79:in `block (5 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) RBFS Directory serialization #serialize can serialize multiple directories recursively
Failure/Error: directory.add_directory 'rbfs'
ArgumentError:
wrong number of arguments (1 for 2)
# /tmp/d20141111-26053-17cu48g/solution.rb:59:in `add_directory'
# /tmp/d20141111-26053-17cu48g/spec.rb:88:in `block (5 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) RBFS Directory serialization ::parse can parse empty directories
Failure/Error: parsed_directory = RBFS::Directory.parse('0:0:')
NoMethodError:
undefined method `parse' for RBFS::Directory:Class
# /tmp/d20141111-26053-17cu48g/spec.rb:101:in `block (5 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) RBFS Directory serialization ::parse can parse directories with files
Failure/Error: parsed_directory = RBFS::Directory.parse(simple_serialized_string)
NoMethodError:
undefined method `parse' for RBFS::Directory:Class
# /tmp/d20141111-26053-17cu48g/spec.rb:108:in `block (5 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) RBFS Directory serialization ::parse can parse directory trees without files
Failure/Error: parsed_directory = RBFS::Directory.parse('0:2:dir1:15:0:1:dir2:4:0:0:dir3:4:0:0:')
NoMethodError:
undefined method `parse' for RBFS::Directory:Class
# /tmp/d20141111-26053-17cu48g/spec.rb:117:in `block (5 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) RBFS Directory serialization ::parse can parse directories recursively
Failure/Error: parsed_directory = RBFS::Directory.parse(recursive_serialized_string)
NoMethodError:
undefined method `parse' for RBFS::Directory:Class
# /tmp/d20141111-26053-17cu48g/spec.rb:125:in `block (5 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.04064 seconds
44 examples, 7 failures
Failed examples:
rspec /tmp/d20141111-26053-17cu48g/spec.rb:149 # RBFS Directory can create empty directory
rspec /tmp/d20141111-26053-17cu48g/spec.rb:76 # RBFS Directory serialization #serialize can serialize
rspec /tmp/d20141111-26053-17cu48g/spec.rb:84 # RBFS Directory serialization #serialize can serialize multiple directories recursively
rspec /tmp/d20141111-26053-17cu48g/spec.rb:100 # RBFS Directory serialization ::parse can parse empty directories
rspec /tmp/d20141111-26053-17cu48g/spec.rb:107 # RBFS Directory serialization ::parse can parse directories with files
rspec /tmp/d20141111-26053-17cu48g/spec.rb:116 # RBFS Directory serialization ::parse can parse directory trees without files
rspec /tmp/d20141111-26053-17cu48g/spec.rb:124 # RBFS Directory serialization ::parse can parse directories recursively
История (3 версии и 0 коментара)
Ангел обнови решението на 10.11.2014 16:20 (преди около 10 години)
Ангел обнови решението на 10.11.2014 16:42 (преди около 10 години)
Ангел обнови решението на 10.11.2014 16:53 (преди около 10 години)