mirror of https://github.com/dnomd343/klotski.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
792 B
23 lines
792 B
2 years ago
|
#include "klotski.h"
|
||
|
#include "all_cases.h"
|
||
|
#include "short_code.h"
|
||
|
#include "gtest/gtest.h"
|
||
|
|
||
|
using klotski::AllCases;
|
||
|
using klotski::ShortCode;
|
||
|
using klotski::BasicRanges;
|
||
|
|
||
|
TEST(FFI, codec_warm_up) {
|
||
|
// short code normal mode check
|
||
|
EXPECT_EQ(is_short_code_available(), BasicRanges::status() == BasicRanges::AVAILABLE);
|
||
|
short_code_enable();
|
||
|
EXPECT_EQ(is_short_code_available(), true);
|
||
|
EXPECT_EQ(is_short_code_available(), BasicRanges::status() == BasicRanges::AVAILABLE);
|
||
|
|
||
|
// short code fast mode check
|
||
|
EXPECT_EQ(is_short_code_available_fast(), AllCases::status() == AllCases::AVAILABLE);
|
||
|
short_code_enable_fast();
|
||
|
EXPECT_EQ(is_short_code_available_fast(), true);
|
||
|
EXPECT_EQ(is_short_code_available_fast(), AllCases::status() == AllCases::AVAILABLE);
|
||
|
}
|