Skip to content

Commit

Permalink
[Truffle] Finished the TrueClass#^ implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed Nov 26, 2014
1 parent 2502d3f commit 581ca54
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Expand Up @@ -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)
Expand Down
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
Expand Up @@ -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",
Expand Down

0 comments on commit 581ca54

Please sign in to comment.