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: lib/elixir/test/elixir/string/chars_test.exs
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ defmodule String.Chars.ErrorsTest do
106
106
test"bitstring"do
107
107
message=
108
108
"""
109
-
protocol String.Chars not implemented for type BitString, cannot convert a bitstring to a string
109
+
protocol String.Chars not implemented for BitString, cannot convert a bitstring to a string
110
110
111
111
Got value:
112
112
@@ -120,7 +120,7 @@ defmodule String.Chars.ErrorsTest do
120
120
121
121
test"tuple"do
122
122
message="""
123
-
protocol String.Chars not implemented for type Tuple
123
+
protocol String.Chars not implemented for Tuple
124
124
125
125
Got value:
126
126
@@ -134,7 +134,7 @@ defmodule String.Chars.ErrorsTest do
134
134
135
135
test"PID"do
136
136
message=
137
-
~r"^protocol String\.Chars not implemented for type PID\n\nGot value:\n\n #PID<.+?>$"
137
+
~r"^protocol String\.Chars not implemented for PID\n\nGot value:\n\n #PID<.+?>$"
138
138
139
139
assert_raiseProtocol.UndefinedError,message,fn->
140
140
to_string(self())
@@ -143,7 +143,7 @@ defmodule String.Chars.ErrorsTest do
143
143
144
144
test"ref"do
145
145
message=
146
-
~r"^protocol String\.Chars not implemented for type Reference\n\nGot value:\n\n #Reference<.+?>$"
146
+
~r"^protocol String\.Chars not implemented for Reference\n\nGot value:\n\n #Reference<.+?>$"
147
147
148
148
assert_raiseProtocol.UndefinedError,message,fn->
149
149
to_string(make_ref())==""
@@ -152,7 +152,7 @@ defmodule String.Chars.ErrorsTest do
152
152
153
153
test"function"do
154
154
message=
155
-
~r"^protocol String\.Chars not implemented for type Function\n\nGot value:\n\n #Function<.+?>$"
155
+
~r"^protocol String\.Chars not implemented for Function\n\nGot value:\n\n #Function<.+?>$"
156
156
157
157
assert_raiseProtocol.UndefinedError,message,fn->
158
158
to_string(fn->nilend)
@@ -163,7 +163,7 @@ defmodule String.Chars.ErrorsTest do
163
163
[port|_]=Port.list()
164
164
165
165
message=
166
-
~r"^protocol String\.Chars not implemented for type Port\n\nGot value:\n\n #Port<.+?>$"
166
+
~r"^protocol String\.Chars not implemented for Port\n\nGot value:\n\n #Port<.+?>$"
167
167
168
168
assert_raiseProtocol.UndefinedError,message,fn->
169
169
to_string(port)
@@ -172,7 +172,7 @@ defmodule String.Chars.ErrorsTest do
172
172
173
173
test"user-defined struct"do
174
174
message=
175
-
"protocol String\.Chars not implemented for type String.Chars.ErrorsTest.Foo (a struct)\n\nGot value:\n\n %String.Chars.ErrorsTest.Foo{foo: \"bar\"}\n"
175
+
"protocol String\.Chars not implemented for String.Chars.ErrorsTest.Foo (a struct)\n\nGot value:\n\n %String.Chars.ErrorsTest.Foo{foo: \"bar\"}\n"
0 commit comments