mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
move spec and src files to a shardy way
This commit is contained in:
parent
928c1517dc
commit
44559f6f95
7 changed files with 15 additions and 19 deletions
18
spec/result_set_spec.cr
Normal file
18
spec/result_set_spec.cr
Normal file
|
@ -0,0 +1,18 @@
|
|||
require "./spec_helper"
|
||||
|
||||
describe DB::ResultSet do
|
||||
it "should enumerate records using each" do
|
||||
nums = [] of Int32
|
||||
|
||||
with_dummy do |db|
|
||||
db.query "3,4 1,2" do |rs|
|
||||
rs.each do
|
||||
nums << rs.read(Int32)
|
||||
nums << rs.read(Int32)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
nums.should eq([3, 4, 1, 2])
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue