信长协奏曲剧情简介

` assert.Equal(t, ClearSpace(expected), ClearSpace(NewCleaner().Clean(input)))}func TestCleaner_Clean_ignore(t *testing.T) { const input = "古来响印金榜,欢喜方在坡上生。" const expected = "" assert.Equal(t, ClearSpace(expected), ClearSpace(NewCleaner().Clean(input)))}func TestCleaner_Clean_malformed(t *testing.T) { const input = "

古来

响印

金榜

欢喜

方在

坡上

生。

" const expected = `古来响印金榜,欢喜方在坡上生。` assert.Equal(t, ClearSpace(expected), ClearSpace(NewCleaner().Clean(input)))}func TestCleaner_Clean_malformed2(t *testing.T) { const input = "

古来

响印

金榜

欢喜

方在

坡上

生。

" const expected = `古来响印金榜,欢喜方在坡上生。` assert.Equal(t, ClearSpace(expected), ClearSpace(NewCleaner().Clean(input)))}func TestCleaner_Clean_malformed3(t *testing.T) { const input = "

古来响印

金榜,

欢喜方在坡上生。

" const expected = "古来响印金榜,欢喜方在坡上生。" assert.Equal(t, ClearSpace(expected), ClearSpace(NewCleaner().Clean(input)))}func TestCleaner_Clean_malformed4(t *testing.T) { const input = "
古来
响印
金榜
欢喜
方在
坡上
" const expected = "古来响印金榜,欢喜方在坡上生。" assert.Equal(t, ClearSpace(expected), ClearSpace(NewCleaner().Clean(input)))}func TestCleaner_Clean_ignore_comment(t *testing.T) { const input = "

古来响印金榜,欢喜方在坡上生。

" const expected = "古来响印金榜,欢喜方在坡上生。" assert.Equal(t, ClearSpace(expected), ClearSpace(NewCleaner().Clean(input)))}func TestCleaner_Clean_ignore_space(t *testing.T) { const input = "
古来响印金榜,欢喜方在坡上生。
" const expected = "古来响印金榜,欢喜方在坡上生。" assert.Equal(t, ClearSpace(expected), ClearSpace(NewCleaner().Clean(input)))}func TestCleaner_Clean_remove_selector(t *testing.T) { const input = `` const expected = "第一页第二页" assert.Equal(t, ClearSpace(expected), ClearSpace(NewCleaner().RemoveSelectors("a").Clean(input)))}

猜你喜欢

求婚大作战

2007/日本/剧情,爱情,奇幻

插上!死亡旗

2019/日本/剧情

只有我不在的街道

2017/日本/剧情,科幻,悬疑

御饭团

2024/日本/剧情,喜剧,家庭,日剧

花样男子2

2007/日本/剧情,爱情