Runtime assertions for Ruby literal.fun
ruby
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add test for _Intersection

+12
+12
lib/literal/types.test.rb
··· 138 138 refute enumerable_interface === nil 139 139 end 140 140 141 + test "_Intersection" do 142 + type = _Intersection( 143 + _Interface(:size), 144 + _Interface(:each), 145 + ) 146 + 147 + assert type === [] 148 + assert type === Set.new 149 + 150 + refute type === "string" 151 + end 152 + 141 153 test "_Never" do 142 154 Fixtures::Objects.each do |object| 143 155 refute _Never === object