mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
28 lines
470 B
C++
28 lines
470 B
C++
#pragma once
|
|
|
|
#include <iostream>
|
|
#include <cxxtest/TestSuite.h>
|
|
|
|
#include "../xlnt.h"
|
|
|
|
class PasswordHashTestSuite : public CxxTest::TestSuite
|
|
{
|
|
public:
|
|
PasswordHashTestSuite()
|
|
{
|
|
|
|
}
|
|
|
|
void test_hasher()
|
|
{
|
|
TS_ASSERT_EQUALS("CBEB", hash_password("test"));
|
|
}
|
|
|
|
void test_sheet_protection()
|
|
{
|
|
protection = SheetProtection();
|
|
protection.password = "test";
|
|
TS_ASSERT_EQUALS("CBEB", protection.password);
|
|
}
|
|
};
|