Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test quora: reduce checking #190

Merged
merged 2 commits into from
Jan 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 7 additions & 21 deletions test/test-quora-duplicate-question-pair.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,12 @@ def record(*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,
])
assert_equal(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),
@dataset.each.next)
end
end