compiler/tests/Dart__ScannerTests.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 04 Nov 2014 00:17:12 +0000
changeset 8 c2de4aaa2670
child 9 ae0dabfd3321
permissions -rw-r--r--
Tests moved to separate sub-package named tests to follow convention.

"{ Package: 'ctu:dart/compiler/tests' }"

"{ NameSpace: Dart }"

TestCase subclass:#ScannerTests
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Languages-Dart-Parser-Tests'
!


!ScannerTests methodsFor:'tests'!

test_01

    self assert:
        (Dart::Scanner scan: 'import ''dart:html''; void main() { }') asArray
            = #(#import #String $; #void #identifier $( $) ${ $} )

    "Created: / 11-01-2013 / 12:53:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

test_02

    self assert:
        (Dart::Scanner scan: 'a |= 1') asArray
            = #()

    "Created: / 11-01-2013 / 15:46:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!ScannerTests class methodsFor:'documentation'!

version_HG

    ^ '$Changeset: <not expanded> $'
! !