You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.equal(position,code.length,"Expected accumilative length of all entries to match the length of the source. expected: "+code.length+", but got: "+position);
39
+
assert.equal(position,code.length,"Expected cumulative length of all entries to match the length of the source. expected: "+code.length+", but got: "+position);
40
40
41
41
return{
42
42
tuples: tuples,
@@ -84,8 +84,8 @@ describe('Colorization', function () {
assert(actualEntry,"Could not find classification entry for '"+expectedEntry.value+"' at position: "+actualEntryPosition);
87
-
assert.equal(actualEntry.length,expectedEntry.value.length,"Classification class does not match expected.");
88
-
assert.equal(actualEntry.class,expectedEntry.class,"Classification class does not match expected.");
87
+
assert.equal(actualEntry.class,expectedEntry.class,"Classification class does not match expected. Expected: "+ts.TokenClass[expectedEntry.class]+", Actual: "+ts.TokenClass[actualEntry.class]);
88
+
assert.equal(actualEntry.length,expectedEntry.value.length,"Classification length does not match expected. Expected: "+ts.TokenClass[expectedEntry.value.length]+", Actual: "+ts.TokenClass[actualEntry.length]);
89
89
}
90
90
}
91
91
}
@@ -105,7 +105,7 @@ describe('Colorization', function () {
105
105
punctuation(";"));
106
106
});
107
107
108
-
it("classifies correctelly a comment after a divide operator",function(){
108
+
it("correctly classifies a comment after a divide operator",function(){
109
109
test("1 / 2 // comment",
110
110
ts.EndOfLineState.Start,
111
111
numberLiteral("1"),
@@ -115,7 +115,7 @@ describe('Colorization', function () {
115
115
comment("// comment"));
116
116
});
117
117
118
-
it("classifies correctelly a literal after a divide operator",function(){
118
+
it("correctly classifies a literal after a divide operator",function(){
119
119
test("1 / 2, 3 / 4",
120
120
ts.EndOfLineState.Start,
121
121
numberLiteral("1"),
@@ -127,48 +127,76 @@ describe('Colorization', function () {
127
127
operator(","));
128
128
});
129
129
130
-
it("classifies correctelly an unterminated multi-line string",function(){
130
+
it("correctly classifies an unterminated multi-line string",function(){
0 commit comments