Ruby Koan: Constants become symbols
In the about_symbols.rb Ruby Koan (https://github.com/edgecase/ruby_koans), I have the following code:


        RubyConstant = "What is the sound of one hand clapping?"
        def test_constants_become_symbols
          all_symbols = Symbol.all_symbols
          
          assert_equal true, all_symbols.include?(:"nonexistent")
    
          assert_equal true, all_symbols.include?(:"What is the sound of one hand clapping?")
          assert_equal true, all_symbols.include?("What is the sound of one hand clapping?".to_sym)
        end


As is, the test passes.

Two questions:

1. Why does the first assert pass? :"nonexistent" should not be included in all_symbols but it is included so I must be misunderstanding something.

2. When I comment out the second assert, the test fails because "What is the sound of one hand clapping?".to_sym is not included in all_symbols whereas :"What is the sound of one hand clapping?" is included. Since they are equivalent, why does the last assert fail? Also, why does it pass when the second assert is not commented out? (Why does the second assert have any effect on the third assert?)

Thanks for your help!

Ruby Koan: Constants become symbols
===

In the about_symbols.rb Ruby Koan (https://github.com/edgecase/ruby_koans), I have the following code:


        RubyConstant = "What is the sound of one hand clapping?"
        def test_constants_become_symbols
          all_symbols = Symbol.all_symbols
          
          assert_equal true, all_symbols.include?(:"nonexistent")
    
          assert_equal true, all_symbols.include?(:"What is the sound of one hand clapping?")
          assert_equal true, all_symbols.include?("What is the sound of one hand clapping?".to_sym)
        end


As is, the test passes.

Two questions:

1. Why does the first assert pass? :"nonexistent" should not be included in all_symbols but it is included so I must be misunderstanding something.

2. When I comment out the second assert, the test fails because "What is the sound of one hand clapping?".to_sym is not included in all_symbols whereas :"What is the sound of one hand clapping?" is included. Since they are equivalent, why does the last assert fail? Also, why does it pass when the second assert is not commented out? (Why does the second assert have any effect on the third assert?)

Thanks for your help!
