Skip to content

Commit

Permalink
Added tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kou Tenichi committed Apr 6, 2017
1 parent 5ee0113 commit d392d54
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/ModeNormal/~.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as BlackBox from '../Framework/BlackBox';

suite.only('Normal: ~', () => {
suite('Normal: ~', () => {
const testCases: BlackBox.TestCase[] = [
{
from: '[]Foo',
Expand Down
30 changes: 30 additions & 0 deletions test/ModeVisual/h.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import * as BlackBox from '../Framework/BlackBox';

suite('Visual: h', () => {
const testCases: BlackBox.TestCase[] = [
{
from: '[F]oo bar',
inputs: 'h',
to: '[F]oo bar',
},
{
from: 'F[o]o bar',
inputs: 'h',
to: '~[Fo]o bar',
},
{
from: '[Fo]o bar',
inputs: 'h',
to: '[F]oo bar',
},
{
from: '~[F]oo bar',
inputs: 'h',
to: '~[F]oo bar',
},
];

for (let i = 0; i < testCases.length; i++) {
BlackBox.run(testCases[i]);
}
});
30 changes: 30 additions & 0 deletions test/ModeVisual/l.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import * as BlackBox from '../Framework/BlackBox';

suite('Visual: l', () => {
const testCases: BlackBox.TestCase[] = [
{
from: 'Foo ba~[r]',
inputs: 'l',
to: 'Foo ba[r]',
},
{
from: 'Foo b~[a]r',
inputs: 'l',
to: 'Foo b[ar]',
},
{
from: 'Foo b~[ar]',
inputs: 'l',
to: 'Foo ba~[r]',
},
{
from: 'Foo ba[r]',
inputs: 'l',
to: 'Foo ba[r]',
},
];

for (let i = 0; i < testCases.length; i++) {
BlackBox.run(testCases[i]);
}
});

0 comments on commit d392d54

Please sign in to comment.