davincicoders/ruby_koans_nhic0tine — pull request #7 by nhic0tine (2013-08-02 04:16:48+00:00)
Title: KOANS About Strings

* test_use_backslash_for_those_hard_cases
include syntax quotes in strings
* test_use_flexible_quoting_to_handle_really_hard_cases
use flexible quotes for hard cases such as sentencees
with to many string cases to track
* test_flexible_quotes_can_handle_multiple_lines
great for breakouts in text editor, easier to track
* test_here_documents_can_also_handle_multiple_lines
not sure what a document is? but it acts in the
same manner is a flexible quote
* test_plus_will_concatenate_two_strings
+= add two strings
* test_plus_concatenation_will_leave_the_original_strings_unmodified
+= original string is not affected
* test_plus_equals_will_concatenate_to_the_end_of_a_string
adds string to end of string
* test_plus_equals_also_will_leave_the_original_string_unmodified
original string not affected
* test_the_shovel_operator_will_also_append_content_to_a_string
* test_the_shovel_operator_modifies_the_original_string
<< will affect the original string, it attaches it self to variable
while += attaches it self to the string
* test_double_quoted_string_interpret_escape_characters
* test_single_quoted_string_do_not_interpret_escape_characters
* test_single_quotes_sometimes_interpret_escape_characters
* test_double_quoted_strings_interpolate_variables
* test_single_quoted_strings_do_not_interpolate
* test_any_ruby_expression_may_be_interpolated
* test_you_can_get_a_substring_from_a_string
* test_you_can_get_a_single_character_from_a_string
* test_strings_can_be_split
treats it like an array, space is default spilt pattern
* test_strings_can_be_split_with_different_patterns
split using symboles
* test_strings_can_be_joined
joined but remains a string not array
* test_strings_are_unique_objects