Sha256: 0390ce98233ee663cc67d3b74fdbd7f8705e2fd8cd6c137d40332bc1bb74db95

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

class AlgorithmDouble < Jeka::Algorithm
  
  add_tests File.join(File.dirname(__FILE__), '_tests', '**', '_test_*.rb')
  
  implementation 'c++' do |imp|
    imp.information = {language: 'c++', comment: 'Simple implementation in C++'}
    imp.compiler = Jeka::Compiler::Gpp.new([File.join(File.dirname(__FILE__), 'cpp', 'double.cpp')], {:o => 'double_cpp'})
  end
  
  implementation 'ruby' do |imp|
    imp.information = {language: 'ruby', comment: 'Simple implementation in Ruby'}
    imp.compiler = Jeka::Compiler::Ruby.new(File.join(File.dirname(__FILE__), 'ruby', 'double.rb'))
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jeka-0.2.0 test/double/algorithm_double.rb