Skip to content

Commit 650ed86

Browse files
committed
Well, I took out one test which wasn't really necessary and realized
it's all working again. Mysterious.
1 parent 7694b11 commit 650ed86

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/ruby/spec/index_spec.rb

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030

3131
describe Flann::Index do
32-
[:byte, :float32, :float64].each do |dtype|
32+
[:byte, :int32, :float32, :float64].each do |dtype|
3333
context dtype.inspect do
3434
before :each do
3535
scale = [:byte, :int32, :int64].include?(dtype) ? 255 : 1.0
@@ -44,21 +44,6 @@
4444
end
4545

4646

47-
context "#build!" do
48-
it "builds a kdtree index with block parameters" do
49-
scale = [:byte, :int].include?(dtype) ? 255 : 1.0
50-
51-
@dataset = NMatrix.random([1000,128], dtype: dtype, scale: scale)
52-
@testset = NMatrix.random([100,128], dtype: dtype, scale: scale)
53-
@index = Flann::Index.new(@dataset) do |t|
54-
t[:algorithm] = :kdtree
55-
t[:trees] = 4
56-
end
57-
@index.build!
58-
end
59-
end
60-
61-
6247
context "#nearest_neighbors" do
6348
it "runs without error" do
6449
@index.nearest_neighbors @testset, 5

0 commit comments

Comments
 (0)