Listing Out Errors
Listing Out Errors
-
/Users/mac/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb: /Users/mac/Code/ruby-toy__string-segmentation/tests/string_segmenter_test.rb:16: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError) rake aborted! Command failed with status (1): [ruby -I”lib:tests” -I”/Users/mac/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.5.0/lib” “/Users/mac/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb” “tests/*/_test.rb” ] Tasks: TOP => default => test (See full trace by running task with –trace)
-
5 runs, 5 assertions, 3 failures, 0 errors, 0 skips rake aborted! Command failed with status (1): [ruby -I”lib:tests” -I”/Users/mac/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.5.0/lib” “/Users/mac/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb” “tests/*/_test.rb” ]
-
➜ ruby-toy__string-segmentation git:(master) ✗ rake /Users/mac/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb: /Users/mac/Code/ruby-toy__string-segmentation/lib/dictionary.rb:12: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError) rake aborted! Command failed with status (1): [ruby -I”lib:tests” -I”/Users/mac/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.5.0/lib” “/Users/mac/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/rake-10.5.0/lib/rake/rake_test_loader.rb” “tests/*/_test.rb” ] Tasks: TOP => default => test (See full trace by running task with –trace)
-
lib/string_segmenter.rb:2: dynamic constant assignment Dictionary=[“cat”, “jog”] ^ lib/string_segmenter.rb:4: dynamic constant assignment Final=[] ^ lib/string_segmenter.rb:12: syntax error, unexpected tIDENTIFIER, expecting keyword_do or ‘{‘ or ‘(‘ Final « str.slice(0,current itteration) ^ lib/string_segmenter.rb:15: syntax error, unexpected end-of-input, expecting keyword_end
-
➜ ruby-toy__string-segmentation git:(master) ✗ ruby lib/string_segmenter.rb /Users/mac/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require': cannot load such file -- dictionary (LoadError) from /Users/mac/.rbenv/versions/2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
require’ from lib/string_segmenter.rb:1:in `' for the problem, or, if the code is where your issue lies. Be specific about the particular step you are stuck on, your expected return and your actual return.