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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# include "utils/blank_process.h"
# include <gtest/gtest.h>
# include <gmock/gmock.h>
TEST ( BlankProcess , BlankProcessTest ) {
std : : string test_str = " 我 今天 去 了 超市 花了 120 元。 " ;
std : : string out_str = ppspeech : : BlankProcess ( test_str ) ;
int ret = out_str . compare ( " 我今天去了超市花了120元。 " ) ;
EXPECT_EQ ( ret , 0 ) ;
test_str = " how are you today " ;
out_str = ppspeech : : BlankProcess ( test_str ) ;
ret = out_str . compare ( " how are you today " ) ;
EXPECT_EQ ( ret , 0 ) ;
test_str = " 我 的 paper 在 哪里? " ;
out_str = ppspeech : : BlankProcess ( test_str ) ;
ret = out_str . compare ( " 我的paper在哪里? " ) ;
EXPECT_EQ ( ret , 0 ) ;
test_str = " 我 今天 去 了 超市 花了 120 元。 " ;
out_str = ppspeech : : BlankProcess ( test_str ) ;
ret = out_str . compare ( " 我今天去了超市花了120元。 " ) ;
EXPECT_EQ ( ret , 0 ) ;
}