-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from wmaurer/feature/n-x_and_n-X
Feature/n x and n X
- Loading branch information
Showing
3 changed files
with
71 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import * as BlackBox from '../Framework/BlackBox'; | ||
|
||
suite('Normal: {N} x', () => { | ||
const testCases: BlackBox.TestCase[] = [ | ||
{ | ||
from: 'Fo[]o end\nBar end\nDoo end', | ||
inputs: '1 x', | ||
to: 'Fo[] end\nBar end\nDoo end', | ||
}, | ||
{ | ||
from: 'Fo[]o end\nBar end\nDoo end', | ||
inputs: '2 x', | ||
to: 'Fo[]end\nBar end\nDoo end', | ||
}, | ||
{ | ||
from: 'Fo[]o end\nBar end\nDoo end', | ||
inputs: '10 x', | ||
to: 'F[]o\nBar end\nDoo end', | ||
}, | ||
]; | ||
|
||
for (let i = 0; i < testCases.length; i++) { | ||
BlackBox.run(testCases[i]); | ||
} | ||
}); | ||
|
||
suite('Normal: {N} X', () => { | ||
const testCases: BlackBox.TestCase[] = [ | ||
{ | ||
from: 'Fo[]o end\nBar end\nDoo end', | ||
inputs: '1 X', | ||
to: 'F[]o end\nBar end\nDoo end', | ||
}, | ||
{ | ||
from: 'Fo[]o end\nBar end\nDoo end', | ||
inputs: '2 X', | ||
to: '[]o end\nBar end\nDoo end', | ||
}, | ||
{ | ||
from: 'Foo en[]d\nBar end\nDoo end', | ||
inputs: '10 X', | ||
to: '[]d\nBar end\nDoo end', | ||
}, | ||
]; | ||
|
||
for (let i = 0; i < testCases.length; i++) { | ||
BlackBox.run(testCases[i]); | ||
} | ||
}); |