You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/tags/types_explainer_spec.rb
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,10 @@ def parse_fail(types)
218
218
"#weird_method?, #<=>, #!="=>"an object that responds to #weird_method?;
219
219
an object that responds to #<=>;
220
220
an object that responds to #!=",
221
-
":symbol, 'string'"=>"a literal value :symbol; a literal value 'string'"
221
+
":symbol, 'string'"=>"a literal value :symbol; a literal value 'string'",
222
+
"Hash{:key_one, :key_two => String; :key_three => Symbol}"=>"a Hash with keys made of (a literal value :key_one or a literal value :key_two) and values of (Strings) and keys made of (a literal value :key_three) and values of (Symbols)",
223
+
"Hash{:key_one, :key_two => String; :key_three => Symbol; :key_four => Hash{:sub_key_one => String}}"=>"a Hash with keys made of (a literal value :key_one or a literal value :key_two) and values of (Strings) and keys made of (a literal value :key_three) and values of (Symbols) and keys made of (a literal value :key_four) and values of (a Hash with keys made of (a literal value :sub_key_one) and values of (Strings))",
224
+
"Hash{:key_one => String, Number; :key_two => String}"=>"a Hash with keys made of (a literal value :key_one) and values of (Strings or Numbers) and keys made of (a literal value :key_two) and values of (Strings)"
0 commit comments