freec-unit-tests

Safe HaskellNone
LanguageHaskell2010

FreeC.Frontend.IR.ScannerTests

Description

This module contains tests for FreeC.Frontend.IR.Scanner.

Synopsis

Documentation

scanTest :: String -> Reporter [Token] Source #

Tokenizes a string for testing purposes.

shouldScan :: String -> [Token] -> Expectation Source #

Sets the expectation that scan produces the given token stream for the given input.

testIRScanner :: Spec Source #

Test group for FreeC.Frontend.IR.Scanner tests.