@@ -164,14 +164,12 @@ foo =
164164 -- assert.same("qux", bundle["bar.bax"]())
165165 -- assert.same("qux", bundle.bar:get_attribute("bax")())
166166 assert .same (" baz" , bundle .bar ())
167- -- TODO fix property accessor on resource
168- -- assert.same("baz", en.bar())
167+ assert .same (" baz" , en .bar ())
169168 assert .same (" baz" , bundle :format (" bar" ))
170169 assert .same (" qux" , bundle :get_message (" bar" ):get_attribute (" bax" )())
171170 bundle :add_messages (" bar = rebar" )
172171 assert .same (" rebar" , bundle .bar ())
173- -- TODO fix property accessor on resource
174- -- assert.same("rebar", en.bar())
172+ assert .same (" rebar" , en .bar ())
175173 assert .same (" rebar" , bundle :format (" bar" ))
176174 assert .error (function () return bundle :get_message (" bar" ):get_attribute (" bax" )() end )
177175 -- assert.same("qux", bundle.bar.bax())
@@ -239,6 +237,9 @@ foo =
239237 local tr = bundle :get_resource (" tr" )
240238 assert .same (" merhaba" , tr :format (" hi" ))
241239 assert .same (" hello" , en :format (" hi" ))
240+ -- TODO Penlight hack doesn't work around this?
241+ -- assert.same("merhaba", tr.hi())
242+ -- assert.same("hello", en.hi())
242243 end )
243244
244245end )
0 commit comments