mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-21 22:55:57 +08:00
20 lines
346 B
C++
20 lines
346 B
C++
#include "test_command.h"
|
|
#include "Command.h"
|
|
|
|
#include <QTest>
|
|
|
|
void TestCommand::prepareCommand()
|
|
{
|
|
//given
|
|
//Command class
|
|
|
|
//when
|
|
QByteArray actualResult = Command::getByteRepresentation("EXISTS testkey:test");
|
|
|
|
//then
|
|
QCOMPARE(actualResult, QByteArray("*2\r\n$6\r\nEXISTS\r\n$12\r\ntestkey:test\r\n"));
|
|
}
|
|
|
|
|
|
|