Skip to content

Commit 49f4b7b

Browse files
author
Nico Madysa
committed
Fix minor correctness bug in test FannTestData::ScaleData.
The first output of the second pattern was accessed as if it were the second output of the first pattern. This works because the patterns are allocated in contiguous memory anyway, but it is technically incorrect.
1 parent 34d4acd commit 49f4b7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fann_test_data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ TEST_F(FannTestData, ScaleData) {
160160
}
161161

162162
EXPECT_DOUBLE_EQ(-1.0, data.get_train_output(0)[0]);
163-
EXPECT_DOUBLE_EQ(2.0, data.get_train_output(0)[1]);
163+
EXPECT_DOUBLE_EQ(2.0, data.get_train_output(1)[0]);
164164

165165
}
166166

0 commit comments

Comments
 (0)