华容道高性能计算引擎
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.
 
 
 
 
 

22 lines
792 B

#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);
}