mirror of
https://github.com/overte-org/overte.git
synced 2025-06-22 13:41:49 +02:00
There was a bug in writeBitVector(), where the last byte was not consistantly written into the destination buffer. A unit test was added to verify that writeBitVector() and readBitVector() are correct.
23 lines
503 B
C++
23 lines
503 B
C++
//
|
|
// BitVectorHelperTests.h
|
|
// tests/shared/src
|
|
//
|
|
// Copyright 2018 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_BitVectorHelperTests_h
|
|
#define hifi_BitVectorHelperTests_h
|
|
|
|
#include <QtTest/QtTest>
|
|
|
|
class BitVectorHelperTests : public QObject {
|
|
Q_OBJECT
|
|
private slots:
|
|
void sizeTest();
|
|
void readWriteTest();
|
|
};
|
|
|
|
#endif // hifi_BitVectorHelperTests_h
|