Repository navigation
IronRuby.Tests: port the interop behaviour only the deleted Tests/Interop checked - #142
Conversation
…erop checked An audit of the Tests/Interop mspec suite that #119 deleted found about 35 spec files whose behaviour no IronRuby.Tests test covered. Nearly all of it still works; these six tests pin it down with BCL types only (the old specs needed C# fixtures compiled from heredocs): - .NET Equals/GetHashCode of Ruby objects through eql?/hash, singletons, separate definitions and Ruby subclasses of CLR classes - number formatting and parsing under de-DE and ja-JP - delegates from blocks, Methods and lambdas; a handler added twice, removed three times (BindingList#ListChanged) - a Ruby class implementing INotifyPropertyChanged's event, directly and through method_missing - include after first instantiation, allocators of abstract/static classes, undef of CLR instance, static and singleton methods - methods, module functions and Ruby classes added to a CLR namespace The bugs the audit found are filed separately (#140, #141). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
#119 deleted
Tests/Interop, the old .NET interop mspec suite. Nothing ran it any more: it needed C# fixtures compiled from heredocs and a 2009 mspec. An audit of its 264 spec files found:Nearly all of that last group still works on master. This PR pins it down in
Src/IronRuby.Tests/Runtime/ClrInteropSpecTests.cs, using BCL types only:ClrInterop_EqualityHashing1: .NETEquals/GetHashCodeof Ruby objects througheql?/hash. Also covers singleton overrides, separate definitions, and Ruby subclasses of CLR classes.ClrInterop_Culture1: Float, format,Float()and BigDecimal under de-DE and ja-JP.ClrInterop_DelegatesEvents1: delegates from blocks, Methods and lambdas, and the argument errors of a delegate type'snew. A handler added twice fires twice, and removing it three times is no error.ClrInterop_InterfaceEvents1: a Ruby class implementingINotifyPropertyChanged.PropertyChanged, both directly and throughmethod_missing, subscribed from .NET.ClrInterop_TypeModification1: including an interface after the first instance exists, allocators of abstract and static classes, and undef of CLR instance, static and singleton methods.ClrInterop_Namespaces1: methods, module functions and Ruby classes added to and removed from a CLR namespace.The bugs the audit found are filed separately: #140 (
System::String#[String]) and #141 (Clr::Name.new(nil),new()constraint, generic inference from a Method, conversion messages).Tested: the full IronRuby.Tests suite on Linux net10.0 (1,076 tests, all pass), and the six new tests on Windows 11 net10.0.
🤖 Generated with Claude Code
Summary by CodeRabbit