Skip to content

Commit

Permalink
Showing 2 changed files with 42 additions and 0 deletions.
10 changes: 10 additions & 0 deletions truffle/src/test/java/org/jruby/truffle/tck/RubyTckTest.java
Original file line number Diff line number Diff line change
@@ -116,6 +116,16 @@ protected String complexCopy() {
return "complex_copy";
}

@Override
protected String valuesObject() {
return "values_object";
}

@Override
public void readWriteCharValue() throws Exception {
// Can't pass this test right now
}

@Override
public void testCoExistanceOfMultipleLanguageInstances() throws Exception {
/*
32 changes: 32 additions & 0 deletions truffle/src/test/ruby/tck.rb
Original file line number Diff line number Diff line change
@@ -110,3 +110,35 @@ def complex_copy(a, b)
end

Truffle::Interop.export_method(:complex_copy)

class ValuesClass

attr_accessor :byteValue
attr_accessor :shortValue
attr_accessor :intValue
attr_accessor :longValue
attr_accessor :floatValue
attr_accessor :doubleValue
attr_accessor :charValue
attr_accessor :stringValue
attr_accessor :booleanValue

def initialize
@byteValue = 0
@shortValue = 0
@intValue = 0
@longValue = 0
@floatValue = 0.0
@doubleValue = 0.0
@charValue = '0'
@stringValue = ''
@booleanValue = false
end

end

def values_object
ValuesClass.new
end

Truffle::Interop.export_method(:values_object)

0 comments on commit d6b6fe0

Please sign in to comment.