This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'minitest/autorun' | |
| class TestMyFlatten < Minitest::Test | |
| def test_deeply_nested_arrays | |
| assert_equal [1,2,3,4], MyFlatten.new([[1,2,[3]],4]).flatten | |
| end | |
| def test_argument_error | |
| assert_raises ArgumentError do | |
| MyFlatten.new("not an array") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| BUNDLE_GEM__COC: "false" | |
| BUNDLE_GEM__TEST: "rspec" | |
| BUNDLE_CONSOLE: "pry" | |
| BUNDLE_JOBS: "4" | |
| BUNDLE_DISABLE_LOCAL_BRANCH_CHECK: "true" | |
| BUNDLE_PATH: "vendor/bundle" | |
| BUNDLE_DISABLE_SHARED_GEMS: "1" | |
| BUNDLE_BUILD__EVENTMACHINE: "--with-cppflags=-I/usr/local/opt/openssl/include" | |
| BUNDLE_GEM__MIT: "false" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| brian@Brians-MacBook-Pro:~/workspace/solidus(v1.2.2)% bundle exec rake | |
| Generating dummy Rails application... | |
| Setting up dummy database... | |
| bundle exec rake db:drop db:create db:migrate | |
| Skipping installation no generator to run... | |
| Generating dummy Rails application... | |
| Setting up dummy database... | |
| bundle exec rake db:drop db:create db:migrate | |
| Skipping installation no generator to run... | |
| Generating dummy Rails application... |
NewerOlder