erikdoe / ocmock

Mock objects for Objective-C
http://ocmock.org
Apache License 2.0
2.16k stars 606 forks source link

`byref` sometimes just returns 'R' as encoding #480

Closed dmaclach closed 3 years ago

dmaclach commented 3 years ago

Ran into some interesting cases where byref was not returning the expected values and OCMTypeWithoutQualifiers was running into issues and was actually returning the next type in a string.

erikdoe commented 3 years ago

Thank you. Interesting catch! I've obviously merged this PR but I did want to say that I reduced the test to the bare necessities. I like my tests damp, not dry, and I think the test should only cover what's in the code; instead of confirming some other assumptions about the runtime, too.