Class: GSL4r::Complex::Harness

Inherits:
Object
  • Object
show all
Includes:
Harness
Defined in:
lib/gsl4r/complex.rb

Constant Summary

Constants included from Harness

Harness::TEST_DIR

Instance Attribute Summary

Attributes included from Harness

#c_binary, #c_includes, #c_libs, #c_src_name, #c_tests, #r_footer, #r_header

Instance Method Summary collapse

Methods included from Harness

#compile_c_tests, #run_c_tests, #write_c_tests

Constructor Details

#initializeHarness

Returns a new instance of Harness.



158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/gsl4r/complex.rb', line 158

def initialize
	@c_compiler = "gcc"
	@c_src_name = "gsl_complex_tests_gen.c"
	@c_binary = "gsl_complex_tests_gen"
	@c_includes = ["gsl/gsl_complex.h","gsl/gsl_complex_math.h"]
	@c_flags = [`gsl-config --libs`.chomp,`gsl-config --cflags`.chomp]
	@c_tests = ::GSL4r::Complex::Methods.methods.grep(/^c_test/)
	@r_header = %Q{$: << File.join('..','lib')\\nrequire 'test/unit'\\nrequire 'test/unit/autorunner'\\nrequire 'gsl4r/complex'\\ninclude GSL4r::Complex\\nclass ComplexTests < Test::Unit::TestCase\\n  EPSILON = 5.0e-15}

	@r_footer = %Q{end}

end