Sha256: 4ffaf7ce6ef1191dbccda2b24c20b01d3b16a4e13826e519b0f9c4cfe06e4f06

Contents?: true

Size: 423 Bytes

Versions: 11

Compression:

Stored size: 423 Bytes

Contents

require 'helper'

module AjaxCat

	class TestMosesPair < Test::Unit::TestCase
	  def test_moses_pair
	  	moses_ini_path = File.dirname(__FILE__) + "/../fixtures/moses.ini"
	  	@pair = MosesPair.new('cs-en',"moses",moses_ini_path)
	  	assert_equal(@pair.class, MosesPair, "right class")
	  	request = Request::Raw.new("das ist")
	  	result = @pair.process_request(request)
	  	assert_equal(724, result.size)
	  end
	end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ajax-cat-2.1.0 test/unit/test_moses_pair.rb
ajax-cat-2.0.5 test/unit/test_moses_pair.rb
ajax-cat-2.0.4 test/unit/test_moses_pair.rb
ajax-cat-2.0.3 test/unit/test_moses_pair.rb
ajax-cat-2.0.2 test/unit/test_moses_pair.rb
ajax-cat-2.0.1 test/unit/test_moses_pair.rb
ajax-cat-1.0.0 test/unit/test_moses_pair.rb
ajax-cat-0.5.0 test/unit/test_moses_pair.rb
ajax-cat-0.4.2 test/unit/test_moses_pair.rb
ajax-cat-0.4.1 test/unit/test_moses_pair.rb
ajax-cat-0.4.0 test/unit/test_moses_pair.rb