Skip to content

Commit

Permalink
stkb#38: add test for Cyrillic
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed May 20, 2017
1 parent 4da8139 commit 35cfd30
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/features.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import makeTest from './makeTest'


suite("Features", () => {

const featureTest = makeTest(() => testFeature)

featureTest('basic_single.js')
featureTest('basic_multi.js')
featureTest('blank_lines_single.js')
Expand All @@ -15,15 +15,16 @@ suite("Features", () => {
featureTest('jsdoc.js')
featureTest('xmldoc.cs')
featureTest('normalText.rb')
featureTest('cyrillic.txt')
})

function testFeature()
function testFeature()
{
this.test.timeout(5000)

const name = this.test.title
, input = `features/${name.replace('.', '.input.')}`
, expected = `features/${name.replace('.', '.expected.')}`

return fileTest(input, expected)
}
2 changes: 2 additions & 0 deletions test/fixture/features/cyrillic.expected.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
яяяяяяяяяяяяя яяяяяяяяяя яяяяяяяяяяяяя яяяяяяяяяя яяяяяяяяяяяяя яяяяяяяяяя
яяяяяяяяяяяяя яяяяяяяяяя яяяяяяяяяяяяя яяяяяяяяяя
1 change: 1 addition & 0 deletions test/fixture/features/cyrillic.input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
яяяяяяяяяяяяя яяяяяяяяяя яяяяяяяяяяяяя яяяяяяяяяя яяяяяяяяяяяяя яяяяяяяяяя яяяяяяяяяяяяя яяяяяяяяяя яяяяяяяяяяяяя яяяяяяяяяя

0 comments on commit 35cfd30

Please sign in to comment.