Skip to content

Commit

Permalink
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -77,6 +77,15 @@ public boolean xor(boolean other) {
return true ^ other;
}

@Specialization
public boolean xor(RubyNilClass other) {
return true;
}

@Specialization(guards = "!isNil")
public boolean xor(RubyObject other) {
return false;
}
}

@CoreMethod(names = {"to_s", "inspect"}, needsSelf = false)
1 change: 0 additions & 1 deletion spec/truffle/tags/core/true/xor_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/truffle/truffle.mspec
Original file line number Diff line number Diff line change
@@ -58,7 +58,6 @@ class MSpecScript
"^spec/ruby/core/file/stat/ftype_spec.rb",
"^spec/ruby/core/file/stat/sticky_spec.rb",
"^spec/ruby/core/file/sticky_spec.rb",
"^spec/ruby/core/true/xor_spec.rb",
"^spec/ruby/core/fixnum/exponent_spec.rb",
"^spec/ruby/core/fixnum/right_shift_spec.rb",
"^spec/ruby/core/io/isatty_spec.rb",

0 comments on commit 581ca54

Please sign in to comment.