From 59cf966107cada1ef5f245feb6aae6be25dadee3 Mon Sep 17 00:00:00 2001 From: masad-frost Date: Mon, 2 Jul 2018 19:14:04 -0700 Subject: [PATCH] Fix tests --- src/clojure/clojure.test.ts | 2 +- src/scheme/scheme.test.ts | 154 ++++++++++++++++++------------------ 2 files changed, 78 insertions(+), 78 deletions(-) diff --git a/src/clojure/clojure.test.ts b/src/clojure/clojure.test.ts index a4d1c1cb..e039e5ab 100644 --- a/src/clojure/clojure.test.ts +++ b/src/clojure/clojure.test.ts @@ -83,7 +83,7 @@ testTokenization('clojure', [ ], [ { - line: '#x03BB', + line: '0xff', tokens: [{ startIndex: 0, type: 'number.hex.clj' }], }, ], diff --git a/src/scheme/scheme.test.ts b/src/scheme/scheme.test.ts index 4aaa04aa..52149bb1 100644 --- a/src/scheme/scheme.test.ts +++ b/src/scheme/scheme.test.ts @@ -8,84 +8,84 @@ import { testTokenization } from '../test/testRunner'; testTokenization('scheme', [ - // Keywords - [ - { - line: 'define-macro some', - tokens: [ - { startIndex: 0, type: 'keyword.scheme' }, - { startIndex: 12, type: 'white.scheme' }, - { startIndex: 13, type: 'variable.scheme' }, - ], - }, - ], + // Keywords + [ + { + line: 'define-macro some', + tokens: [ + { startIndex: 0, type: 'keyword.scheme' }, + { startIndex: 12, type: 'white.scheme' }, + { startIndex: 13, type: 'variable.scheme' }, + ], + }, + ], - // comments - [ - { - line: '; comment', - tokens: [{ startIndex: 0, type: 'comment.scheme' }], - }, - ], - [ - { - line: '|# comment', - tokens: [{ startIndex: 0, type: 'comment.scheme' }], - }, - { - line: 'multiline', - tokens: [{ startIndex: 0, type: 'comment.scheme' }], - }, - { - line: '#| cons', - tokens: [ - { startIndex: 0, type: 'comment.scheme' }, - { startIndex: 2, type: 'white.scheme' }, - { startIndex: 3, type: 'keyword.scheme' }, - ], - }, - ], + // comments + [ + { + line: '; comment', + tokens: [{ startIndex: 0, type: 'comment.scheme' }], + }, + ], + [ + { + line: '#| comment', + tokens: [{ startIndex: 0, type: 'comment.scheme' }], + }, + { + line: 'multiline', + tokens: [{ startIndex: 0, type: 'comment.scheme' }], + }, + { + line: '|# cons', + tokens: [ + { startIndex: 0, type: 'comment.scheme' }, + { startIndex: 2, type: 'white.scheme' }, + { startIndex: 3, type: 'keyword.scheme' }, + ], + }, + ], - // strings - [ - { - line: '"\\n string "', - tokens: [ - { startIndex: 0, type: 'string.scheme' }, - { startIndex: 1, type: 'string.escape.scheme' }, - { startIndex: 3, type: 'string.scheme' }, - ], - }, - ], - [ - { - line: '" string \\', - tokens: [{ startIndex: 0, type: 'string.scheme' }], - }, - { - line: 'multiline', - tokens: [{ startIndex: 0, type: 'string.scheme' }], - }, - { - line: ' ', - tokens: [ - // previous line needs to be terminated with \ - { startIndex: 0, type: 'white.scheme' }, - ], - }, - ], + // strings + [ + { + line: '"\\n string "', + tokens: [ + { startIndex: 0, type: 'string.scheme' }, + { startIndex: 1, type: 'string.escape.scheme' }, + { startIndex: 3, type: 'string.scheme' }, + ], + }, + ], + [ + { + line: '" string \\', + tokens: [{ startIndex: 0, type: 'string.scheme' }], + }, + { + line: 'multiline', + tokens: [{ startIndex: 0, type: 'string.scheme' }], + }, + { + line: ' ', + tokens: [ + // previous line needs to be terminated with \ + { startIndex: 0, type: 'white.scheme' }, + ], + }, + ], - // numbers - [ - { - line: '1e2', - tokens: [{ startIndex: 0, type: 'number.float.scheme' }], - }, - ], - [ - { - line: '#x03BB', - tokens: [{ startIndex: 0, type: 'number.hex.scheme' }], - }, - ], + // numbers + [ + { + line: '1e2', + tokens: [{ startIndex: 0, type: 'number.float.scheme' }], + }, + ], + [ + { + line: '#x03BB', + tokens: [{ startIndex: 0, type: 'number.hex.scheme' }], + }, + ], ]);