Sha256: 774eae19904c3a2e9242a96a1cf2362482b038ae3b9777b7078da21d9794a013

Contents?: true

Size: 1.05 KB

Versions: 3

Compression:

Stored size: 1.05 KB

Contents

class QuoraDuplicateQuestionPairTest < Test::Unit::TestCase
  def setup
    @dataset = Datasets::QuoraDuplicateQuestionPair.new
  end

  def record(*args)
    Datasets::QuoraDuplicateQuestionPair::Record.new(*args)
  end

  test("#each") do
    records = @dataset.each.to_a
    assert_equal([
                   404290,
                   record(0,
                          1,
                          2,
                          "What is the step by step guide to invest in share market in india?",
                          "What is the step by step guide to invest in share market?",
                          false),
                   record(404289,
                          537932,
                          537933,
                          "What is like to have sex with cousin?",
                          "What is it like to have sex with your cousin?",
                          false),
                 ],
                 [
                   records.size,
                   records.first,
                   records.last,
                 ])
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
red-datasets-0.1.7 test/test-quora-duplicate-question-pair.rb
red-datasets-0.1.6 test/test-quora-duplicate-question-pair.rb
red-datasets-0.1.5 test/test-quora-duplicate-question-pair.rb