Permalink
Browse files

[test] Add failing test for malformed inputs

  • Loading branch information...
1 parent 2e31509 commit 0266b1bfb7e92726dae993fa907cced539fd7773 @mmalecki committed Dec 16, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/ansiparse-test.js
View
@@ -58,6 +58,10 @@ var dataSets = {
grey: {
input: 'hello world'.grey,
output: [{ text: 'hello world', foreground: 'grey' }]
+ },
+ 'malformed control sequence': {
+ input: '\033A string between two ESC\033',
+ output: [ { text: '\033A string between two ESC\033' } ]
}
};

0 comments on commit 0266b1b

Please sign in to comment.